Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269249 - media-tv/v4l-dvb-hg-0.1-r2 and linux-2.6.29-gentoo-r3 fails to compile because of ACCESS VIOLATION
Summary: media-tv/v4l-dvb-hg-0.1-r2 and linux-2.6.29-gentoo-r3 fails to compile becaus...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 13:27 UTC by Juergen Rose
Modified: 2009-06-19 09:33 UTC (History)
1 user (show)

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


Attachments
Fixed ebuild-file (v4l-dvb-hg-0.1-r5.ebuild,3.21 KB, text/plain)
2009-05-12 20:09 UTC, Marius Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-05-10 13:27:49 UTC
'emerge media-tv/v4l-dvb-hg' fails with:
...
make -C firmware install
make[1]: Entering directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/firmware'
Installing firmwares at /lib/firmware: ACCESS DENIED  mkdir:        /lib64/firmware/av7110
mkdir: cannot create directory `/lib/firmware/av7110/': Permission denied
vicam/firmware.fw ACCESS DENIED  open_wr:      /lib/firmware/vicam/firmware.fw
...
make[1]: Leaving directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/firmware'
>>> Completed installing v4l-dvb-hg-0.1-r2 into /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-11278.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: av7110/
A: /lib64/firmware/av7110
R: /lib64/firmware/av7110
C: mkdir -p /lib/firmware/av7110/ 

F: open_wr
S: deny
P: /lib/firmware/vicam/firmware.fw
A: /lib/firmware/vicam/firmware.fw
R: /lib64/firmware/vicam/firmware.fw
C: cp vicam/firmware.fw /lib/firmware/vicam/firmware.fw 

F: open_wr
S: deny
P: /lib/firmware/dabusb/firmware.fw
A: /lib/firmware/dabusb/firmware.fw
R: /lib64/firmware/dabusb/firmware.fw
C: cp dabusb/firmware.fw /lib/firmware/dabusb/firmware.fw 

F: open_wr
S: deny
P: /lib/firmware/dabusb/bitstream.bin
A: /lib/firmware/dabusb/bitstream.bin
R: /lib64/firmware/dabusb/bitstream.bin
C: cp dabusb/bitstream.bin /lib/firmware/dabusb/bitstream.bin 

F: open_wr
S: deny
P: /lib/firmware/ttusb-budget/dspbootcode.bin
A: /lib/firmware/ttusb-budget/dspbootcode.bin
R: /lib64/firmware/ttusb-budget/dspbootcode.bin
C: cp ttusb-budget/dspbootcode.bin /lib/firmware/ttusb-budget/dspbootcode.bin 

F: open_wr
S: deny
P: /lib/firmware/cpia2/stv0672_vp4.bin
A: /lib/firmware/cpia2/stv0672_vp4.bin
R: /lib64/firmware/cpia2/stv0672_vp4.bin
C: cp cpia2/stv0672_vp4.bin /lib/firmware/cpia2/stv0672_vp4.bin 
--------------------------------------------------------------------------------

>>> Failed to emerge media-tv/v4l-dvb-hg-0.1-r2, Log file:


Reproducible: Always




root@condor:/usr/src/linux(220)# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 10 May 2009 08:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/lordvan /usr/local/portage/layman/java-overlay /usr/local/portage/layman/jokey /usr/local/portage/layman/perl-experimental /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvdread dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kde4 kdeprefix kerberos kexi keyring kvm ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo lzw mad maildir mailwrapper math matroska midi mikmod mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype unicode usb userlocales utempter v4l2 vorbis webkit wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="cx8800 cx88xx tda1004x saa713" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 John M. Drescher 2009-05-11 08:36:19 UTC
This is not only 2.6.29. I have seen it in older kernels. 
Comment 2 Matthias Schwarzott gentoo-dev 2009-05-12 10:08:38 UTC
Yes, this should be independent of the used kernel, as the firmware files got just added. The Makefiles try to install them.
So we either need fix installing them into $D, or check if there already is another ebuild for these firmware files, as in-kernel drivers will also need them, and in this case just not install them.
Comment 3 Marius Schäfer 2009-05-12 20:09:13 UTC
Created attachment 191066 [details]
Fixed ebuild-file

This ebuild works (for me). Seems like upstream has changed the Makefile.
It gets patched to not install the firmware files on its own. The firmware files are installed with a second make install in src_install(). One could easily wrap some use flag around it or completely move it over to media-tv/linuxtv-dvb-firmware.
I couldn't figure out how to pass KDIR to the Makefile. It has to find the kernel sources on its own.
I have included savedconfig from bug #265743, don't know if it's usefull.
Comment 4 Eitan Mosenkis 2009-05-15 07:36:45 UTC
I had the same issue with the ebuild in the tree, but this ebuild doesn't work for me - the first time I emerged it exited code 0, but there was a message about hg clone failing.  The second time it didn't have that error message, but the module I'm using it for (uvcvideo) wasn't there and when I checked using equery files v4l-dvb-hg, I discovered that there hadn't been any modules installed and there were some compile errors that for some reason didn't cause it to fail:
equery files v4l-dvb-hg:
/etc
/etc/portage
/etc/portage/savedconfig
/etc/portage/savedconfig/media-tv
/etc/portage/savedconfig/media-tv/v4l-dvb-hg-0.1-r5
/lib
/lib/firmware
/lib/firmware/av7110
/lib/firmware/av7110/bootcode.bin
/lib/firmware/cpia2
/lib/firmware/cpia2/stv0672_vp4.bin
/lib/firmware/dabusb
/lib/firmware/dabusb/bitstream.bin
/lib/firmware/dabusb/firmware.fw
/lib/firmware/ttusb-budget
/lib/firmware/ttusb-budget/dspbootcode.bin
/lib/firmware/vicam
/lib/firmware/vicam/firmware.fw
/usr
/usr/include
/usr/include/v4l-dvb-hg
/usr/include/v4l-dvb-hg/linux
/usr/include/v4l-dvb-hg/linux/dvb
/usr/include/v4l-dvb-hg/linux/dvb/audio.h
/usr/include/v4l-dvb-hg/linux/dvb/ca.h
/usr/include/v4l-dvb-hg/linux/dvb/dmx.h
/usr/include/v4l-dvb-hg/linux/dvb/frontend.h
/usr/include/v4l-dvb-hg/linux/dvb/net.h
/usr/include/v4l-dvb-hg/linux/dvb/osd.h
/usr/include/v4l-dvb-hg/linux/dvb/version.h
/usr/include/v4l-dvb-hg/linux/dvb/video.h
/usr/sbin
/usr/sbin/get_dvb_firmware
/usr/share
/usr/share/doc
/usr/share/doc/v4l-dvb-hg-0.1-r5
/usr/share/doc/v4l-dvb-hg-0.1-r5/avermedia.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/bt8xx.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/cards.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/ci.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/contributors.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/faq.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/opera-firmware.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/readme.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/technisat.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/ttusb-dec.txt.bz2
/usr/share/doc/v4l-dvb-hg-0.1-r5/udev.txt.bz2

Compile errors:
>>> Compiling source in /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l ...
make -j3 --load-average 
scripts/make_makefile.pl
./scripts/make_myconfig.pl
perl scripts/make_config_compat.pl /lib/modules/2.6.29-tuxonice-r1/source ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[1]: Entering directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware'
make[1]: Leaving directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware'
make -C firmware
make[1]: Entering directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware'
  CC  ihex2fw
Generating dabusb/firmware.fw
Generating vicam/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[1]: Leaving directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware'
Kernel build directory is /lib/modules/2.6.29-tuxonice-r1/build
make -C /lib/modules/2.6.29-tuxonice-r1/build SUBDIRS=/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l  modules
make[1]: Entering directory `/usr/src/linux-2.6.29-tuxonice-r1'
Makefile:529: /usr/src/linux-2.6.29-tuxonice-r1/arch/amd64/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.29-tuxonice-r1/arch/amd64/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.29-tuxonice-r1'
make: *** [default] Error 2
>>> Source compiled.
>>> Test phase [not enabled]: media-tv/v4l-dvb-hg-0.1-r5
etc.
Comment 5 John M. Drescher 2009-05-23 14:42:30 UTC
I get the same no modules installed on my system with this ebuild. 
Comment 6 John M. Drescher 2009-05-23 19:59:49 UTC
I have tested and modifyied v4l-dvb-hg-0.1-r4.ebuild to work on amd64. This new ebuild can be found in my overlay.

http://github.com/drescherjm/jmdgentoooverlay/blob/e967b0572e5b01243bb1ac24a3ae3e23b3e6953a/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r6.ebuild
Comment 7 Eitan Mosenkis 2009-05-25 11:04:12 UTC
I can confirm that John M. Drescher's ebuild works.  Much appreciated.  Considering this is a SVN build anyway, any reason this shouldn't go right into the official tree (*hint* to anyone with the ability to do so)?
Comment 8 Steve Dibb (RETIRED) gentoo-dev 2009-05-28 04:37:26 UTC
(In reply to comment #7)
> I can confirm that John M. Drescher's ebuild works.  Much appreciated. 
> Considering this is a SVN build anyway, any reason this shouldn't go right into
> the official tree (*hint* to anyone with the ability to do so)?
> 

Looks good to me.  Thanks, John, in CVS.
Comment 9 Juergen Rose 2009-06-19 09:33:48 UTC
I tried the v4l-dvb-hg-0.1-r6.ebuild, but it fails with:
root@cheetah:/usr/local/portage/media-tv/v4l-dvb-hg(40)# emerge v4l-dvb-hg
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-tv/v4l-dvb-hg-0.1-r6 from local
 * checking ebuild checksums ;-) ...                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                    [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.29.4
>>> Unpacking source...
 * Updating /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb from http://linuxtv.org/hg/v4l-dvb
Not trusting file /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb/.hg/hgrc from untrusted user portage, group portage
Not trusting file /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb/.hg/hgrc from untrusted user portage, group portage
abort: repository default not found!
 * 
 * ERROR: media-tv/v4l-dvb-hg-0.1-r6 failed.