Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC

Bug 404539

Summary: app-misc/lirc-0.9.0 - /usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile: No such file or directory make: *** No rule to make target `/usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile'. Stop.
Product: Gentoo Linux Reporter: Russell Knighton <russell>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED OBSOLETE    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Failed configure attempt with portage
Same configure, but run manually

Description Russell Knighton 2012-02-19 16:30:21 UTC
For me, lirc 0.9.0 if failing to compile and install correctly when being built from the ebuild system, but builds just fine if built manually.

When building straight out of portage, during the config stage there is a problem with the location of the kernel source files:
checking for Linux kernel sources... /tmp/LIRCMF.feF4cH:567: /usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile'.  Stop.
/tmp/LIRCMF.feF4cH:567: /usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-3.2.1-gentoo/arch/amd64/Makefile'.  Stop.
./configure: line 13363: test: -eq: unary operator expected
/usr/src/linux/

This then causes the rest of the build to fail.

However, if I "ebuild lircd-0.9.0.ebuild unpack" and then run the ./configure line (taken from the portage build process above), the configure completes fine as should be expected:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=/usr/src/linux --with-moduledir=/lib/modules/3.2.1-gentoo/misc --disable-debug --with-x --with-driver=imon_
....
checking for Linux kernel sources... /usr/src/linux/
....

Is this a sandbox issue?

Reproducible: Always




starbug lirc-0.9.0 # emerge --info
Portage 2.2.0_alpha87 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600S_CPU_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Sun, 19 Feb 2012 14:00:02 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo stormfront local-repo annunaki2k2
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mcx16 -msahf -maes -mpopcnt -mpclmul -msse -msse2 -mssse3 -msse4.1 -msse4.2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcx16 -msahf -maes -mpopcnt -mpclmul -msse -msse2 -mssse3 -msse4.1 -msse4.2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv xattr"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://gentoo.osuosl.org ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/stormfront /usr/local/portage /var/lib/layman/annunaki2k2"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac aacplus aacs ace acl acpi aesicm aften aio airplay alac alsa amd64 amr apache2 apng archive asf aspell audio audiofile audioqueue autostart avahi avcodec avformat bash-completion bazaar bda berkdb bidi binary-drivers bind bl bluetooth bluray branding bs2b bzip2 cairo caps cdb cdda cddb cdparanoia cdr cg chardet cjk clamav clamd clamdtop cleartype cli consolekit cracklib cron crypt css cups custom-cflags cvs cxx daap dbus dga dirac dri dso dts dvb dvd dvdr edd eix emboss encode exif faac faad facedetect fam fbcon ffmpeg firefox flac fortran frei0r g3dvl gd gdbm gdu gif gimp git glibc-omitfp gnome-keyring gnutls gphoto2 gpm gsm gtk gtk3 gudev hwdb iconv icu id3 id3tag imagemagick ipv6 jbig joystick jpeg jpeg2k kerberos keymap kvm lcd lcdfilter lcms ldap libnotify libv4l2 lm_sensors lto mad mercurial messages midi mikmod mjpeg mktemp mmx mmxext mng modules mp3 mp4 mpd mpeg mpi mpi-threads mplayer mudflap multilib musepack mysql natspec nautilus ncurses network network-cron networking nfs nls nptl nptlonly ntp ogg opengl openmp pam pango pcre pdf pic png policykit postproc ppds pppd python3 qt3support raw readline remote remote-access romio rtmp samba scale0tilt schroedinger sdl sensord session slp smp sndfile speex spell srt sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification subtitles subversion svg sysfs syslog tcpd theora threads tiff timidity truetype udev uk_rt ukit unicode unzip usb v4l2 vcd vdpau vhost-net vhosts video vim vim-syntax vorbis vpx webp webserver wmf x264 xattr xcb xml xmp xorg xpm xulrunner xv xvid zeroconf zip zlib" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" LIRC_DEVICES="imon_lcd" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Russell Knighton 2012-02-19 16:31:04 UTC
Created attachment 302513 [details]
Failed configure attempt with portage
Comment 2 Russell Knighton 2012-02-19 16:31:31 UTC
Created attachment 302515 [details]
Same configure, but run manually
Comment 3 Ognjan Kirilov Iordanov 2012-03-18 17:03:12 UTC
I have the same problem.

# emerge --info
Portage 2.2.0_alpha91 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.0.22-tuxonice x86_64)
=================================================================
System uname: Linux-3.0.22-tuxonice-x86_64-Intel-R-_Core-TM-_i7-2820QM_CPU_@_2.30GHz-with-gentoo-2.1
Timestamp of tree: Sun, 18 Mar 2012 11:15:01 +0000
distcc[20226] (dcc_trace_version) distcc 3.1 x86_64-pc-linux-gnu; built Jan 10 2012 13:48:06 [disabled]
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5.1-r1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo pcsx2 stuge bitcoin local-repo x11 dustin lisp gamerlay-stable
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -msse4.2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -msse4.1 -msse4.2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://linux.mathematik.tu-darmstadt.de/pub/linux/distributions/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf-8@euro"
LC_ALL="de_DE.utf-8@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j15"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pcsx2 /var/lib/layman/stuge /var/lib/layman/bitcoin /usr/local/portage /var/lib/layman/x11 /var/lib/layman/dustin /var/lib/layman/lisp /var/lib/layman/gamerlay"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="16bittmp X X509 a52 aac aalib accessibility acl acpi alsa amd64 apache2 apng asf bash-completion battery bidi bittorrent bluetooth bootstrap branding bzip2 cairo cardbus cdda cddb cdio cdparanoia cdr chipcard chipcard2 cli clucene consolekit cracklib crypt css ctype cups curl cxx dba dbus dbx declarative device-mapper dga dhcpcd directfb discouraged divx dri dts dvb dvbplayer dvd dvdr eds emacs embedded emerald enca encode eselect ethereal exif extras fam fat fbcon fbcondecor fbsplash ffmpeg firefox flac fontconfig fortran ftp fts3 gcj gcrypt gd gdbm gdu gif glitz glut glx gnome gnome-print gphoto2 gpm gstreamer gtk gtk3 hbci hdaps httpd icc iconv icq icu imagemagick ipv6 jabber java java6 javascript john joystick jpeg junit kde kdrive kpathsea laptop lcms ldap ldap-sasl libnotify lircsettings live mad matroska mdns-bundled mikmod mime minizip mjpeg mmx mmxext mng modules mono mozdevelop mozsvg mp3 mp4 mpeg mplayer msn mudflap multilib mysql ncurses nls no-seamonkey nodoc nosrc nowin nptlonly nsplugin nss ntfs objc ofx ogg opencl openct opengl openmp openvpn oscar pam pango pcmcia pcre pcsc-lite pda pdf php piix_hotplug pinplugin pm-utils png policykit postgres ppds pppd python qt-static qt3 qt3support qt4 quicktime readline regex reiser4 reiserfs resolvconf samba sasl sdl secure-delete semantic-desktop session shout sip skype smartcard smbclient sndfile spell sql sqlite sse sse2 ssl startup-notification static-libs stream svg swat sysfs tcltk tcpd teletext tetex threads tidy tiff tools truetype type1 udev unicode usb utils v4l v4l2 vala vcd vdr vlm vorbis wav weather webkit wifi win32 win64 winbind wxwindows x264 xcb xcomposite xfs xinerama xml xorg xosd xrandr xrender xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel usb-audio bt87x" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="adc65 agfa-cl20 aox barbie canon casio clicksmart310 digigr8 digita dimera directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroid ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700 dibusb-usb1 dibusb-usb2 nxt200x or51132 or51211 sp8870 sp887x tda1004x ttpci ttusb-dec usb-a800 usb-dtt200u usb-umt usb-vp702x usb-vp7045 usb-wt220u" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="atiusb" NETBEANS_MODULES="cnd dlight enterprise php profiler ide harness java apisupport websvccommon nb" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Ognjan Kirilov Iordanov 2012-03-18 17:21:36 UTC
It works for me when I make a link like this

ln -s /usr/src/linux/arch/x86 /usr/src/linux/arch/amd64
Comment 5 Ognjan Kirilov Iordanov 2012-03-18 17:29:26 UTC
(In reply to comment #4)
> It works for me if I make a link like this
> 
> ln -s /usr/src/linux/arch/x86 /usr/src/linux/arch/amd64
Comment 6 Ian Stakenvicius gentoo-dev 2012-07-17 19:25:54 UTC
Please try with lirc-0.9.0-r1 ..  I ran into this issue while trying to separate the building of tools and drivers, and although I do not know how you generated this issue from the ebuild in the tree, I think the environment variables I set during the configure phase will resolve the issue for you also.
Comment 7 Ian Stakenvicius gentoo-dev 2012-09-27 19:15:55 UTC
Some additional information - with lirc-0.9.0-r2 it is possible that this error will occur due to bug 432390 , which should be resolved soon.
Comment 8 Craig Andrews gentoo-dev 2016-07-31 22:23:02 UTC
As of app-misc/lirc-0.9.4, lirc no longer distributes kernel drivers making this issue obsolete. Please use the latest lirc and build kernel drivers using linux kernel configuration - lirc only includes the userspace tools now.