According to Arcadio Alivio Sincero:
Can somebody PLEASE make an ELF version of GPC for Linux that works with GCC v.2.7.0???? Or give me some pointers on how to do it myself????
If you really want to try to implement this yourself, I suggest the following strategy:
- get GCC 2.6.3 and GCC 2.7.0 source, - look, which files of the GPC 2.6.3 source are replacing GCC 2.6.3 files, and make diffs between GCC 2.6.3 and GPC 2.6.3 for them, - do the GPC changes to the GCC 2.7.0 files, - compile GCC 2.7.0 (one stage is enough), - compile GPC, now version 2.7.0, and hope the best, - send your files to Juki, because he will be interested, - send your files to me, because I am interested, too.
Since I expect trouble when doing this, let us first try it in another way ...
I downloaded the Linux version of GPC that Peter Gerwinski made, but it doesn't work on my system. I'm thinking maybe because I have SlackWare 3.0/ELF installed.
When I first installed GPC, the compilation process would break when it came to the linking phase. ld, the GNU Linker, would say that it's unable to find file "crt0.o". I remembered seeing that file way back in my SlackWare 2.2 days, so kicked out the old SlackWare 2.2 CD-ROM and copied a "crt0.o" into my /usr/lib directory. Now, when I try to compile and link, I just get a whole bunch of unresolved reference errors.
Which gcclib do you use? Perhaps it is already the 2.7.0 version while crt0.o and gpc expect the 2.6.3 version. I suggest to install the com- plete gcc 2.6.3 in /usr/bin and /usr/lib. (It should work with SlackWare 3.0, as I hope.) Then also install gpc 2.6.3, and they should work to- gether.
However, GPC itself appears to compile alright (except it produces a.out object files instead of ELF). It's just when it comes time to link that it goes haywire.
This gives hope to me, that the above idea could work.
Please help somebody! I need this compiler soon for a school project ...
For case of emergency I will figure out how to run GPC under EMX in the DOS emulator of Linux. This is somehow stupid, but should work.
Till later,
Peter
-------------------------------------------------------------------------------- Dipl. Phys. Peter Gerwinski Fachbereich Physik Universitaet-GH Essen Phone: +49-201-183-2763 D-45117 Essen Fax: +49-201-183-2120 Germany e-mail: pege@mail.theo-phys.uni-essen.de --------------------------------------------------------------------------------