|
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>&2configure 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’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’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' 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |