public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init
@ 2006-07-26 17:37 skunk at iskunk dot org
2006-07-26 17:43 ` [Bug bootstrap/28497] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: skunk at iskunk dot org @ 2006-07-26 17:37 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/28497] /usr/ccs/bin/ld: Unrecognized argument: +init
2006-07-26 17:37 [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init skunk at iskunk dot org
@ 2006-07-26 17:43 ` pinskia at gcc dot gnu dot org
2006-07-26 17:55 ` skunk at iskunk dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-26 17:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-26 17:42 -------
I think GCC needs the GNU binutils linker now.
Also how did you configure GCC?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28497
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/28497] /usr/ccs/bin/ld: Unrecognized argument: +init
2006-07-26 17:37 [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init skunk at iskunk dot org
2006-07-26 17:43 ` [Bug bootstrap/28497] " pinskia at gcc dot gnu dot org
@ 2006-07-26 17:55 ` skunk at iskunk dot org
2006-07-27 22:47 ` danglin at gcc dot gnu dot org
2006-07-28 2:04 ` skunk at iskunk dot org
3 siblings, 0 replies; 5+ messages in thread
From: skunk at iskunk dot org @ 2006-07-26 17:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from skunk at iskunk dot org 2006-07-26 17:55 -------
(In reply to comment #1)
> I think GCC needs the GNU binutils linker now.
It certainly needs the GNU assembler (explicit configure-time error to that
effect), and I built binutils 2.17. That one said that (GNU) ld is "not
supported in this configuration"... moreover, the documentation for GCC's
HPPA-specific options list a few relevant to the HP linker.
> Also how did you configure GCC?
.../configure --disable-dependency-tracking --disable-maintainer-mode
--disable-shared --disable-nls --enable-version-specific-runtime-libs
--with-arch=2.0 --with-gnu-as --with-as=/usr/local/bin/gnu-as
--enable-languages=c,c++
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28497
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/28497] /usr/ccs/bin/ld: Unrecognized argument: +init
2006-07-26 17:37 [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init skunk at iskunk dot org
2006-07-26 17:43 ` [Bug bootstrap/28497] " pinskia at gcc dot gnu dot org
2006-07-26 17:55 ` skunk at iskunk dot org
@ 2006-07-27 22:47 ` danglin at gcc dot gnu dot org
2006-07-28 2:04 ` skunk at iskunk dot org
3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-07-27 22:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from danglin at gcc dot gnu dot org 2006-07-27 22:47 -------
Your HP system linker is too old. Please update to PHSS_33034 or
later. +init is a "common" option for both 32 and 64 bit links.
+init is used by GCC for initializers for the 32-bit runtime. You
probably should install the latest patch bundle for 11.00.
PHSS_33034 is recommended because it fixes a critical error. It's
also needed for Java in 4.2. The installation documentation contains
the minimum patch requirements.
GNU ld doesn't support the 32-bit SOM runtime under hpux. It's a
work in progress for the 64-bit runtime and not recommended.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28497
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/28497] /usr/ccs/bin/ld: Unrecognized argument: +init
2006-07-26 17:37 [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init skunk at iskunk dot org
` (2 preceding siblings ...)
2006-07-27 22:47 ` danglin at gcc dot gnu dot org
@ 2006-07-28 2:04 ` skunk at iskunk dot org
3 siblings, 0 replies; 5+ messages in thread
From: skunk at iskunk dot org @ 2006-07-28 2:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from skunk at iskunk dot org 2006-07-28 02:04 -------
(In reply to comment #3)
> Your HP system linker is too old. Please update to PHSS_33034 or
> later.
Thanks for the note; I'll do that.
It would be good to have a configure-time check for this. This did seem to be a
system portability bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28497
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-28 2:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 17:37 [Bug bootstrap/28497] New: /usr/ccs/bin/ld: Unrecognized argument: +init skunk at iskunk dot org
2006-07-26 17:43 ` [Bug bootstrap/28497] " pinskia at gcc dot gnu dot org
2006-07-26 17:55 ` skunk at iskunk dot org
2006-07-27 22:47 ` danglin at gcc dot gnu dot org
2006-07-28 2:04 ` skunk at iskunk dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).