[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Bootstrapping GM2 on MacOSX Panther
From: |
Ed Smith-Rowland |
Subject: |
[Gm2] Bootstrapping GM2 on MacOSX Panther |
Date: |
Tue, 15 Mar 2005 10:07:15 -0500 |
User-agent: |
Mozilla Thunderbird 1.0 (Macintosh/20041206) |
I am trying to bootstrap the gcc-3.3.4 + gm2 combo on Mac OS X 10.3.8.
This is a BSDish system.
I managed to hack my way through several build problems (which I'll
explain later) I came to this one that I don't know how to get around:
------------8<------------------8<---------------------8<----------------------8<-----------------------------------------------------------
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -DHAVE_CONFIG_H -o stage1/gm2/gm2lcc \
gm2/gm2-compiler-boot/gm2lcc_init.o \
gm2/gm2-compiler-boot/gm2lcc.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/boot-bin/mklink -s -exit
../../gcc-3.3.4+gm2-20041222/gcc/gm2/init/gm2linit
mv mod_init.c gm2/gm2-compiler-boot/gm2l_init.c
gcc -c -g gm2/gm2-compiler-boot/gm2l_init.c -o
gm2/gm2-compiler-boot/gm2l_init.o
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
ld: Undefined symbols:
_M2Reserved_NulName
make[3]: *** [stage1/gm2/gm2l] Error 1
cp: stage2/gm2/gm2lcc: No such file or directory
make[2]: *** [gm2lcc] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2
------------8<------------------8<---------------------8<----------------------8<-----------------------------------------------------------
I can grep for M2Reserved_Nul and found no references to it in the
source directory but found several *.h and *.c references in my build
directory. Here are declarations:
------------8<------------------8<---------------------8<----------------------8<-----------------------------------------------------------
MacOSX:~/gcc/obj-3.3.4+gm2-20041222 ed$ find ../obj-3.3.4+gm2-20041222
-name \*.h -exec grep M2Reserved_Nul {} \;
vextern unsigned int M2Reserved_NulName, M2Reserved_NulTok,
vextern unsigned int M2Reserved_NulName, M2Reserved_NulTok,
------------8<------------------8<---------------------8<----------------------8<-----------------------------------------------------------
I could find many uses in the *.c files but no definition.
Could it be the package is missing a file?
What should the value of this variable be? Where is it defined?
Thanks!
- [Gm2] Bootstrapping GM2 on MacOSX Panther,
Ed Smith-Rowland <=