Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110238 - ndiswrapper emerge fails to recognize my gcc version
Summary: ndiswrapper emerge fails to recognize my gcc version
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Mobile Herd (OBSOLETE)
Depends on:
Reported: 2005-10-23 09:21 UTC by Alexander Krivács Schrøder
Modified: 2005-11-03 12:30 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Krivács Schrøder 2005-10-23 09:21:59 UTC
Here's the output of my emerge:

notlie ~ # emerge ndiswrapper
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/ndiswrapper-1.2 to /
>>> md5 files   ;-) ndiswrapper-1.2.ebuild
>>> md5 files   ;-) files/digest-ndiswrapper-1.2
>>> md5 files   ;-) files/ndiswrapper-1.2-suspend2.patch
>>> md5 src_uri ;-) ndiswrapper-1.2.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.13-gentoo-r3
 * Checking for suitable kernel configuration options:
find: invalid predicate `-quit'
 * Unable to detect what version of GCC was used to compile
 * the kernel. Build will continue, but you may experience problems.
>>> Unpacking source...
>>> Unpacking ndiswrapper-1.2.tar.gz to /var/tmp/portage/ndiswrapper-1.2/work
 * Applying ndiswrapper-1.2-suspend2.patch ...                            [ ok ]
 * The only kernels that will work are gentoo-sources, vanilla-sources, and
 * No other kernels are supported. Kernels like the mm kernels will NOT work.
 * Converting ndiswrapper-1.2/driver/Makefile to use M= instead of SUBDI  [ ok ]
>>> Source unpacked.

I'm not sure what causes the problem, although there seems there's being sent an
erroronous "predicate" to "find". It also says I may experience problems. Indeed
I am.

Reproducible: Always
Steps to Reproduce:
1. emerge ndiswrapper
2. modprobe ndiswrapper

Actual Results:  
* Unable to detect what version of GCC was used to compile
* the kernel. Build will continue, but you may experience problems.


FATAL: Error inserting ndiswrapper
(/lib/modules/2.6.13-gentoo-r3/misc/ndiswrapper.ko): Operation not permitted

Expected Results:  
Emerged without warning, probed without any error

notlie ~ # emerge info
Portage (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-, 2.6.13-gentoo-r3 i686)
System uname: 2.6.13-gentoo-r3 i686 Intel(R) Celeron(R) M processor         1500MHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
USE="x86 S3TC X X509 aac acl acpi activefilter aim alsa ansi aper apm arts
artworkextra audiofile authdaemond avantgo avi bash-completion bcmath bdf berkdb
bidi bitmap-fonts blender-game bzip2 bzlib cap cddb cdinstall cdparanoia cdrom
chroot cjk clanJavaScript clanVoice client codecs cpdflib crypt css ctype cups
curl curlwrappers dba dhcp dio djbfft dnd droproot dts dv dvdr dvdread edl eds
eep emboss encode erandom evo exif ext-png ext-zlib extensions fbcon ffmpeg
fluidsynth fmod foomaticdb foreign-package foreign-sysvinit fortran fpx freetype
freewnn ftp gb gcl gd gdbm geoip gif gimp gimpprint ginac glade glgd glitz glut
gmp gmtfull gnokii gnome gnomedb gnuplot gpm graphviz gs gsl gstreamer gtk gtk2
gtkhtml hal hbci hdf iconv icq ide idl image imagemagick imap imlib imlib2 ipv6
irmc j2ee jabber java javacomm javadoc javamail javascript jbig jboss jce jms
jmx jp2 jpeg jpeg2k jta jython kadu-modules kadu-voice kakasi kde kerberos krb4
latex lcms leim libclamav libdsk libg++ libgd libgda libsamplerate libwww live
lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir matroska mbox mcal mdb
memlimit migemo mikmod mime mixer mjpeg mls mmap mmx mng monkey motif
mozcalendar mozdevelop mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn
mule music mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh native ncurses
net netcdf network neural nis nls nowin nptl ntlm nviz oav objc ocaml offensive
ofx ogg oggvorbis openal opengl opie oscar ospfapi oss pam parse-clocks pcap
pcntl pcre pda pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay physfs pic
plotutils png portaudio posix povray ppds pri print procmail pthreads python qt
quicktime quotes readline real resperl rhino rogue rplay samba sasl sdl
servlet-2.3 servlet-2.4 session sftplogging shared sharedmem silc simplexml skk
slp smime sndfile snortsam sockets socks5 sox spell spl sse sse2 ssl
stencil-buffer stroke struts svg sysvipc szip t1lib tcpd tcsim tga theora tidy
tiff transcode truetype truetype-fonts type1-fonts udev uim unicode usb v4l v4l2
vcd vda videos virus-scan vorbis wddx win32codecs winbind wmf wxwindows xanim
xatrix xchatdccserver xchattext xface xgetdefault xine xml2 xmlrpc xmms xosd xpm
xprint xrandr xscreensaver xsl xv xvid xvmc yahoo yaz yp yv12 zaptel zeo zlib
zvbi userland_GNU kernel_linux elibc_glibc"


Probing other modules works without issues.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-10-23 10:38:55 UTC
Please test with ndiswrapper 1.4 and re-open if the problem still presists.
Comment 2 Henrik Brix Andersen 2005-10-23 10:40:14 UTC
John, looks like a problem with the vermagic check in linux-mod.eclass?
Comment 3 Alexander Krivács Schrøder 2005-10-23 11:24:03 UTC
notlie ~ # emerge -av =net-wireless/ndiswrapper-1.4

These are the packages that I would merge, in order:

Calculating dependencies
emerge: there are no ebuilds to satisfy "=net-wireless/ndiswrapper-1.4".


It doesn't seem to be there. And I've synced earlier today, so...
Comment 4 Henrik Brix Andersen 2005-10-23 11:40:58 UTC
It was only just added - wait a few hours, resync and retry.
Comment 5 Alexander Krivács Schrøder 2005-10-23 12:33:12 UTC
OK, so now I've installed 1.4. And there's slight progress. I suppose. The error
message has changed from "Operation not permitted" to "Invalid argument":

notlie linux # modprobe ndiswrapper
FATAL: Error inserting ndiswrapper
(/lib/modules/2.6.13-gentoo-r3/misc/ndiswrapper.ko): Invalid argument
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2005-10-23 14:03:38 UTC
this is because the version of gcc (or some other similar tool/variable) has
changed since you built the kernel.
Recompile the kernel, rebuild the module, reboot and test again please.
Comment 7 Alexander Krivács Schrøder 2005-11-03 12:30:08 UTC
Well, I got it to work, with a different driver and different hardware. My
problem was probably that I hadn't even installed a driver yet when I did
"modprobe ndiswrapper". I figured doing it before or after installing the driver
was no different, but apparently it was. I'd set the report to invalid was such
an option available, but alas, it's not, so I did what seemed most appropriate,
and closed it.