I did some work on updating gpc to newer gcc versions. You can
find it at GitHub:
https://github.com/hebisch/gpc
This is experimental work. 4.2 and 4.3 ports (on "master" Git branch)
are basically in "works for my purpose" state: on my machine compiler
builds and passes test suite with small (but nonzero) number of
failures. On 4.5.1 there is initial port to gcc-4.[45] -- this
one is broken from user point of view and may be of some use
only for people who want to seriously work on the compiler.
Note that this is _not_ a release. There are relatively easy to
fix but non working things (in particular some features of Makefiles
are broken). Testing was limited to running testsute just for
one configuration. I estimate that fixing easily fixable stuff
and polishing things would take me about a week -- unfortunately
I am busy with other things. So I decided to make the code
available "as is". If there will be bug reports, I will look
at them and there is reasonable chance that I will fix them.
But otherwise I do not plan to work on gpc in near future.
If you want to try the code note that there are changes to build
process, look at toplevel README file.
--
Waldek Hebisch
hebisch(a)math.uni.wroc.pl
I downloaded hebisch-gpc-8249f1b.tar.gz from
https://github.com/hebisch/gpc and gcc-core-4.3.5.tar.bz2 from my friendly
neighborhood mirror, extracted the source, created the soft links as
instructed, applied the patch (gcc-4.3.5.diff) and configured as follows:
../gcc-4.3.5/configure --enable-languages=all --disable-mapped-location \
--program-suffix=435
After much compiling, I get the following:
Checking multilib configuration for libgpc...
mkdir -p -- x86_64-unknown-linux-gnu/libgpc
Configuring in x86_64-unknown-linux-gnu/libgpc
configure: WARNING: unrecognized options: --enable-multilib,
--disable-mapped-location, --enable-languages, --with-target-subdir
configure: creating cache ./config.cache
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --enable-multilib,
--disable-mapped-location, --enable-languages, --with-target-subdir
cat: ../../../gcc-4.3.5/libgpc/../gcc/BASE-VER: No such file or directory
make[2]: Entering directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
/usr/local/src/gcc/./gcc/xgcc -B/usr/local/src/gcc/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -dumpmachine > alias_file
2>/dev/null
for i in `/usr/local/src/gcc/./gcc/xgcc -B/usr/local/src/gcc/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include --print-multi-lib
2>/dev/null`; do \
dir=`echo $i | sed -e 's/;.*$//'`; \
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
make CFLAGS="-O2 -g -g -O2 ${flags}" MPREFIX=${dir} build ;
\
done
cat: ../../../gcc-4.3.5/libgpc/../gcc/BASE-VER: No such file or directory
make[3]: Entering directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
make[3]: *** No rule to make target
`../../../gcc-4.3.5/libgpc/../gcc/p/rts/Makefile.in', needed by
`p/rts/Makefile'. Stop.
make[3]: Leaving directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
cat: ../../../gcc-4.3.5/libgpc/../gcc/BASE-VER: No such file or directory
make[3]: Entering directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
make[3]: *** No rule to make target
`../../../gcc-4.3.5/libgpc/../gcc/p/rts/Makefile.in', needed by
`32/p/rts/Makefile'. Stop.
make[3]: Leaving directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
make[2]: *** [do_multidirs] Error 2
make[2]: Leaving directory
`/usr/local/src/gcc/x86_64-unknown-linux-gnu/libgpc'
make[1]: *** [all-target-libgpc] Error 2
make[1]: Leaving directory `/usr/local/src/gcc'
make: *** [all] Error 2
The question is, how do I proceed... or more specifically, what is
BASE_VER and how do I create it?
config.log is attached.
--------------------------|
John L. Ries |
Salford Systems |
Phone: (619)543-8880 x107 |
or (435)867-8885 |
--------------------------|