tim.mooney at ndsu dot edu
2011-06-16 20:12:14 UTC
http://sourceware.org/bugzilla/show_bug.cgi?id=12903
Summary: Makefile install target for libibert assumes gcc
Product: gdb
Version: 7.2
Status: NEW
Severity: normal
Priority: P2
Component: build
AssignedTo: ***@sourceware.org
ReportedBy: ***@ndsu.edu
I'm building gdb-7.2 on x86_64-sun-solaris2.10 (Solaris 10u6, not OpenSolaris)
with the Sun Workshop 12 u1 compiler toolchain.
The Makefile.in for libiberty just assumes that gcc is going to be used to
build everything, as it hardcodes ``-print-multi-os-directory'' into the
install flags for libiberty. This obviously doesn't work for Sun's "cc":
gmake[2]: Entering directory `/local/src/RPM/BUILD/gdb-7.2/libiberty'
gmake[3]: Entering directory `/local/src/RPM/BUILD/gdb-7.2/libiberty/testsuite'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/local/src/RPM/BUILD/gdb-7.2/libiberty/testsuite'
/bin/bash ./../mkinstalldirs /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g
-xta
rget=native -m64 -xarch=native -I/local/gnu/include -I/local/gnu/include
-I/loca
l/include -print-multi-os-directory`
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
/local/gnu/bin/ginstall -c -m 644 ./libiberty.a
/tmp/build/gdb/local/gnu/lib/64/
`cc -Xa -xs -g -xtarget=native -m64 -xarch=native -I/local/gnu/include
-I/local/
gnu/include -I/local/include -print-multi-os-directory`/./libiberty.an
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
( cd /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g -xtarget=native -m64
-xarch=
native -I/local/gnu/include -I/local/gnu/include -I/local/include
-print-multi-o
s-directory` ; chmod 644 ./libiberty.an ;ranlib ./libiberty.an )
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
mv -f /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g -xtarget=native -m64
-xarch
=native -I/local/gnu/include -I/local/gnu/include -I/local/include
-print-multi-
os-directory`/./libiberty.an /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g
-xta
rget=native -m64 -xarch=native -I/local/gnu/include -I/local/gnu/include
-I/loca
l/include -print-multi-os-directory`/./libiberty.a
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
This was not a problem in gdb-7.0.1. I never tried gdb-7.1, so I don't know if
the problem was present there or not.
Summary: Makefile install target for libibert assumes gcc
Product: gdb
Version: 7.2
Status: NEW
Severity: normal
Priority: P2
Component: build
AssignedTo: ***@sourceware.org
ReportedBy: ***@ndsu.edu
I'm building gdb-7.2 on x86_64-sun-solaris2.10 (Solaris 10u6, not OpenSolaris)
with the Sun Workshop 12 u1 compiler toolchain.
The Makefile.in for libiberty just assumes that gcc is going to be used to
build everything, as it hardcodes ``-print-multi-os-directory'' into the
install flags for libiberty. This obviously doesn't work for Sun's "cc":
gmake[2]: Entering directory `/local/src/RPM/BUILD/gdb-7.2/libiberty'
gmake[3]: Entering directory `/local/src/RPM/BUILD/gdb-7.2/libiberty/testsuite'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/local/src/RPM/BUILD/gdb-7.2/libiberty/testsuite'
/bin/bash ./../mkinstalldirs /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g
-xta
rget=native -m64 -xarch=native -I/local/gnu/include -I/local/gnu/include
-I/loca
l/include -print-multi-os-directory`
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
/local/gnu/bin/ginstall -c -m 644 ./libiberty.a
/tmp/build/gdb/local/gnu/lib/64/
`cc -Xa -xs -g -xtarget=native -m64 -xarch=native -I/local/gnu/include
-I/local/
gnu/include -I/local/include -print-multi-os-directory`/./libiberty.an
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
( cd /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g -xtarget=native -m64
-xarch=
native -I/local/gnu/include -I/local/gnu/include -I/local/include
-print-multi-o
s-directory` ; chmod 644 ./libiberty.an ;ranlib ./libiberty.an )
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
mv -f /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g -xtarget=native -m64
-xarch
=native -I/local/gnu/include -I/local/gnu/include -I/local/include
-print-multi-
os-directory`/./libiberty.an /tmp/build/gdb/local/gnu/lib/64/`cc -Xa -xs -g
-xta
rget=native -m64 -xarch=native -I/local/gnu/include -I/local/gnu/include
-I/loca
l/include -print-multi-os-directory`/./libiberty.a
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
cc: Warning: Option -nt-multi-os-directory passed to ld, if ld is invoked,
ignor
ed otherwise
usage: cc [ options] files. Use 'cc -flags' for details
This was not a problem in gdb-7.0.1. I never tried gdb-7.1, so I don't know if
the problem was present there or not.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.