This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init
- From: "skunk at iskunk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2006 17:37:36 -0000
- Subject: [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
It appears that GCC is assuming that the system linker can accept the +init
option. In the ld(1) man page, +init appears under the heading "64 Bit (ELF)
Link Editor options", and the system is 32-bit-only---might that have something
to do with it?
----(begin build log excerpt)----
ranlib libbackend.a
stage1/xgcc -Bstage1/ -B/opt/tg/hppa2.0w-hp-hpux11.00/bin/ -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 -DHAVE_CONFIG_H -o cc1-dummy c-lang.o
stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o
c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o
c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o
c-dump.o c-pch.o c-parser.o c-gimplify.o tree-mudflap.o c-pretty-print.o
dummy-checksum.o \
main.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a
../libiberty/libiberty.a
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (c-lang.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld flags... files...
collect2: ld returned 1 exit status
gmake[2]: *** [cc1-dummy] Error 1
gmake[2]: Leaving directory `/home/cport/tmp/gcc--4.1.1.build/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/home/cport/tmp/gcc--4.1.1.build/gcc'
gmake: *** [bootstrap-lean] Error 2
----(end build log excerpt)----
Output of "/usr/ccs/bin/ld -V":
92453-07 linker command s800.sgs ld B.11.13 REL 990903
/usr/ccs/bin/ld: 92453-07 linker linker ld B.11.13 990903
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld flags... files...
Output of "uname -a":
HP-UX hrdygrdy B.11.00 A 9000/785 2003934647 two-user license
--
Summary: /usr/ccs/bin/ld: Unrecognized argument: +init
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: skunk at iskunk dot org
GCC build triplet: hppa2.0w-hp-hpux11.00
GCC host triplet: hppa2.0w-hp-hpux11.00
GCC target triplet: hppa2.0w-hp-hpux11.00
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28497