[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] latest gm2 tarball
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] latest gm2 tarball |
Date: |
Fri, 22 Feb 2013 10:07:54 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
john o goyo <address@hidden> writes:
> On 02/12/13 08:20, Gaius Mulley wrote (in part):
>>
>> Hi,
>>
>> I've uploaded a new tarball of gm2 which has been grafted onto
>> gcc-4.7.1. It is probably not worth downloading (unless you want to see
>> some development progress and the current state of play) as the compiler
>> pretty much only compiles hello world. However I think no more code
>> needs to be written just many many bugs need to be fixed.
>>
> [...]
>> All the code has been checked into the trunk of the gm2 CVS.
>
> To clarify what is happening (because I finally succeeded in building
> gcc-4.7.1 on my sparc box, something that I will report separately if
> anyone is interested): I see no patches for gcc-4.7.1 so I assume
> that none are needed and the CVS head has the gm2 source for
> gcc-4.7.1.
>
> john
>
Hi John,
thanks for the report. I've just added two patches to gcc-4.7.1 in the
gm2/patches/gcc/4.7.1 directory yesterday. Well done getting it to
compile!
I use the following configure options:
../gcc-4.7.1+gm2-cvs-latest/configure --prefix=$HOME/opt
--enable-languages=c,c++,gm2 \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++,gm2 \
--disable-multilib --disable-bootstrap \
--enable-checking
it should build the cc1gm2 and then fail to compile its libraries. Here
is the end of my build:
gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat
-fno-common -DHAVE_CONFIG_H -o stage1/gm2/cc1gm2 gm2/gm2-lang.o
gm2/stor-layout.o gm2/m2pp.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 tree-browser.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
bash ../../gcc-4.7.1+gm2-cvs-latest/gcc/gm2/tools-src/makeSystem -fpim \
../../gcc-4.7.1+gm2-cvs-latest/gcc/gm2/gm2-libs/SYSTEM.def \
../../gcc-4.7.1+gm2-cvs-latest/gcc/gm2/gm2-libs/SYSTEM.mod \
-I../../gcc-4.7.1+gm2-cvs-latest/gcc/gm2/gm2-libs \
"./xgm2 -B./stage1/gm2"
/home/gaius/GM2/virgin-test/build-4.7.1/gcc/gm2/gm2-libs/SYSTEM.def
Using built-in specs.
COLLECT_GCC=./xgm2
xgm2: error: unrecognized option ‘-x’
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.7.1+gm2-cvs-latest/configure --prefix=/home/gaius/opt
--enable-languages=c,c++,gm2 --libexecdir=/usr/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,gm2 --disable-multilib --disable-bootstrap
--enable-checking
Thread model: posix
gcc version 4.7.1 (GCC)
Using built-in specs.
COLLECT_GCC=./xgm2
xgm2: error: unrecognized option ‘-x’
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.7.1+gm2-cvs-latest/configure --prefix=/home/gaius/opt
--enable-languages=c,c++,gm2 --libexecdir=/usr/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,gm2 --disable-multilib --disable-bootstrap
--enable-checking
Thread model: posix
gcc version 4.7.1 (GCC)
make[2]: ***
[/home/gaius/GM2/virgin-test/build-4.7.1/gcc/gm2/gm2-libs/SYSTEM.def] Error 1
make[2]: Leaving directory `/home/gaius/GM2/virgin-test/build-4.7.1/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/gaius/GM2/virgin-test/build-4.7.1'
make: *** [all] Error 2
the cc1gm2 will currently compile hello.mod and minor variants, if then
else works. But anything more complex fails. I'm currently hunting
down multiple function bugs,
hope this helps,
Gaius