[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Building GM2
From: |
C W Rose |
Subject: |
[Gm2] Building GM2 |
Date: |
Thu, 09 Jul 2015 10:04:22 +0100 |
I pulled down the latest version of Gm2 yesterday, with the md5 sum:
5cd2d82fd24b4b961d5c2209b6be0166 gcc-4.7.4+gm2-git-latest.tar.gz
and configured it with:
../gcc-versionno/configure --prefix=/opt --enable-languages=c,c++,gm2
Using a 32-bit GCC 4.7.3 it failed to compile with the following error:
...
...
/opt/GM2/gm2/./prev-gcc/g++ -B/opt/GM2/gm2/./prev-gcc/
-B/opt/i686-pc-linux-gnu/bin/ -nostdinc++
-B/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc
++-v3/include/i686-pc-linux-gnu
-I/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/include
-I/opt/GM2/gcc-versionno/libstdc++-v3/libsupc++
-L/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs
-L/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g
-I-I../../gcc-versionno/gcc/gm2 -Igm2
-I../../gcc-versionno/gcc/gm2/gm2-gcc -Igm2/gm2-gcc -g -O2 -gtoggle
-DIN_GCC -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -DHAVE_CONFIG_H -I. -Igm2
-I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2
-I../../gcc-versionno/gcc/../include
-I../../gcc-versionno/gcc/../libcpp/include
-I../../gcc-versionno/gcc/../libdecnumber
-I../../gcc-versionno/gcc/../libdecnumber/bid -I../libdecnumber -I.
-Igm2 -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/gm2
-I../../gcc-versionno/gcc/../include
-I../../gcc-versionno/gcc/../libcpp/include
-I../../gcc-versionno/gcc/../libdecnumber
-I../../gcc-versionno/gcc/../libdecnumber/bid
-I../libdecnumber ../../gcc-versionno/gcc/gm2/gm2-lang.c -o
gm2/gm2-lang.o
../../gcc-versionno/gcc/gm2/gm2-lang.c: In function tree_node*
convert(tree, tree):
../../gcc-versionno/gcc/gm2/gm2-lang.c:859:52: error:
m2linemap_UnknownLocation was not declared in this scope
make[4]: *** [gm2/gm2-lang.o] Error 1
make[4]: Leaving directory `/opt/GM2/gm2/gcc'
cp: cannot stat stage1/gm2/cc1gm2: No such file or directory
make[3]: *** [cc1gm2] Error 1
make[3]: Leaving directory `/opt/GM2/gm2/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/opt/GM2/gm2'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/opt/GM2/gm2'
make: *** [all] Error 2
address@hidden gm2 $
Adding the m2linemap.h header to gm2-lang.c fixed the problem, and the
compile continued until the error:
...
...
/opt/GM2/gm2/./prev-gcc/g++ -B/opt/GM2/gm2/./prev-gcc/
-B/opt/i686-pc-linux-gnu/bin/ -nostdinc++
-B/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc
++-v3/include/i686-pc-linux-gnu
-I/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/include
-I/opt/GM2/gcc-versionno/libstdc++-v3/libsupc++
-L/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs
-L/opt/GM2/gm2/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g
-O2 -gtoggle -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -static-libstdc++
-static-libgcc -o stage1/gm2/cc1gm2 gm2/gm2-lang.o gm2/stor-layout.o
gm2/m2pp.o gm2/gm2-gcc/m2assert.o gm2/gm2-gcc/m2block.o
gm2/gm2-gcc/m2builtins.o gm2/gm2-gcc/m2except.o gm2/gm2-gcc/m2convert.o
gm2/gm2-gcc/m2decl.o gm2/gm2-gcc/m2expr.o gm2/gm2-gcc/m2linemap.o
gm2/gm2-gcc/m2statement.o gm2/gm2-gcc/m2type.o gm2/gm2-gcc/m2tree.o
gm2/gm2-gcc/m2treelib.o gm2/gm2-gcc/m2top.o gm2/gm2-gcc/m2misc.o
gm2/gm2-gcc/init.o gm2/gm2-compiler-boot/m2flex.o \
attribs.o \
gm2/gm2-compiler-boot/gm2.a
gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a
\
main.o libbackend.a libcommon-target.a
libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a
libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib
-lz
gm2/gm2-compiler-boot/m2flex.o: In function `m2flex_GetToken':
m2flex.c:(.text+0x3874): undefined reference to `timevar_push_1'
m2flex.c:(.text+0x389d): undefined reference to `timevar_pop_1'
collect2: error: ld returned 1 exit status
make[4]: *** [stage1/gm2/cc1gm2] Error 1
make[4]: Leaving directory `/opt/GM2/gm2/gcc'
cp: cannot stat stage1/gm2/cc1gm2: No such file or directory
make[3]: *** [cc1gm2] Error 1
make[3]: Leaving directory `/opt/GM2/gm2/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/opt/GM2/gm2'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/opt/GM2/gm2'
make: *** [all] Error 2
address@hidden gm2 $
An unconditional addition of timevar.h to m2flex.c didn't help, and I
don't know enough about Autotools to set up the linker correctly.
timevar.o contains the timevar_xxx_1 functions, so for some reason the
linker isn't finding it.
Will
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gm2] Building GM2,
C W Rose <=