Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29390 - sys-devel/gdb-5.3.90 fails to compile
Summary: sys-devel/gdb-5.3.90 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-22 17:09 UTC by Todd Sunderlin (RETIRED)
Modified: 2006-02-04 06:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for gdb-5.3.90.ebuild (gdb-5.3.90.ebuild.patch,374 bytes, patch)
2003-09-23 02:52 UTC, Sven Blumenstein (RETIRED)
Details | Diff
New patch for gdb-5.3.90.ebuild (gdb-5.3.90.ebuild.patch,410 bytes, patch)
2003-09-23 03:05 UTC, Sven Blumenstein (RETIRED)
Details | Diff
Finally :-) (gdb-5.3.90.ebuild.patch,787 bytes, patch)
2003-09-23 03:41 UTC, Sven Blumenstein (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Sunderlin (RETIRED) gentoo-dev 2003-09-22 17:09:50 UTC
gcc -c -mcpu=v8 -mtune=v9 -O2    -pipe    -I. -I. -I./config
-DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl 
-DMI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized  sparc-nat.c
In file included from /usr/include/asm/reg.h:11,
                 from sparc-nat.c:38:
/usr/include/asm-sparc/reg.h:40: redefinition of `struct fpq'
/usr/include/asm-sparc/reg.h:45: redefinition of `struct fq'
/usr/include/asm-sparc/reg.h:75: redefinition of `struct fpu'
sparc-nat.c: In function `fetch_inferior_registers':
sparc-nat.c:105: warning: implicit declaration of function `memcpy'
distcc[31614] ERROR: compile on localhost failed
make[1]: *** [sparc-nat.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gdb-5.3.90/work/gdb-5.3.90-20030710/gdb'
make: *** [all-gdb] Error 2

!!! ERROR: sys-devel/gdb-5.3.90 failed.
!!! Function src_compile, Line 96, Exitcode 2
!!! (no error message)

emerge info is as follows:
Portage 2.0.49-r5 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-sparc-r0)
=================================================================
System uname: 2.4.22-sparc-r0 sparc64 sun4u
distcc 2.10 sparc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox distcc buildpkg ccache portageuser cvs"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://adelie.polymtl.ca"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc crypt encode fbcon foomaticdb gif jpeg mad mikmod mpeg ncurses nls
oss png pdflib spell truetype xv xml2 xmms zlib gtkhtml gdbm berkdb slang
readline arts bonobo guile sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gtk motif opengl mozilla cdr cups X gtk2 gnome -alsa -kde -qt -java
-avi -apache2 -ldap"

(and distcc is not working, despite what info says, the other machine isn't on
at the moment)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Blumenstein (RETIRED) gentoo-dev 2003-09-23 02:52:40 UTC
Created attachment 18194 [details, diff]
Patch for gdb-5.3.90.ebuild

Heya todd,

small bug in the ebuild. Here is the patch to fix it :)

regards,
Sven (bazik)
Comment 2 Sven Blumenstein (RETIRED) gentoo-dev 2003-09-23 03:05:51 UTC
Created attachment 18195 [details, diff]
New patch for gdb-5.3.90.ebuild

Hmmm well, looks like the check for ${SNAPSHOT} blocks the patching. 

Whats the use for this variable? This updated patch works for sparc. But I
doubt the other archs get patched because of ${SNAPSHOT}...
Comment 3 Sven Blumenstein (RETIRED) gentoo-dev 2003-09-23 03:41:10 UTC
Created attachment 18196 [details, diff]
Finally :-)

Ok, that fixes it ;)
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-09-24 02:20:26 UTC
Fixed in portage.

Thanks for the fix :)
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 13:31:42 UTC
And just broke it for compiling with USE=objc.  Please check next time -
the
only reason I did not apply those patches, was that I was not sure they
still was valid, and wanted whoever to just fix it as they came along. This
is
not the same as the one for objc however!

Guys, please look at bug #29845.