[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Compiling gm2 on Solaris 10 x64
From: |
Wolfgang Filinger |
Subject: |
[Gm2] Compiling gm2 on Solaris 10 x64 |
Date: |
Tue, 04 Jan 2011 11:51:50 +0100 |
Hi,
I tried to compile gm2 1.0 on Solaris 10 x64.
...
gcc -m64 -c -g gm2/gm2-compiler-boot/mod_init.c -o gm2/gm2-compiler-
boot/mod_init.o
ar cr gm2/gm2-compiler-boot/gm2.a gm2/gm2-compiler-boot/mod_init.o
\
gm2/gm2-compiler-boot/ppg.o gm2/gm2-compiler-
boot/FifoQueue.o gm2/gm2-compiler-boot/M2LexBuf.o gm2/gm2-compiler-
boot/M2AsmUtil.o gm2/gm2-compiler-boot/gm2.o gm2/gm2-compiler-
boot/M2Optimize.o gm2/gm2-compiler-boot/M2StackWord.o gm2/gm2-
compiler-boot/M2Options.o gm2/gm2-compiler-boot/M2Pass.o gm2/gm2-
compiler-boot/M2Batch.o gm2/gm2-compiler-boot/M2Quads.o gm2/gm2-
compiler-boot/M2Comp.o gm2/gm2-compiler-boot/M2Reserved.o gm2/gm2-
compiler-boot/M2Configure.o gm2/gm2-compiler-boot/M2StackAddress.o
gm2/gm2-compiler-boot/M2Debug.o gm2/gm2-compiler-boot/M2Defaults.o
gm2/gm2-compiler-boot/M2Depth.o gm2/gm2-compiler-boot/NameKey.o
gm2/gm2-compiler-boot/M2FileName.o gm2/gm2-compiler-
boot/P1SymBuild.o gm2/gm2-compiler-boot/P2SymBuild.o gm2/gm2-
compiler-boot/P3SymBuild.o gm2/gm2-compiler-boot/SymbolKey.o
gm2/gm2-compiler-boot/SymbolTable.o gm2/gm2-compiler-boot/gm2lcc.o
gm2/gm2-compiler-boot/gm2lgen.o gm2/gm2-compiler-boot/gm2lorder.o
gm2/gm2-compiler-boot/M2Error.o gm2/gm2-compiler-boot/M2SubExp.o
gm2/gm2-compiler-boot/M2Constants.o gm2/gm2-compiler-
boot/M2Students.o gm2/gm2-compiler-boot/M2Entity.o gm2/gm2-compiler-
boot/M2BasicBlock.o gm2/gm2-compiler-boot/M2Code.o gm2/gm2-compiler-
boot/M2GenGCC.o gm2/gm2-compiler-boot/M2GCCDeclare.o gm2/gm2-
compiler-boot/SymbolConversion.o gm2/gm2-compiler-boot/M2Base.o
gm2/gm2-compiler-boot/M2ALU.o gm2/gm2-compiler-boot/M2System.o
gm2/gm2-compiler-boot/Lists.o gm2/gm2-compiler-boot/M2Printf.o
gm2/gm2-compiler-boot/bnflex.o gm2/gm2-compiler-boot/M2Quiet.o
gm2/gm2-compiler-boot/M2Search.o gm2/gm2-compiler-
boot/M2Preprocess.o gm2/gm2-compiler-boot/CLexBuf.o gm2/gm2-
compiler-boot/M2Bitset.o gm2/gm2-compiler-boot/M2Size.o gm2/gm2-
compiler-boot/M2Scope.o gm2/gm2-compiler-boot/M2Range.o gm2/gm2-
compiler-boot/M2Swig.o gm2/gm2-compiler-boot/M2MetaError.o gm2/gm2-
compiler-boot/Sets.o gm2/gm2-compiler-boot/M2CaseList.o gm2/gm2-
compiler-boot/PCSymBuild.o gm2/gm2-compiler-boot/PCBuild.o \
gm2/gm2-compiler-boot/P2Build.o gm2/gm2-
compiler-boot/P3Build.o gm2/gm2-compiler-boot/PHBuild.o gm2/gm2-
compiler-boot/PCBuild.o gm2/gm2-compiler-boot/P1SyntaxCheck.o
gm2/gm2-compiler-boot/gm2l.o gm2/gm2-compiler-boot/gm2m.o \
gm2/gm2-compiler-boot/M2Version.o
ranlib gm2/gm2-compiler-boot/gm2.a
gcc -m64 -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -o
stage1/gm2/cc1gm2 gm2/gccgm2.o gm2/gm2builtins.o gm2/gm2-lang.o
gm2/gm2except.o gm2/m2pp.o gm2/gm2-compiler-boot/gm2.a gm2/gm2-libs-
boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a \
gm2/gm2-compiler-boot/m2flex.o main.o
tree-browser.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a
./../intl/libintl.a ../libiberty/libiberty.a -lm
Undefined first referenced
symbol in file
signbit gm2/gm2-libs-
boot/libgm2.a(wrapc.o)
ld: fatal: Symbol referencing errors. No output written to
stage1/gm2/cc1gm2
collect2: ld returned 1 exit status
gmake[3]: *** [stage1/gm2/cc1gm2] Error 1
gmake[3]: Leaving directory `/var/tmp/build-4.1.2/gcc'
cp: cannot access stage1/gm2/cc1gm2
gmake[2]: *** [cc1gm2] Error 2
gmake[2]: Leaving directory `/var/tmp/build-4.1.2/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/var/tmp/build-4.1.2'
gmake: *** [all] Error 2
bash-3.00# file gm2/gm2-libs-boot/libgm2.a
gm2/gm2-libs-boot/libgm2.a: cannot open: No such file or
directory
I am using this configure enviroment:
bash
CC="gcc -m64";export CC
export CFLAGS=-m64
export CPPFLAGS=-m64
CONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
../gcc-4.1.2+gm2-20101211/configure --enable-languages=c,c++,gm2 \
--disable-multilib --enable-checking=all --
prefix=/var/tmp/modula-2/opt \
--with-gnu-as --with-as=/usr/sfw/bin/gas \
--without-gnu-ld --with-ld=/usr/ccs/bin/ld
I use "-m64" to request 64 bit compile from the Solaris 32 Bit gcc.
gcc is: gcc version 3.4.3
Any ideas?
Regards,
wofi
- [Gm2] Compiling gm2 on Solaris 10 x64,
Wolfgang Filinger <=