gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Building GM2


From: Will Rose
Subject: [Gm2] Building GM2
Date: Tue, 21 Apr 2015 15:56:08 +0100


I've been trying to build the GM2 compiler from the current gcc-4.7.4+gm2-1.1.3.tar.gz. I got past the const cast problem, but ran into a linker problem (below). Does anyone have a patch that will link in the timevar functions?

Thanks - Will

===============================================================================
# Patches needed for GM2 sources.
/gcc-versionno/gcc/gm2/gm2spec.c.org lines 334 335 595 need (char *) cast.

# Configuration for GM2 build.
configure --enable-languages=c --enable-languages=c++ --enable-languages=gm2

# Error message.
/tmp/gm2/gcc-versionno/host-i686-pc-linux-gnu/prev-gcc/g++ -B/tmp/gm2/gcc-versionno/host-i686-pc-linux-gnu/prev-gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -nostdinc++ -B/tmp/gm2/gcc-versionno/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/tmp/gm2/gcc-versionno/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/tmp/gm2/gcc-versionno/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/tmp/gm2/gcc-versionno/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/tmp/gm2/gcc-versionno/libstdc++-v3/libsupc++ -L/tmp/gm2/gcc-versionno/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/gm2/gcc-versionno/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 `/tmp/gm2/gcc-versionno/host-i686-pc-linux-gnu/gcc'
cp: cannot stat stage1/gm2/cc1gm2: No such file or directory
make[3]: *** [cc1gm2] Error 1
make[3]: Leaving directory `/tmp/gm2/gcc-versionno/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/tmp/gm2/gcc-versionno'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/tmp/gm2/gcc-versionno'
make: *** [all] Error 2

===============================================================================

reply via email to

[Prev in Thread] Current Thread [Next in Thread]