This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/10752] New: GDB 7.0 can't be built multiarch on Darwin 10.0
- From: "dusk at woofle dot net" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 9 Oct 2009 04:47:27 -0000
- Subject: [Bug build/10752] New: GDB 7.0 can't be built multiarch on Darwin 10.0
- Reply-to: sourceware-bugzilla at sourceware dot org
Attempting to build a two-way universal gdb7 on Darwin 10.0 (Mac OS 10.6) is
impossible, as the configure script lacks a --disable-dependency-tracking
option. Configure is successful, but the build errors out in BFD with
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I./../include -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -arch i386 -arch x86_64 -MT
archive.lo -MD -MP -MF .deps/archive.Tpo -c -o archive.lo archive.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -I./../intl
-DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -arch i386 -arch x86_64 -MT archive.lo -MD -MP -MF .deps/archive.Tpo -c
archive.c -o archive.o
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch
flags
The BFD configure script has the requisite option, but it has to be run
manually. When this is done, though, the build still fails:
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-I./../include -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -arch i386 -arch x86_64 -c -o
libbfd.lo libbfd.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -I./../intl
-DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -arch i386 -arch x86_64 -c libbfd.c -o libbfd.o
cc1: warnings being treated as errors
libbfd.c: In function 'bfd_getb_signed_64':
libbfd.c:708: warning: left shift count >= width of type
libbfd.c:708: warning: left shift count >= width of type
libbfd.c: In function 'bfd_getl_signed_64':
libbfd.c:731: warning: left shift count >= width of type
libbfd.c:731: warning: left shift count >= width of type
libbfd.c: In function 'bfd_putb64':
libbfd.c:763: warning: right shift count >= width of type
libbfd.c:764: warning: right shift count >= width of type
libbfd.c:765: warning: right shift count >= width of type
libbfd.c:766: warning: right shift count >= width of type
libbfd.c: In function 'bfd_putl64':
libbfd.c:781: warning: right shift count >= width of type
libbfd.c:782: warning: right shift count >= width of type
libbfd.c:783: warning: right shift count >= width of type
libbfd.c:784: warning: right shift count >= width of type
This type of error is typical of builds which assume that the word size is
constant, which isn't the case in multiarch.
--
Summary: GDB 7.0 can't be built multiarch on Darwin 10.0
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
AssignedTo: unassigned at sourceware dot org
ReportedBy: dusk at woofle dot net
CC: gdb-prs at sourceware dot org
GCC build triplet: universal-apple-darwin10.0.0
GCC host triplet: universal-apple-darwin10.0.0
GCC target triplet: universal-apple-darwin10.0.0
BugsThisDependsOn: 10751
http://sourceware.org/bugzilla/show_bug.cgi?id=10752
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.