| View previous topic :: View next topic |
| Author |
Message |
dvh Apprentice

Joined: 31 Dec 2003 Posts: 179 Location: Chandler, AZ
|
Posted: Tue Apr 10, 2012 3:26 am Post subject: lirc compatibility with vanilla 3.3.0 |
|
|
based on other issues, I was more or less forced to upgrade to vanilla-sources 3.3.0 (from 2.6.32). with this kernel in place, I cannot seem to emerge lirc successfully. I get this error | Code: |
make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include -I/usr/src/linux-3.3.0/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.3.0/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=athlon -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/. -I/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/. -I/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/../.. -I/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.o /var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.c
/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.c:45:28: error: linux/smp_lock.h: No such file or directory
/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.c: In function '__check_debug':
/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.c:1108: warning: return from incompatible pointer type
make[5]: *** [/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev/lirc_dev.o] Error 1
make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev] Error 2
make[4]: Leaving directory `/usr/src/linux-3.3.0'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7'
make: *** [all] Error 2
emake failed
* ERROR: app-misc/lirc-0.8.7 failed (compile phase):
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= all
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4025: Called linux-mod_src_compile
* environment, line 3082: 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}";
*
* If you need support, post the output of 'emerge --info =app-misc/lirc-0.8.7',
* the complete build log and the output of 'emerge -pqv =app-misc/lirc-0.8.7'.
* The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.8.7/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.8.7/temp/environment'.
* S: '/var/tmp/portage/app-misc/lirc-0.8.7/work/lirc-0.8.7'
|
i think that perhaps some kernel option is misconfigured. here is a grep of LIRC options from .config | Code: |
myth linux # grep LIRC .config
CONFIG_LIRC=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_LIRC_STAGING=y
# CONFIG_LIRC_BT829 is not set
# CONFIG_LIRC_IGORPLUGUSB is not set
# CONFIG_LIRC_IMON is not set
# CONFIG_LIRC_PARALLEL is not set
# CONFIG_LIRC_SASEM is not set
# CONFIG_LIRC_SERIAL is not set
# CONFIG_LIRC_SIR is not set
# CONFIG_LIRC_TTUSBIR is not set
# CONFIG_LIRC_ZILOG is not set
|
any idea what I might be missing? i also tried to emerge the ~x86 version of lirc (0.9.0) but that also did not work.
-dvh |
|
| Back to top |
|
 |
dvh Apprentice

Joined: 31 Dec 2003 Posts: 179 Location: Chandler, AZ
|
Posted: Sat Apr 14, 2012 2:46 am Post subject: |
|
|
c'mon...somebody out there must have built lirc successfully. which kernel options are required?
-dvh |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 7616
|
Posted: Sat Apr 14, 2012 3:46 pm Post subject: |
|
|
| Kernel options do not control whether smp_lock.h exists. That header was removed in BKL: That's all, folks (v2.6.38-rc6-10-g4ba8216). Please post the output of emerge --info ; emerge --pretend --verbose =app-misc/lirc-0.9.0 and the errors printed when the new lirc fails. |
|
| Back to top |
|
 |
dvh Apprentice

Joined: 31 Dec 2003 Posts: 179 Location: Chandler, AZ
|
Posted: Sat Apr 14, 2012 5:29 pm Post subject: |
|
|
as requested, here is the emerge information...
| Code: |
myth dvh # emerge --info ; emerge --pretend --verbose =app-misc/lirc-0.9.0
Portage 2.1.10.49 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.13-r4, 3.3.2 i686)
=================================================================
System uname: Linux-3.3.2-i686-AMD_Athlon-tm-_XP_2500+-with-gentoo-2.0.3
Timestamp of tree: Fri, 13 Apr 2012 22:30:01 +0000
app-shells/bash: 4.2_p20
dev-lang/python: 2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
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.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5, 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.13-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apache2 avi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gdu gif gpm iconv imlib ipv6 jpeg kde lcms libnotify lirc mad matroska mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses net nptl nptlonly nvidia ogg oggvorbis opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 quicktime readline sdl session spell sse ssl startup-notification svg sysfs tcpd tiff transcode truetype udev unicode usb vorbis win32codecs x264 x86 xcb xinerama xml xmms xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 sheets 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="evdev keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nouveau" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] app-misc/lirc-0.9.0 USE="X -debug -doc -hardware-carrier -transmitter" LIRC_DEVICES="hauppauge -accent -act200l -act220l -adaptec -all -alsa_usb -animax -asusdh -atilibusb -atiusb -audio -audio_alsa -avermedia -avermedia98 -avermedia_vdomate -awlibusb -bestbuy -bestbuy2 -breakoutbox -bte -bw6130 -caraca -chronos -commandir -cph06x -creative -creative_infracd -devinput -digimatrix -dsp -dvico -ea65 -ene0100 -exaudio -flyvideo -ftdi -gvbctv5pci -hauppauge_dvb -hercules_smarttv_stereo -i2cuser -igorplugusb -iguanaIR -imon -imon_24g -imon_knob -imon_lcd -imon_pad -imon_rsc -inputlirc -irdeo -irdeo_remote -irlink -irman -irreal -it87 -ite8709 -knc_one -kworld -leadtek_0007 -leadtek_0010 -leadtek_pvr2000 -livedrive_midi -livedrive_seq -logitech -macmini -mediafocusI -mouseremote -mouseremote_ps2 -mp3anywhere -mplay -nslu2 -packard_bell -parallel -pcmak -pcmak_usb -pctv -pixelview_bt878 -pixelview_pak -pixelview_pro -provideo -realmagic -remote_wonder_plus -remotemaster -sa1100 -samsung -sasem -sb0540 -serial -serial_igor_cesko -silitek -sir -slinke -streamzap -tekram -tekram_bt829 -tira -ttusbir -tuxbox -tvbox -udp -uirt2 -uirt2_raw -usb_uirt_raw -usbirboy -usbx -userspace -wpc8769l -xboxusb" 838 kB
Total: 1 package (1 new), Size of downloads: 838 kB
|
and, as for the resulting error...
| Code: |
.
.
.
make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c
i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/.lirc_i2c.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include -I/usr/src/linux-3.3.2/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.3.2/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=athlon -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/. -I/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/. -I/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/../.. -I/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_i2c)" -c -o /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.o /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c
/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c: In function 'ir_probe':
/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:559: error: 'struct i2c_adapter' has no member named 'id'
/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c: In function '__check_debug':
/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:773: warning: return from incompatible pointer type
make[5]: *** [/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.o] Error 1
make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c] Error 2
make[4]: Leaving directory `/usr/src/linux-3.3.2'
make[3]: *** [lirc_i2c.o] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0'
make: *** [all] Error 2
emake failed
* ERROR: app-misc/lirc-0.9.0 failed (compile phase):
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= all
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4025: Called linux-mod_src_compile
* environment, line 3082: 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}";
*
* If you need support, post the output of 'emerge --info =app-misc/lirc-0.9.0',
* the complete build log and the output of 'emerge -pqv =app-misc/lirc-0.9.0'.
* The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.9.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.9.0/temp/environment'.
* S: '/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0'
>>> Failed to emerge app-misc/lirc-0.9.0, Log file:
>>> '/var/tmp/portage/app-misc/lirc-0.9.0/temp/build.log'
* Messages for package app-misc/lirc-0.9.0:
* If your LIRC device requires modules, you'll need MODULE_UNLOAD
* support in your kernel.
* Compiling support for device hauppauge
* Setting default lirc-device to /dev/lirc0
* Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+
|
i understand most of the "info", but not this error message. thanks for your help.
-dvh |
|
| Back to top |
|
 |
depontius Advocate

Joined: 05 May 2004 Posts: 2156
|
Posted: Sat Apr 14, 2012 7:06 pm Post subject: |
|
|
Running amd64? I believe you have to "LDFLAGS_amd64="" emerge lirc" or some such. I don't remember the exact problem, though I did find it here on the forums. There is some sort of problem between the new default LDFLAGS and lirc on the amd64 arch. Sorry I can't remember more than this at the moment. I just know that every time I have to do this, I have to go dig out the answer, again. _________________ .sigs waste space and bandwidth |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 7616
|
Posted: Sat Apr 14, 2012 7:15 pm Post subject: |
|
|
| The emerge --info output indicates he is using x86, not amd64. Additionally, the error is at the compilation stage, not the link stage. OP: that lirc is incompatible with the header that currently defines i2c_adapter. |
|
| Back to top |
|
 |
dvh Apprentice

Joined: 31 Dec 2003 Posts: 179 Location: Chandler, AZ
|
Posted: Sat Apr 14, 2012 9:46 pm Post subject: |
|
|
I thought maybe that my linux-headers (3.1) being misaligned with the kernel version (3.3) might be a problem. so I used ~x86 on linux-headers to emerge 3.3. no change. lirc emerge still dies with the same errors.
-dvh |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|