Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9437 - ebuild e1000 fails to merge
Summary: ebuild e1000 fails to merge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-21 11:24 UTC by Grant Likely
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
fixed ebuild file (e1000-4.3.15.ebuild,968 bytes, text/plain)
2002-12-16 09:23 UTC, Alessandro Pisani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Likely 2002-10-21 11:24:44 UTC
When I attempt to emerge e1000 I get the following error and the ebuild fails to
merge.

>>> Install e1000-4.3.15 into /var/tmp/portage/e1000-4.3.15/image/ category net-misc
strip:
>>> Completed installing into /var/tmp/portage/e1000-4.3.15/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-e1000-4.3.15-8461.log"

open_wr:   /lib/modules/2.4.19-gentoo-r9/modules.dep
--------------------------------------------------------------------------------
 ...done!
>>> emerge net-misc/e1000-4.3.15 to /
>>> md5 ;-) e1000-4.3.15.tar.gz
Comment 1 Grant Likely 2002-10-22 10:15:42 UTC
I deleted /usr/portage/x11* from my portage tree and re-extracted the portage
snapshot today.  The problem has now gone away.  It seems that by using the
daily snapshots the xfree ebuid was picking up some old stuff, whereas using
rsync the old stuff is deleted.

What is the correct way to handle this situation?
Comment 2 Arcady Genkin (RETIRED) gentoo-dev 2002-10-22 18:51:07 UTC
Grant, is your last comment sent to the correct bug?
Comment 3 Grant Likely 2002-10-23 10:09:30 UTC
Sorry, ignore my last comment, it is the wrong bug.
Comment 4 Arcady Genkin (RETIRED) gentoo-dev 2002-10-30 09:59:09 UTC
I can't reproduce this.  What version of portage are you using?
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2002-10-30 10:04:12 UTC
maybe you got this output:

>>> md5 ;-) e1000-4.3.15.tar.gz
>>> Unpacking source...
>>> Unpacking e1000-4.3.15.tar.gz
>>> Source unpacked.
Makefile:135: ***
Makefile:136: *** Warning: kernel source version (2.4.19-openmosix-r7)
Makefile:137: *** does not match running kernel  (2.4.19-gentoo-r7)
Makefile:138: *** Continuing with build,
Makefile:139: *** resulting driver may not be what you want
Makefile:140: ***
Makefile:158: ***
Makefile:160: *** Warning: kernel source configuration (SMP)
Makefile:161: *** does not match running kernel (UP)
Makefile:166: *** Continuing with build,
Makefile:167: *** resulting driver may not be what you want
Makefile:168: ***

then i got the same error msg
**************************************************
** e1000.o built for 2.4.19-openmosix-r7
** SMP               Enabled
** iANS hooks        Enabled
** Pro Diagnostics   Enabled
**************************************************


>>> Install e1000-4.3.15 into /var/tmp/portage/e1000-4.3.15/image/ category net-
misc
strip:
>>> Completed installing into /var/tmp/portage/e1000-4.3.15/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-e1000-4.3.15-26951.log"

open_wr:   /lib/modules/2.4.19-gentoo-r7/modules.dep
--------------------------------------------------------------------------------
gentoo usr # 
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2002-10-30 10:19:41 UTC
What the makefile errors seem to say is that your /usr/src/linux symlink  is not
pointing to the kernel source tree of the same version as the currently loaded
kernel.  While this may be a problem for you (the ebuild might build a module
for a different kernel), this should not result in a sandbox access violation error.

So, my question to both of you, once more: what version of portage do are you
using?  One way to find that out is by running

  qpkg -v -f /usr/bin/emerge
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2002-10-30 10:24:15 UTC
i know my probleme, i just wanted you to help finding what might been happening

i'm using the latest stable portage 2.0.43

Comment 8 Grant Likely 2002-10-30 11:04:38 UTC
I'm using portage 2.0.43.

I've only ever compiled one kernel version in gentoo and the /usr/src/linux 
symlink is intact.  In fact, I know that the compile works because I'm using 
the compiled e1000 module right now.  I just had to install it manually by 
copying it into /lib/modules/2.4.19-gentoo-r9/misc

BTW, qpkg is not on my system.  Which ebuild provides it?
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2002-10-30 15:14:39 UTC
it's in  app-admin/gentoolkit
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2002-10-31 07:50:51 UTC
now i get the same error message

gentoo 1.2
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="${CFLAGS}"
portage 2.0.43 (latest)
gcc 2.95 (latest)
gentoo kernel 2.4.19-r9 (latest)

gentoo linux # emerge -u e1000
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/e1000-4.3.15 to /
>>> md5 ;-) e1000-4.3.15.tar.gz
>>> Unpacking source...
>>> Unpacking e1000-4.3.15.tar.gz
>>> Source unpacked.
rm -f e1000.o e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o 
e1000_proc.o kcompat.o ans.o ans_hw.o ans_os.o ans_driver.o e1000_idiag.o 
e1000.7.gz idiag_test
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_main.o e1000_main.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_hw.o e1000_hw.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_param.o e1000_param.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_ethtool.o e1000_ethtool.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_proc.o e1000_proc.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o kcompat.o kcompat.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans.o ans.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_hw.o ans_hw.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_os.o ans_os.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_driver.o ans_driver.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_idiag.o e1000_idiag.c


**************************************************
** e1000.o built for 2.4.19-gentoo-r9
** SMP               Disabled
** iANS hooks        Enabled
** Pro Diagnostics   Enabled
**************************************************


>>> Install e1000-4.3.15 into /var/tmp/portage/e1000-4.3.15/image/ category net-
misc
strip:
>>> Completed installing into /var/tmp/portage/e1000-4.3.15/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-e1000-4.3.15-14616.log"

open_wr:   /lib/modules/2.4.19-gentoo-r9/modules.dep
--------------------------------------------------------------------------------
gentoo linux # 
Comment 11 Arcady Genkin (RETIRED) gentoo-dev 2002-11-02 23:49:30 UTC
Still can't reproduce the problem on either of my two machines.  I'm using
portage 2.43 and even installed the same kernel sources as you have
(gentoo-sources-2.4.19-r9), and still everything works just fine... 
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2002-11-05 12:40:10 UTC
the next of my machines i try

gcc 2.95
CFLAGS="-march=i586 -O3 -pipe
"CXXFLAGS="${CFLAGS}"
CHOST="i586-pc-linux-gnu"


p133 net-misc # emerge e1000
Calculating dependencies ...done!
>>> emerge net-misc/e1000-4.3.15 to /
>>> Downloading 
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/e1000-
4.3.15.tar.gz
--23:29:39--  
http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/e1000-
4.3.15.tar.gz
           => `/usr/portage/distfiles/e1000-4.3.15.tar.gz'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 132,875 [application/x-tar]

100%[====================================>] 132,875        8.52K/s    ETA 00:00

23:29:57 (8.52 KB/s) - `/usr/portage/distfiles/e1000-4.3.15.tar.gz' saved 
[132875/132875]

>>> md5 ;-) e1000-4.3.15.tar.gz
>>> Unpacking source...
>>> Unpacking e1000-4.3.15.tar.gz
>>> Source unpacked.
rm -f e1000.o e1000_main.o e1000_hw.o e1000_param.o e1000_ethtool.o 
e1000_proc.o kcompat.o ans.o ans_hw.o ans_os.o ans_driver.o e1000_idiag.o 
e1000.7.gz idiag_test
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_main.o e1000_main.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_hw.o e1000_hw.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_param.o e1000_param.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_ethtool.o e1000_ethtool.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_proc.o e1000_proc.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o kcompat.o kcompat.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans.o ans.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_hw.o ans_hw.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_os.o ans_os.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o ans_driver.o ans_driver.c
gcc -march=i586 -O3 -pipe -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -
I/usr/src/linux/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -
include /usr/src/linux/include/linux/modversions.h  -DIANS -
DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -
DIDIAG   -c -o e1000_idiag.o e1000_idiag.c


**************************************************
** e1000.o built for 2.4.19-gentoo-r9
** SMP               Disabled
** iANS hooks        Enabled
** Pro Diagnostics   Enabled
**************************************************


>>> Install e1000-4.3.15 into /var/tmp/portage/e1000-4.3.15/image/ category net-
misc
strip:
>>> Completed installing into /var/tmp/portage/e1000-4.3.15/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-e1000-4.3.15-28745.log"

open_wr:   /lib/modules/2.4.19-gentoo-r9/modules.dep
--------------------------------------------------------------------------------
p133 net-misc # 
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2002-11-05 14:01:53 UTC
watch out this:

p133 tmp # cat sandbox-ippl-1.4.14-1031.log 
open_wr:   /conftest
open_wr:   /conftest
unlink:    /conftest
unlink:    /conftest*
unlink:    /conftest*
p133 tmp # cat sandbox-e1000-4.3.15-23604.log 
open_wr:   /lib/modules/2.4.19-gentoo-r9/modules.dep
p133 tmp #

i think /lib is a relative path !

i don't know how to fix this, do you ?
Comment 14 Alessandro Pisani 2002-11-20 07:21:54 UTC
i have the same problem of two machines, with a fresh install of gentoo 1.2:
e1000 fails to emerge due to sandbox violation, since it tries to directly
modify /lib/<kernel>/modules.dep

any fix available?
Alessandro
Comment 15 Dean Bailey 2002-11-21 17:05:23 UTC
I have same problem with it giving access violation.

If I just do a make install from the /vat/tmp/portage/e1000*/work/e1000* folder
it installs properly.
This is from my Dual P4 Xeon 2.0ghz machine.



**************************************************
** e1000.o built for 2.4.19-gentoo-r10
** SMP               Enabled
** iANS hooks        Enabled
** Pro Diagnostics   Enabled
**************************************************


>>> Install e1000-4.3.15 into /var/tmp/portage/e1000-4.3.15/image/ category net-misc
strip:
>>> Completed installing into /var/tmp/portage/e1000-4.3.15/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-e1000-4.3.15-6011.log"

open_wr:   /lib/modules/2.4.19-gentoo-r10/modules.dep
--------------------------------------------------------------------------------


Thanks,
      Dean Bailey <alron@gentoo.org>
Comment 16 Alessandro Pisani 2002-12-16 09:21:47 UTC
finally solved: the sandbox violation is caused by a line in the Makefile used
only by RPM. attaching new ebuild file :)

HTH and hope to get this merged soon!

bye,
Alessandro
Comment 17 Alessandro Pisani 2002-12-16 09:23:22 UTC
Created attachment 6539 [details]
fixed ebuild file

fixed ebuild file
Comment 18 Martin Holzer (RETIRED) gentoo-dev 2002-12-16 13:54:12 UTC
this really works, i can't believe it
Comment 19 Martin Holzer (RETIRED) gentoo-dev 2002-12-16 14:12:02 UTC
fixed in cvs.

thx
Comment 20 Arcady Genkin (RETIRED) gentoo-dev 2002-12-16 19:31:33 UTC
Strangely, I still fail to reproduce this bug on any of my systems.

Alessandro, thanks for the fix.  For the future, any Makefile mangling should
happen in src_unpack(), not src_compile().  I fixed the ebuild so.
Comment 21 Arcady Genkin (RETIRED) gentoo-dev 2002-12-16 19:36:13 UTC
Just added version 4.4.12 of the driver.  Please test. ;^)
Comment 22 Alessandro Pisani 2002-12-17 08:36:06 UTC
>Just added version 4.4.12 of the driver.  Please test. ;^)
4.4.12 works for me :)