I'm trying to compile gpc on a Fedora 8 system, and I can' find instructions on how to compile it with newer versions of gcc.
Should I just get the latest gpc sources and try to compile with newer gcc-4.1.2 sources?
Martin Marques wrote:
I'm trying to compile gpc on a Fedora 8 system, and I can' find instructions on how to compile it with newer versions of gcc.
Should I just get the latest gpc sources and try to compile with newer gcc-4.1.2 sources?
Yes. Unpack gpc sources, make sure that p subdirectory from gpc source tree appears as gcc-4.1.2/gcc/p is gcc source tree (either use move or a symlink), configure and make.
Using gpc with gcc-4.2 or gcc-4.3 is currently not supported, but gcc-4.1.2 should work fine.
On Mar 12, 2008, at 12:35 PM, Waldek Hebisch wrote:
Using gpc with gcc-4.2 or gcc-4.3 is currently not supported, but gcc-4.1.2 should work fine.
Waldek, what is the status in getting GPC building from either gcc-4.2 or gcc-4.3 bases supported?
As I think you know, there's a Mac OS X target back-end code generation bug with gcc-4.1.2 that makes GPC unsuitable for serious code work for a GPC built from a gcc-4.1.2 base.
Since Apple compiler support has moved on to gcc-4.2 and later versions, the chances of getting a Mac OS X target back end bug fixed in the gcc-4.1.2 code base are pretty slim.
While a Mac OS X gcc-3.4.5 based GPC continues to work, it foregoes the benefits to be gained from Apple's compiler support efforts in improving the gcc-4.x code base and supporting development tools. For Mac OS X GPC users to take advantage of those gains, we need to get a stable gcc-4.x based GPC build and it looks like the most promising option right now is with either a gcc-4.2 or gcc-4.3 based build.
Gale Paeper gpaeper@empirenet.com
Gale Paeper wrote:
On Mar 12, 2008, at 12:35 PM, Waldek Hebisch wrote:
Using gpc with gcc-4.2 or gcc-4.3 is currently not supported, but gcc-4.1.2 should work fine.
Waldek, what is the status in getting GPC building from either gcc-4.2 or gcc-4.3 bases supported?
The situation essentially is the same as in December 2005: I tried build with 4.2 and I fixed a bunch of problems. But then I noticed that backend folks removed support for character type from the backend. So proper port to 4.2 should internally use integer type to represent Pascal character type. This is not very big change, but also not a trivial one. At that time I decided to suspend 4.2 port and concentrate on 4.1. I can not what more is strictly necessary for 4.2 port, usually most porting effort goes into fixing new bugs and that is of course very unpredictable.
Let me clearly say that ATM I am _not_ working on 4.2/4.3 port -- currently most of my programming effort goes into computer algebra, more precisely FriCAS:
Also, there are few things which strictly speaking are not neccessary for 4.2 port, but which probably should be done first (like changing sets implementation).
Waldek Hebisch escribió:
Martin Marques wrote:
I'm trying to compile gpc on a Fedora 8 system, and I can' find instructions on how to compile it with newer versions of gcc.
Should I just get the latest gpc sources and try to compile with newer gcc-4.1.2 sources?
Yes. Unpack gpc sources, make sure that p subdirectory from gpc source tree appears as gcc-4.1.2/gcc/p is gcc source tree (either use move or a symlink), configure and make.
Didn't work. :-(
make[2]: se ingresa al directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925/host-x86_64-unknown-linux-gnu/gcc' gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include ../.././gcc/dbxout.c -o dbxout.o ../.././gcc/dbxout.c: In function ‘dbxout_type’: ../.././gcc/dbxout.c:1978: error: ‘have_used_extensions’ no se declaró aquà (primer uso en esta función) ../.././gcc/dbxout.c:1978: error: (Cada identificador no declarado solamente se reporta una vez ../.././gcc/dbxout.c:1978: error: ara cada funcion en la que aparece.) make[2]: *** [dbxout.o] Error 1 make[2]: se sale del directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925/host-x86_64-unknown-linux-gnu/gcc' make[1]: *** [all-gcc] Error 2 make[1]: se sale del directorio `/usr/src/redhat/BUILD/gcc-4.1.2-20070925' make: *** [all] Error 2
Any ideas?