[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Bootstrapping GM2 on MacOSX Panther
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Bootstrapping GM2 on MacOSX Panther |
Date: |
18 Mar 2005 13:09:10 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Ed Smith-Rowland <address@hidden> writes:
> I get a different set of undefined symbols. Perhaps the first
> undefined symbol was just hiding these (although I thought ld would
> complain about ALL the undefined symbols).
yes I would agree, weird..
> MacOSX:~/gcc/obj-3.3.4+gm2-20041222/gcc ed$ gcc -g -DIN_GCC -W
> -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -DHAVE_CONFIG_H -o stage1/gm2/gm2l
> gm2/gm2-compiler-boot/gm2l_init.o
> gm2/gm2-compiler-boot/m2flex.o
> gm2/gm2-compiler-boot/gm2l.o gm2/gm2-compiler-boot/gm2.a
> gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a
> ./intl/libintl.a -liconv ../libiberty/libiberty.a
> gm2/gm2-compiler-boot/M2Reserved.o
> ld: Undefined symbols:
> _SymbolKey_GetSymKey
> _SymbolKey_InitTree
> _SymbolKey_PutSymKey
>
> Then I tried to do this:
> MacOSX:~/gcc/obj-3.3.4+gm2-20041222/gcc ed$ gcc -g -DIN_GCC -W
> -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -DHAVE_CONFIG_H -o stage1/gm2/gm2l
> gm2/gm2-compiler-boot/gm2l_init.o
> gm2/gm2-compiler-boot/m2flex.o
> gm2/gm2-compiler-boot/gm2l.o gm2/gm2-compiler-boot/gm2.a
> gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a
> ./intl/libintl.a -liconv ../libiberty/libiberty.a
> gm2/gm2-compiler-boot/*.o
>
> and this compile worked (with a bunch of warnings about multiply
> defined symbols.
so it appears that the archive `gm2/gm2-compiler-boot/gm2.a'
is incorrect - it might be worth trying:
cd build-dir/gcc
ranlib gm2/gm2-compiler-boot/gm2.a
gcc -g -DIN_GCC -W \
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-DHAVE_CONFIG_H -o stage1/gm2/gm2l \
gm2/gm2-compiler-boot/gm2l_init.o \
gm2/gm2-compiler-boot/m2flex.o \
gm2/gm2-compiler-boot/gm2l.o gm2/gm2-compiler-boot/gm2.a \
gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a \
./intl/libintl.a -liconv ../libiberty/libiberty.a
and see whether this works? (If not then an
nm gm2/gm2-compiler-boot/gm2.a | grep SymbolKey ) would be
interesting..
or an `ar t gm2/gm2-compiler-boot/gm2.a'
hope this helps,
Gaius