ld: fatal: use the -z help option for usage information

Rafael Ostertag raos at opencsw.org
Tue Apr 22 12:45:48 CEST 2014


Hi Maciej

On Tue, Apr 22, 2014 at 11:33:49AM +0100, Maciej (Matchek) Blizi??ski wrote:
> The failing invocation is:
> 
> (cd work/solaris10-sparc/build-isa-sparcv8plus/Python-3.4.0/; \
> ld -mcpu=v9 -Wa,-xarch=v8plus -L/opt/csw/lib/ffi -L/opt/csw/lib
> -lsocket -lresolv -lrt -mcpu=v9 -Wa,-xarch=v8plus -L/opt/csw/lib/ffi
> -L/opt/csw/lib -lsocket -lresolv -lrt -mcpu=v9 -Wa,-xarch=v8plus
> -L/opt/csw/lib/ffi -L/opt/csw/lib -lsocket -lresolv -lrt -g -mcpu=v9
> -Wa,-xarch=v8plus -D_XPG5 -I/opt/csw/include
> build/temp.solaris-2.10-sun4v.32bit-3.4/home/maciej/src/opencsw/pkg/lang-python/python/branches/python-3.4/work/solaris10-sparc/build-isa-sparcv8plus/Python-3.4.0/Modules/_ctypes/_ctypes_test.o
> -L. -L/opt/csw/lib/ffi -L/opt/csw/lib -lpython3.4m -o
> build/lib.solaris-2.10-sun4v.32bit-3.4/_ctypes_test.so)
> 
> And the error message is:
> 
> ld: warning: option -c appears more than once, first setting taken
> ld: warning: option -c appears more than once, first setting taken
> ld: fatal: unrecognized option '-g'
> ld: warning: option -c appears more than once, first setting taken
> debug: warning: unrecognized debug option (try help): _XPG5
> debug:
> debug: Solaris Linkers: 5.10-1.1518
> debug:
> ld: fatal: use the -z help option for usage information
> 
> ...but the -z flag isn't even there. I also don't know what's up with
> the -g flag, I can see it in "mgar modenv" output.

Apparently, you can think of `ld -z help' as `ld --help'. To me, it looks like
a lot of compiler flags have leaked into the ld command line arguments

Just for the heck of it, what happens if you replace `ld' by `cc' and run it manually?

cheers
rafi


More information about the maintainers mailing list