gm2
[Top][All Lists]
Advanced

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

[Gm2] Problem with building native compiler on x86 - about 1000 compiler


From: JD
Subject: [Gm2] Problem with building native compiler on x86 - about 1000 compiler errors
Date: Sun, 8 Sep 2013 17:00:29 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Gaius,
I'm trying to build gm2 from the sources but failing miserably!

I'm on Ubuntu 13.04 and I used the gcc-4.1.2+gm2-cvs-latest tarball.

For configuring I used essentially your recommended command:
     ./gcc-4.1.2+gm2-cvs-latest/configure --enable-languages=c,c++,gm2 --disable-multilib --enable-checking=all --prefix=$HOME/Modula-2/compiler/opt  2>error-messages-3 1>&2
configure complained about the absence of gmp.h but that may be expected by the options.

make produced about 19000 lines of output, approximately the last 1000 were compiler error messages.  Typically, they were:
/usr/include/elf.h:1109: error: storage class specified for parameter ‘Elf64_Move’
/usr/include/link.h:139: error: expected specifier-qualifier-list before ‘Elf__ELF_NATIVE_CLASS_Addr’
The make finished with:
.././gcc-4.1.2+gm2-cvs-latest/gcc/crtstuff.c:133: error: storage class specified for parameter ‘__register_frame_info_bases’
.././gcc-4.1.2+gm2-cvs-latest/gcc/crtstuff.c:133: error: weak declaration of ‘__register_frame_info_bases’ must be public
.././gcc-4.1.2+gm2-cvs-latest/gcc/crtstuff.c:133: internal compiler error: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘parm_decl’  in mark_weak, at varasm.c:4421
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/jd/Modula-2/compiler/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/jd/Modula-2/compiler'
make: *** [all] Error 2
Main package versions are:
     gcc    4.6.4
    binutls    2.22-6

Where have I gone wrong?

I've also tried on the Raspberry Pi.  In that case the end of the make output is a bit different:
/home/pi/Modula-2/compiler/gcc/gm2/gm2-compiler-boot/M2LexBuf.c:1176: undefined reference to `m2flex_GetColumnNo'
gm2/gm2-compiler-boot/gm2.a(M2Comp.o): In function `ExamineCompilationUnit':
/home/pi/Modula-2/compiler/gcc/gm2/gm2-compiler-boot/M2Comp.c:270: undefined reference to `m2flex_M2Error'
collect2: ld returned 1 exit status
make[3]: *** [stage1/gm2/cc1gm2] Error 1
make[3]: Leaving directory `/home/pi/Modula-2/compiler/gcc'
cp: cannot stat `stage1/gm2/cc1gm2': No such file or directory
make[2]: *** [cc1gm2] Error 1
make[2]: Leaving directory `/home/pi/Modula-2/compiler/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/pi/Modula-2/compiler'
make: *** [all] Error 2

I've successfully installed the gm2 binary.  My eventual aim is to build a cross-compiler on x86 for the Raspberry PI.  I'm trying native builds as a bit of practice.  Any tips on building the cross-compiler would be very welcome!

Do you need any further details to be able to help me?

Thanks in anticipation,
John Dubery

reply via email to

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