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
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?
Grant, is your last comment sent to the correct bug?
Sorry, ignore my last comment, it is the wrong bug.
I can't reproduce this. What version of portage are you using?
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 #
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
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
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?
it's in app-admin/gentoolkit
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 #
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...
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 #
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 ?
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
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>
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
Created attachment 6539 [details] fixed ebuild file fixed ebuild file
this really works, i can't believe it
fixed in cvs. thx
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.
Just added version 4.4.12 of the driver. Please test. ;^)
>Just added version 4.4.12 of the driver. Please test. ;^) 4.4.12 works for me :)