Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118457 - linux-mod.eclass doesn't filter LDFLAGS
Summary: linux-mod.eclass doesn't filter LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 13:32 UTC by Alberto Zennaro
Modified: 2006-10-16 07:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Zennaro 2006-01-09 13:32:13 UTC
I'm using the unsupported LDFLAGS "-Wl,--as-needed", but I suppose that compiling spca5xx it shouldn't fails for ld unrecognized options.

This is what I get with an emerge =spca5xx-20060101:

/var/tmp/portage/spca5xx-20060101/work/spca5xx-20060101/drivers/usb/spca5xx.c:5389: warning: 'defaultrows' may be used uninitialized in this function
/var/tmp/portage/spca5xx-20060101/work/spca5xx-20060101/drivers/usb/spca5xx.c:5388: warning: 'defaultcols' may be used uninitialized in this function
ld: unrecognized option '-Wl,--as-needed'
ld: use the --help option for usage information
make[2]: *** [/var/tmp/portage/spca5xx-20060101/work/spca5xx-20060101/spca5xx.o] Error 1
make[1]: *** [_module_/var/tmp/portage/spca5xx-20060101/work/spca5xx-20060101] Error 2
make: *** [default] Error 2

!!! ERROR: media-video/spca5xx-20060101 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make                                  TOUT=/var/tmp/portage/spca5xx-20060101/temp/.tmp_gas_check TOUT=/var/tmp/portage/spca5xx-20060101/temp/.tmp_gas_check TOUT=/var/tmp/portage/spca5xx-20060101/temp/.tmp_gas_check KERNELDIR=/usr/src/linux default.

----

This is my emerge --info:

Portage 2.1_pre3-r1 (default-linux/ppc/2005.1/ppc, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-rc7 ppc)
=================================================================
System uname: 2.6.15-rc7 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.91.0.5
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LDFLAGS="-Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac alsa altivec amuled apache2 apm arts asf audiofile automount bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cdr cpudetection crypt css cups curl dri dts dvd dvdr dvdread emboss encode escreen exif expat fam ffmpeg flac fortran freetype gdbm gif glut gmp gpm gtk2 hal ibam idn ieee1394 imagemagick imlib java jpeg kde kdeenablefinal kipi lcms libwww mad matroska max-idx-128 mhash mng motif mozsvg mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pam pcre pdflib perl php pmu png python qt quicktime readline remote roundrobin ruby samba sametime sdl spell sqlite ssl svg symlink sysfs syslog tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vidix vorbis wifi wxwindows xine xinerama xml2 xv xvid zlib elibc_glibc kernel_linux linguas_it userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-09 13:35:45 UTC
At present, we don't support any use of LDFLAGS. Feel free to reopen if you have a sane patch. Thanks.
Comment 2 Mike Doty (RETIRED) gentoo-dev 2006-02-19 14:04:38 UTC
opening and reassigned to kernel as linux-mod.eclass should probably filter LDFLAGS(I can't think on a valid one)
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2006-10-16 07:09:18 UTC
This should actually be resolved with the implementation of 133382.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-10-16 07:13:19 UTC
I fixed the other bug and we use LDFLAGS="$(get_abi_LDFLAGS)" now. Please reopen when it does not work for you.