Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252569 - media-tv/v4l-dvb-hg fails to compile on dib0700 with 2.6.27-r* kernel
Summary: media-tv/v4l-dvb-hg fails to compile on dib0700 with 2.6.27-r* kernel
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-26 09:03 UTC by Vesa Tervo
Modified: 2009-01-26 13:33 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,3.45 KB, text/plain)
2008-12-26 18:27 UTC, Vesa Tervo
Details
environment (environment,124.19 KB, text/plain)
2008-12-26 18:28 UTC, Vesa Tervo
Details
build.log (build.log,13.48 KB, text/plain)
2008-12-26 18:31 UTC, Vesa Tervo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vesa Tervo 2008-12-26 09:03:14 UTC
CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/dib0700_core.o
  CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/dib0700_devices.o
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c: In function 'bluebird_patch_dvico_firmware_download':
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c:795: error: assignment of read-only location
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c:797: error: assignment of read-only location
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r7'
make: *** [default] Error 2
 *
 * ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3194:  Called linux-mod_src_compile
 *             environment, line 2406:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                           LDFLAGS=\"$(get_abi_LDFLAGS)\"                                           ${BUILD_FIXES}                                          ${BUILD_PARAMS}           ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  KDIR=/usr/src/linux default
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/environment'.
 *

 * Messages for package media-tv/v4l-dvb-hg-0.1-r2:

 * Removing autoload-entry from stradis-driver.
 * Removing depmod-calls
 *
 * ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3194:  Called linux-mod_src_compile
 *             environment, line 2406:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                               CROSS_COMPILE=${CHOST}-                           LDFLAGS=\"$(get_abi_LDFLAGS)\"                                           ${BUILD_FIXES}                                          ${BUILD_PARAMS}           ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  KDIR=/usr/src/linux default
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/temp/environment'.
 *
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 13:53:48 UTC
Please, can you submit your "emerge --info" output, and attach the full  build.log? We will assign the bug to the proper developer as soon as you have submitted the information I asked.
Comment 2 Vesa Tervo 2008-12-26 18:27:49 UTC
Created attachment 176454 [details]
emerge --info

Here's emerge --info
Comment 3 Vesa Tervo 2008-12-26 18:28:48 UTC
Created attachment 176456 [details]
environment

environment file
Comment 4 Vesa Tervo 2008-12-26 18:31:02 UTC
Created attachment 176458 [details]
build.log

build.log
Comment 5 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 18:36:02 UTC
There is also, a 2.6.28 gentoo-sources kernel available. Maybe you should try with the new one too.
Comment 6 Vesa Tervo 2008-12-26 18:50:52 UTC
on 2.6.28 it fails exactly on the same place

  CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/au6610.o
  CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.o
  CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/dib0700_core.o
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c: In function 'bluebird_patch_dvico_firmware_download':
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c:795: error: assignment of read-only location
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.c:797: error: assignment of read-only location
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/cxusb.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo'
make: *** [default] Error 2
Comment 7 Matthias Schwarzott gentoo-dev 2009-01-12 10:39:19 UTC
v4l-dvb-hg fetches the latest development dvb drivers, so one should expect it failing to compile against some kernels sometimes.
As we cannot do much about this, but v4l/dvb maintainers can do, it is better to report the bugs there. We also can forward it for you, but first we need to know:
* Bug still existing?
* With which kernel version? If gentoo-sources, could you try if the bug also accours when compiling against vanilla-sources.

In case you do not use the cxusb driver it could at least help you to have a way to choose drivers to be compiled. There should already be a bug open for this.
Comment 8 Vesa Tervo 2009-01-16 16:20:25 UTC
* Bug still existing?
Yes it is, but I've found a temporary solution: I boot to 2.6.26 kernel and compile/emerge it there. Then switch back to 2.6.28 and all is fine.

* With which kernel version? If gentoo-sources, could you try if the bug also
accours when compiling against vanilla-sources.

It exists at least in gentoo-sources 2.6.27-r1 2.6.27-r2 2.6.27-r3 2.6.27-r4, 2.6.27-r7 and in 2.6.28. Those are the ones i've tried. I can try out also the vanilla souces, but I will get back to you on that later.


Comment 9 Matthias Schwarzott gentoo-dev 2009-01-22 16:47:21 UTC
(In reply to comment #8)
> * Bug still existing?
> Yes it is, but I've found a temporary solution: I boot to 2.6.26 kernel and
> compile/emerge it there. Then switch back to 2.6.28 and all is fine.
> 
Compiling kernel modules should only depend on the kernel sources linked in /usr/src/linux, and not on the currently booted kernel.
Comment 10 Vesa Tervo 2009-01-26 13:33:55 UTC
my bad...
I had it in the kernel and tried also to compile it externally.