public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/10752] New: GDB 7.0 can't be built multiarch on Darwin 10.0
@ 2009-10-09  4:47 dusk at woofle dot net
  2010-05-17 11:53 ` [Bug build/10752] " fabien dot andre at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dusk at woofle dot net @ 2009-10-09  4:47 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug build/10752] GDB 7.0 can't be built multiarch on Darwin 10.0
  2009-10-09  4:47 [Bug build/10752] New: GDB 7.0 can't be built multiarch on Darwin 10.0 dusk at woofle dot net
@ 2010-05-17 11:53 ` fabien dot andre at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fabien dot andre at gmail dot com @ 2010-05-17 11:53 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From fabien dot andre at gmail dot com  2010-05-17 11:53 -------
Building with macports

libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I. -I./../include
-DBINDIR=\"/opt/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Werror -O2 -I/opt/local/include -arch x86_64 -arch i386 -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
lipo: can't figure out the architecture type of: /var/tmp//ccQlsvLc.out


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-17 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-09  4:47 [Bug build/10752] New: GDB 7.0 can't be built multiarch on Darwin 10.0 dusk at woofle dot net
2010-05-17 11:53 ` [Bug build/10752] " fabien dot andre at gmail dot com

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).