gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Re: Intel-Mac build problem


From: Gaius Mulley
Subject: [Gm2] Re: Intel-Mac build problem
Date: 25 Sep 2008 15:14:37 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hi Jim,

on a PPC Mac platform (Darwin Kernel Version 8.11.0) I can build
stage1 correctly, but when I try to build make gm2.paranoid I get the
following unresolved references.


gcc   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H  -o
stage2/gm2/cc1gm2 gm2/gccgm2.o gm2/gm2builtins.o gm2/gm2-lang.o
gm2/gm2except.o gm2/stor-layout.o gm2/m2pp.o gm2/gm2-compiler/gm2.a
gm2/gm2-libs/libgm2.a          \
                              gm2/gm2-compiler/m2flex.o main.o
tree-browser.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a
./../intl/libintl.a -liconv  ../libiberty/libiberty.a \
                              
../powerpc-apple-darwin8.11.0/libstdc++-v3/src/.libs/libstdc++.a
/usr/bin/ld: warning multiple definitions of symbol _locale_charset
./../intl/libintl.a(localcharset.o) definition of _locale_charset in
section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libiconv.dylib(localcharset.o)
definition of _locale_charset
/usr/bin/ld: Undefined symbols:
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_Resume
__Unwind_SetGR
__Unwind_SetIP
__Unwind_RaiseException
__Unwind_Resume_or_Rethrow
__Unwind_DeleteException
collect2: ld returned 1 exit status


However when I attempt to build hello world (using stage1) I get:

$ make
gm2 -c -g -I. hello.mod
gm2 -g -I. hello.mod
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
collect2: ld returned 1 exit status
make: *** [all] Error 1

I've just checked in a patch for gm2/gm2spec.c to include linking
against -lgcc_eh.  However it does not appear to work yet.  It
is possible to force a correct linkage if I use the following
command line:

 gm2  -g -I. hello.mod  -lgcc_eh

It isn't the problem your seeing though..  has anyone else seen
the "_force_no_linker" problem?

regards,
Gaius


"Cox, James V" <address@hidden> writes:

> Hi Gaius:
> 
> I tried to compile the new version on my "intel mac" and got the same error 
> as listed below.
> Is my problem unique?
> 
> Thanks, Jim
> 
> ...
> gcc   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros 
> -Wold-style-definition -Wmissing-format-attribute -fno-common   
> -DHAVE_CONFIG_H  -o xgm2 gcc.o gm2spec.o prefix.o intl.o \
>   version.o  ../libcpp/libcpp.a ./../intl/libintl.a -liconv  
> ../libiberty/libiberty.a
> /usr/bin/ld: warning multiple definitions of symbol _locale_charset
> ./../intl/libintl.a(localcharset.o) definition of _locale_charset in section 
> (__TEXT,__text)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libiconv.dylib(localcharset.o)
>  definition of _locale_charset
> /usr/bin/ld: Undefined symbols:
> _force_no_linker
> collect2: ld returned 1 exit status
> make[2]: *** [xgm2] Error 1
> make[1]: *** [all-gcc] Error 2
> make: *** [all] Error 2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]