[Gc] compilation problems with GC 6.2 on Mac OS 10.3.3

Boehm, Hans hans.boehm at hp.com
Tue May 11 09:57:09 PDT 2004


I'm not a MacOS expert.  But this looks like a gcc misconfiguration to me.
I'm not convinced it has anything to do with the garbage collector.  It looks
like gcc is passing a "-stabs" flag to the assembler, and the assembler
understands no such flags.  It may be that the binutils version is out of
date, or gcc is configured for the wrong assembler, or ...

A workaround is probably to invoke the assembler manually on powerpc_darwin_mach_dep.s,
generating powerpc_darwin_mach_dep.o .  (You may have to copy it to mach_dep.o.)
I think none of the flags matter for this file, so that should be easy to do.
If it doesn't work, it'll tell us more about what's going on.

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com
> [mailto:gc-bounces at napali.hpl.hp.com]On Behalf Of Bojan Antonovic
> Sent: Tuesday, May 11, 2004 5:15 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] compilation problems with GC 6.2 on Mac OS 10.3.3
> 
> 
> Hi!
> 
> I configured gc with:
> 
>     sudo ./configure --prefix=/usr/local/
> 
> Then I tried to build it with:
> 
>     sudo make
> 
> Compilation stopped with this error message:
> 
> gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" 
> -DPACKAGE_VERSION=\"6.2\" "-DPACKAGE_STRING=\"gc 6.2\"" 
> -DPACKAGE_BUGREPORT=\"Hans.Boehm at hp.com\" -DGC_VERSION_MAJOR=6 
> -DGC_VERSION_MINOR=2 -DPACKAGE=\"gc\" -DVERSION=\"6.2\" 
> -DGC_DARWIN_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 
> -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 
> -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 
> -DATOMIC_UNCOLLECTABLE=1 -I./include -fexceptions -g -O2 -fexceptions 
> -Wp,-P -x assembler-with-cpp -c powerpc_darwin_mach_dep.s  
> -fno-common 
> -DPIC -o .libs/powerpc_darwin_mach_dep.lo
> /usr/libexec/gcc/darwin/ppc/as: I don't understand '-' flag!
> /usr/libexec/gcc/darwin/ppc/as: I don't understand 's' flag!
> /usr/libexec/gcc/darwin/ppc/as: I don't understand 't' flag!
> /usr/libexec/gcc/darwin/ppc/as: I don't understand 'a' flag!
> /usr/libexec/gcc/darwin/ppc/as: I don't understand 'b' flag!
> /usr/libexec/gcc/darwin/ppc/as: I don't understand 's' flag!
> make[1]: *** [powerpc_darwin_mach_dep.lo] Error 1
> 
> Here some infos:
> gcc -v
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
> Thread model: posix
> gcc version 3.3 20030304 (Apple Computer, Inc. build 1635) 
> (-mlongcall)
> 
> uname -a
> Darwin Bojan-Antonovics-Computer.local 7.3.0 Darwin Kernel Version 
> 7.3.0: Fri Mar  5 14:22:55 PST 2004; 
> root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC  Power Macintosh powerpc
> 
> greetings
> 
>     Bojan
> 
> 
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 


More information about the Gc mailing list