View previous topic :: View next topic |
Author |
Message |
imesg Guru

Joined: 12 Jul 2002 Posts: 452
|
Posted: Sat Oct 28, 2006 6:41 pm Post subject: spca5xx compile problems [SOLVED] |
|
|
Looks like two problems.
Kernel version: Linux version 2.6.19-rc2 (root@wx) (gcc version 4.1.1 (Gentoo 4.1.1-r1)) #4 PREEMPT Fri Oct 27 08:36:47 CDT 2006
Looks like a sandbox problem also.
>>> Compiling source in /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 ...
* Preparing spca5xx module
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /usr/src/linux M=/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 CC=i686-pc-linux-gnu-gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.19-rc2'
CC [M] /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type
make[2]: *** [/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.19-rc2'
make: *** [default] Error 2
!!! ERROR: media-video/spca5xx-20060501-r1 failed.
Call stack:
ebuild.sh, line 1568: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1261: Called linux-mod_src_compile
linux-mod.eclass, line 482: Called die
!!! Unable to make KERNELDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, and the call stack if relevant.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_spca5xx-20060501-r1-12488.log"
open_wr: /usr/src/linux-2.6.19-rc2/astest12567.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12571.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12578.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12582.out
--------------------------------------------------------------------------------
Thanks for any help.
Last edited by imesg on Tue Dec 12, 2006 9:05 pm; edited 1 time in total |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sat Oct 28, 2006 8:18 pm Post subject: |
|
|
I'm getting the same sandbox violation error as well; please keep me posted once you resolve it.
Using kernel linux-2.6.18-mm3, AMD64, GCC 4.1.1 |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sat Oct 28, 2006 8:32 pm Post subject: Re: spca5xx compile problems |
|
|
imesg wrote: | Code: | CC [M] /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type |
|
Using spca5xx-20060501-r1 fixes this problem (available under ~arch keywords).
The sandbox violation still remains, though. |
|
Back to top |
|
 |
tboloo Guru


Joined: 20 Jan 2006 Posts: 403 Location: Grodzisq, Poland
|
Posted: Sat Oct 28, 2006 9:37 pm Post subject: |
|
|
spca5xx is abadoned due to gspcav for the never kernels, see http://mxhaard.free.fr/download.html for details. _________________ The clock is ticking, brothers and sisters, counting down to Armageddon. |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sun Oct 29, 2006 9:58 am Post subject: |
|
|
And I get the exact same error with media-video/gspcav1-20060925.
Seems that these 'astestX.out' files are tests for the assembler command. Why the webcam driver would attempt to compile these outside its workdir, I have no idea.
scripts/Kbuild.include: | as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o astest$$$$.out ; \
then echo "$(2)"; else echo "$(3)"; fi; \
rm -f astest$$$$.out) |
|
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sun Dec 03, 2006 3:35 pm Post subject: |
|
|
This workaround fixed it for me: Code: | FEATURES='-sandbox -usersandbox userpriv' emerge gspcav1
| When emerged with userpriv, the compile will take place under the portage user account, so the ebuild won't have write access to the kernel source directory. Without sandbox, this means that it won't get sandbox violation, but instead a 'permission denied' error, which it gracefully handles.
I'll proceed to see if I need to report a bug or not. |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sun Dec 03, 2006 4:33 pm Post subject: |
|
|
The bug I reported (Gentoo Bugzilla bug #156994) is not going to be fixed as it's claimed to be an inherent incompatibility in the non-Gentoo kernel sources (bug #149307).
Evidently, even the vanilla 2.6.19 is now plagued by this issue. The bug is claimed to be fixed in the git HEAD meaning that it's probably showing up in 2.6.20. Until then, gentoo-sources are already patched. |
|
Back to top |
|
 |
imesg Guru

Joined: 12 Jul 2002 Posts: 452
|
Posted: Mon Dec 11, 2006 3:25 am Post subject: |
|
|
intgr wrote: | This workaround fixed it for me: Code: | FEATURES='-sandbox -usersandbox userpriv' emerge gspcav1
| When emerged with userpriv, the compile will take place under the portage user account, so the ebuild won't have write access to the kernel source directory. Without sandbox, this means that it won't get sandbox violation, but instead a 'permission denied' error, which it gracefully handles.
I'll proceed to see if I need to report a bug or not. |
I tried this and the access violation went away but not the other problem.
Thanks,
Gene |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Mon Dec 11, 2006 2:37 pm Post subject: |
|
|
imesg wrote: | I tried this and the access violation went away but not the other problem. |
Oh, you mean this one? Code: | /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory | Make sure your /usr/src/linux symlink points to the right sources and that you have configured it (using 'make menuconfig', 'make oldconfig', etc, in the kernel source directory). |
|
Back to top |
|
 |
imesg Guru

Joined: 12 Jul 2002 Posts: 452
|
Posted: Mon Dec 11, 2006 5:09 pm Post subject: |
|
|
intgr wrote: | imesg wrote: | I tried this and the access violation went away but not the other problem. |
Oh, you mean this one? Code: | /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory | Make sure your /usr/src/linux symlink points to the right sources and that you have configured it (using 'make menuconfig', 'make oldconfig', etc, in the kernel source directory). |
I thought it was this:
Code: | /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type |
However I am not sure exactly what the problem is.
Thanks,
Gene |
|
Back to top |
|
 |
intgr Apprentice


Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Mon Dec 11, 2006 5:16 pm Post subject: |
|
|
imesg wrote: | I thought it was this: Code: | /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type |
|
Nope, that's a warning.  |
|
Back to top |
|
 |
imesg Guru

Joined: 12 Jul 2002 Posts: 452
|
Posted: Tue Dec 12, 2006 9:04 pm Post subject: |
|
|
intgr wrote: | imesg wrote: | I thought it was this: Code: | /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type |
|
Nope, that's a warning.  |
Well if you know why did you ask?
I fixed it by
Code: | removing the '#include <linux/config.h>' from gspca_core.c
Retarred it and put it back in /usr/portage/distfiles.
Then ebuild gscpav1-20060925.ebuild digest.
Then emerge gscpav1. |
Thanks,
Gene |
|
Back to top |
|
 |
|