Dear Waldek,
> with GCC-4.3.5. Look at README, for 4.3.5 you need to use '--disable-mapped-location'.
I can't get GCC-4.3.5 to compile on MacOS without figuring out a bunch of small modifications. I have GCC-4.9.4 from Home Brew, and that installation applies patches automatically before building. So I started with GCC 4.9.4. The patches for GCC-4.3.5 mostly work, but I had to skip half of them. The patch appears to be Makefile.def and Makefile.in edits. The build proceeds well, with correct identification of the host, build, and target as x86_64-apple-darwin16.7.0. In the libiberty directory, I have 64-bit objects.
First error is when going through gpc.h, where it says several times:
../.././gcc/p/gpc.h:290: parse error: GTY must be specified before identifier
That's because the newer GCC requires that you provide an "identifier" for each GTY type definitions. The existing "tree_inn" structure is:
struct tree_inn GTY(())
I add the identifier "tree_in_gty" like this:
struct tree_inn GTY(()) tree_in_gty
And do so for all other instances in gpc.h, declarations.c, module.c, and plant.c. Now compilation proceeds to:
../.././gcc/p/plant.c:47: undefined type `varray_type'
There is a missing file "varray.h", which appears in GCC-3.4.6, but not in GCC-4.9.4.
I'll look into the varray.h problem.
Best, Kevan
--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://www.bndhep.net
Dear Waldek,
Thanks for your letter. Somehow I did not get it directly, but found it on-line after Paul mentioned it to me.
>> MY FAILURE ON MACOS: The current GPC is compatible with the
>> back-end of GCC 3.4.6 only.
> No. While little used GCC 4.1.2 port is finished and should work
> well.
That must have been a fair amount of work, moving from 3.4.6 to 4.1.2. I understand the GCC middle end changed dramatically between 3 and 4.
> First step would be to find out earliest GCC which supports 64-bit
> Mac OS as target.
How can I tell that it supports MacOS 64-bit?
> It is possible that GCC-4.3.5 will do, attempting to build gets
> beyond "Configuration x86_64-apple-darwin16.7.0 not supported"
Ah, so that's the way you tell. You try it and see.
> (full build requires Apple tools so I can not check if it works).
I have the Command Line Tools (CLT).
ASIDE ON CLT (NOT PARTICULARLY IMPORTANT): Building on MacOS, the clang assembler will perform the first build, which produces the xgcc and xgpc compilers. After that, the clang assembler fails because it does not recognise the ".stabs" debug directives produced by xgcc, which is GCC 3.4.6. All the xgcc compilation is done with the debug "-g" flag. The "-g" option is so deeply embedded into the GPC build that I could not get rid of it, even after removing the string "-g" from every file I could find it in. I must have missed the one critical, originating occurance. If I instead use the CTools version of the GNU Assmbler that is provided with CLT, that assembler fails to compile xgcc in the first place, because it cannot compile 64-bit instructions like "movq %xmm0,%rax", where a 128-bit register is moved into a 64-bit register (it complains when it should take the top or bottom 64 bits). So we need one assembler for the host and one for the target. I tried all manner of messing about with environment variables, but could not persuade the build to use two different assemblers for the xgcp and gpc builds. In the end, I let the build fail, edited the gcc makefile, re-configured the gcc makefile, and re-started. But the code produced by the second stage was 32-bit and could not be linked to the 64-bit libraries. If we build on GCC-4, I will be able to use the same assembler, the CLANG assembler, for the entire build.
> Anyway, I would suggenst trying
http://github.com/hebisch/gpc
with GCC-4.3.5. Look at README, for 4.3.5 you need to use
'--disable-mapped-location'.
Thank you. I have the zip archive. Will start on it soon.
Best, Kevan
--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://www.bndhep.net
Following on from the "Installing on Debian Stretch" thread, I wondered
if anybody had experience of building gpc for Centos 7 (64 bit only).
The default gcc version is 4.8.5. I have read Waldek's very helpful
reply in the previous thread but before I plunge myself into a world of
pain, I wondered if anybody else had trodden the same path?
--
Martin Liddle, Tynemouth Computer Services,
Chesterfield, Derbyshire, UK.
www.tynecomp.co.uk
Hello all,
Thought I would try installing the most recent version of GPC on my Debian
Stretch machine. I downloaded gpc-2.1-with-gcc.i686-pc-linux-gnu.tar.gz
and expanded it as specified here:
https://www.gnu-pascal.de/gpc/Binary-Distributions.html#Binary-Distributions
It doesn't matter what options I use when trying to run the GPC compiler.
I always get the following error:
-bash: /usr/local/bin/gpc: No such file or directory
I think something is missing somewhere, just not certain what.
So the simple question before digging in: Has anyone successfully installed
the 2.1 compiler on Debian Stretch? If so, was there something additional
that needs to be done?
Thanks all
-Ken
It's been some years since GPC failed to compile on macOS. Is there
any hope that someone knowledgeable will get this going again or is
Pascal a dead language that we best abandon?
Tom
Thomas D. Schneider, Ph.D.
Senior Investigator
National Institutes of Health
National Cancer Institute
Center for Cancer Research
RNA Biology Laboratory
Biological Information Theory Group
Frederick, Maryland 21702-1201
schneidt(a)mail.nih.gov
https://alum.mit.edu/www/toms
Some time ago the GNU Pascal compiler stopped working on macOS.
Is there any effort to get it going again?
Thanks,
Thomas D. Schneider, Ph.D.
Senior Investigator
National Institutes of Health
National Cancer Institute
Center for Cancer Research
RNA Biology Laboratory
Biological Information Theory Group
Frederick, Maryland 21702-1201
schneidt(a)mail.nih.gov
https://alum.mit.edu/www/toms
Greetings,
I updated my MacOS 10.7.5 machine to 10.12.6. My gpc installation is
still on my hard drive. I'm trying to get it to work. No luck so far. I
know that Gale and others have listed what needs to be fixed in order to
compile GPC on MacOS 10.12. Is it possible to install and run Adriaan's
10.6 binaries on 10.12?
Yours, Kevan
--
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/