[Bug other/46695] [4.6 regression] failure to build X from darwin to cris-elf with lto enabled

pogma at thewrittenword dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 29 23:49:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46695

Peter O'Gorman <pogma at thewrittenword dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pogma at thewrittenword dot
                   |                            |com

--- Comment #1 from Peter O'Gorman <pogma at thewrittenword dot com> 2010-11-29 23:07:34 UTC ---
(In reply to comment #0)

> /bin/sh ./libtool --tag=CC   --mode=link /GCC/current/bin/gcc-4.6trunk -Wall
> -Werror -g -O2 -no-undefined
> Undefined symbols:
>   "_environ", referenced from:
>       _environ$non_lazy_ptr in libiberty.a(pex-unix.o)
>       _environ$non_lazy_ptr in libiberty.a(xmalloc.o)
> ld: symbol(s) not found

Hi Iain - Ralf pointed me at this report.

You're passing -no_undefined and want the library to build allowing undefined
symbols?

I'm not sure about that. It may be better to patch libiberty to # include
<crt_externs.h> and use _NSGetEnviron() instead?



More information about the Gcc-bugs mailing list