Modify

Opened 8 years ago

Closed 7 years ago

#4304 closed defect (fixed)

lirc build failure on x86-alix at r13492

Reported by: seniorr@… Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

During a "select all packages" build, ran into this:

make[3]: Entering directory `/aux2/src/openwrt/feeds/packages/utils/lirc'
bzcat /src_archive/openwrt/dl/lirc-0.8.3.tar.bz2 | /bin/tar -C /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/.. -xf -

Applying ./patches/100-kcompat.patch using plaintext: 
patching file drivers/kcompat.h
touch /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/.prepared_d65ca13be5e902f5ae2e600ed702df55
(cd /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/./; if [ -x ./configure ]; then /usr/bin/X11/find /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/ -name config.guess | xargs -r -n1 cp /aux2/src/openwrt/scripts/config.guess; /usr/bin
/X11/find /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/ -name config.sub | xargs -r -n1 cp /aux2/src/openwrt/scripts/config.sub; AR=i386-linux-uclibc-ar AS="i386-linux-uclibc-gcc -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts" LD=i3
86-linux-uclibc-ld NM=i386-linux-uclibc-nm CC="i386-linux-uclibc-gcc" GCC="i386-linux-uclibc-gcc" CXX="i386-linux-uclibc-g++" RANLIB=i386-linux-uclibc-ranlib STRIP=i386-linux-uclibc-strip OBJCOPY=i386-linux-uclibc-objcopy OBJDUMP=i386-linux-uclibc-objdum
p SIZE=i386-linux-uclibc-size CFLAGS="-O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts " CXXFLAGS="-O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts " CPPFLAGS="-I/aux2/src/openwrt/staging_dir/i386/usr/include -I/aux2/src/openwrt/staging_dir/i38
6/include " LDFLAGS="-L/aux2/src/openwrt/staging_dir/toolchain-i386_gcc4.1.2/lib -L/aux2/src/openwrt/staging_dir/i386/usr/lib -L/aux2/src/openwrt/staging_dir/i386/lib " PKG_CONFIG_PATH="/aux2/src/openwrt/staging_dir/i386/usr/lib/pkgconfig:/aux2/src/openw
rt/staging_dir/host/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/aux2/src/openwrt/staging_dir/i386/usr/lib/pkgconfig"  ./configure --target=i386-linux --host=i386-linux --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=
/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-nls --disable-static --with-kerneldir="/aux2/src/openwrt/build_dir/
linux-x86_generic/linux-2.6.27.7" --with-driver="mceusb2" --without-x --with-pic --with-gnu-ld --enable-sandboxed  ; fi; )
configure: loading site script /aux2/src/openwrt/include/site/i386-linux-uclibc
checking for a BSD-compatible install... /usr/bin/X11/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i386-linux-strip... i386-linux-uclibc-strip
checking for i386-linux-gcc... i386-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i386-linux-uclibc-gcc accepts -g... yes
checking for i386-linux-uclibc-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i386-linux-uclibc-gcc... gcc3
checking whether i386-linux-uclibc-gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/X11/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for mknod... /bin/mknod
checking for mkfifo... /usr/bin/X11/mkfifo
checking for depmod... /sbin/depmod
checking for libusb-config... /aux2/src/openwrt/staging_dir/i386/host/bin/libusb-config
checking whether ln -s works... yes
checking build system type... i486-pc-linux-gnu
checking host system type... i386-pc-linux-gnu
checking for a sed that does not truncate output... /aux2/src/openwrt/staging_dir/host/bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by i386-linux-uclibc-gcc... i386-linux-uclibc-ld
checking if the linker (i386-linux-uclibc-ld) is GNU ld... yes
checking for i386-linux-uclibc-ld option to reload object files... -r
checking for BSD-compatible nm... i386-linux-uclibc-nm
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... i386-linux-uclibc-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether i386-linux-uclibc-g++ accepts -g... yes
checking dependency style of i386-linux-uclibc-g++... gcc3
checking how to run the C++ preprocessor... i386-linux-uclibc-g++ -E
checking for i386-linux-g77... no
checking for i386-linux-xlf... no
checking for i386-linux-f77... no
checking for i386-linux-frt... no
checking for i386-linux-pgf77... no
checking for i386-linux-cf77... no
checking for i386-linux-fort77... no
checking for i386-linux-fl32... no
checking for i386-linux-af77... no
checking for i386-linux-xlf90... no
checking for i386-linux-f90... no
checking for i386-linux-pgf90... no
checking for i386-linux-pghpf... no
checking for i386-linux-epcf90... no
checking for i386-linux-gfortran... no
checking for i386-linux-g95... no
checking for i386-linux-xlf95... no
checking for i386-linux-f95... no
checking for i386-linux-fort... no
checking for i386-linux-ifort... no
checking for i386-linux-ifc... no
checking for i386-linux-efc... no
checking for i386-linux-pgf95... no
checking for i386-linux-lf95... no
checking for i386-linux-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse i386-linux-uclibc-nm output from i386-linux-uclibc-gcc object... ok
checking for objdir... .libs
checking for i386-linux-ar... i386-linux-uclibc-ar
checking for i386-linux-ranlib... i386-linux-uclibc-ranlib
checking for i386-linux-strip... (cached) i386-linux-uclibc-strip
checking if i386-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for i386-linux-uclibc-gcc option to produce PIC... -fPIC
checking if i386-linux-uclibc-gcc PIC flag -fPIC works... yes
checking if i386-linux-uclibc-gcc static flag -static works... yes
checking if i386-linux-uclibc-gcc supports -c -o file.o... yes
checking whether the i386-linux-uclibc-gcc linker (i386-linux-uclibc-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by i386-linux-uclibc-g++... i386-linux-uclibc-ld
checking if the linker (i386-linux-uclibc-ld) is GNU ld... yes
checking whether the i386-linux-uclibc-g++ linker (i386-linux-uclibc-ld) supports shared libraries... yes
checking for i386-linux-uclibc-g++ option to produce PIC... -fPIC
checking if i386-linux-uclibc-g++ PIC flag -fPIC works... yes
checking if i386-linux-uclibc-g++ static flag -static works... yes
checking if i386-linux-uclibc-g++ supports -c -o file.o... yes
checking whether the i386-linux-uclibc-g++ linker (i386-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (i386-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkfifo... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strtoul... yes
checking for snprintf... yes
checking for strsep... yes
checking for vsyslog... yes
checking for forkpty... no
checking for forkpty in -lutil... yes
checking vga.h usability... no
checking vga.h presence... no
checking for vga.h... no
checking for X... disabled
checking for getopt_long... yes
checking for mktemp... yes
checking for Linux kernel sources... /aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7/
checking for which drivers can be installed on this system... 
checking for caraca_init in -lcaraca_client... no
checking iguanaIR.h usability... no
checking iguanaIR.h presence... no
checking for iguanaIR.h... no
checking for ir_strerror in -lirman... no
checking for ir_strerror in -lirman_sw... no
checking portaudio.h usability... no
checking portaudio.h presence... no
checking for portaudio.h... no
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_pcm_open in -lasound... yes
checking for ALSA SB RC hwdep support... yes
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/hiddev.h... yes
checking for HIDDEV_FLAG_UREF support... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
checking for daemon... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating drivers/Makefile
config.status: creating drivers/lirc_atiusb/Makefile
config.status: creating drivers/lirc_bt829/Makefile
config.status: creating drivers/lirc_cmdir/Makefile
config.status: creating drivers/lirc_dev/Makefile
config.status: creating drivers/lirc_gpio/Makefile
config.status: creating drivers/lirc_i2c/Makefile
config.status: creating drivers/lirc_igorplugusb/Makefile
config.status: creating drivers/lirc_ttusbir/Makefile
config.status: creating drivers/lirc_imon/Makefile
config.status: creating drivers/lirc_it87/Makefile
config.status: creating drivers/lirc_mceusb/Makefile
config.status: creating drivers/lirc_mceusb2/Makefile
config.status: creating drivers/lirc_parallel/Makefile
config.status: creating drivers/lirc_sasem/Makefile
config.status: creating drivers/lirc_serial/Makefile
config.status: creating drivers/lirc_sir/Makefile
config.status: creating drivers/lirc_streamzap/Makefile
config.status: creating daemons/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: executing depfiles commands

You will have to use the lirc_mceusb2 kernel module.

Now enter 'make' and 'make install' to compile and install the package.

touch /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/.configured
CFLAGS="-O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts  -I/aux2/src/openwrt/staging_dir/i386/usr/include -I/aux2/src/openwrt/staging_dir/i386/include " CXXFLAGS="-O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts  -I/aux2/src/openwrt/staging_dir/i386/usr/include -I/aux2/src/openwrt/staging_dir/i386/include " LDFLAGS="-L/aux2/src/openwrt/staging_dir/toolchain-i386_gcc4.1.2/lib -L/aux2/src/openwrt/staging_dir/i386/usr/lib -L/aux2/src/openwrt/staging_dir/i386/lib " make -C /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/. AR=i386-linux-uclibc-ar AS="i386-linux-uclibc-gcc -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts" LD=i386-linux-uclibc-ld NM=i386-linux-uclibc-nm CC="i386-linux-uclibc-gcc" GCC="i386-linux-uclibc-gcc" CXX="i386-linux-uclibc-g++" RANLIB=i386-linux-uclibc-ranlib STRIP=i386-linux-uclibc-strip OBJCOPY=i386-linux-uclibc-objcopy OBJDUMP=i386-linux-uclibc-objdump SIZE=i386-linux-uclibc-size CROSS="i386-linux-uclibc-" ARCH="i386" DESTDIR="/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/ipkg-install" ARCH="i386" all ;
make[4]: Entering directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3'
make  all-recursive
make[5]: Entering directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3'
Making all in drivers
make[6]: Entering directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers'
Making all in lirc_dev
make[7]: Entering directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ./../Makefile.kernel Makefile
CPPFLAGS="" CFLAGS="" LDFLAGS="" \
        make -C /aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7/ SUBDIRS=/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev modules \
                KBUILD_VERBOSE=1
make[8]: Entering directory `/aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/.tmp_versions ; rm -f /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev
  i386-linux-uclibc-gcc -Wp,-MD,/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /aux2/src/openwrt/staging_dir/toolchain-i386_gcc4.1.2/lib/gcc/i386-linux-uclibc/4.1.2/include -D__KERNEL__ -Iinclude  -I/aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i386 -mtune=i686 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/. -I/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/ -I/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/../.. -I/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/../.. -I/aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7//include/ -I/aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7//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 /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/lirc_dev.o /aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c
/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c:52:27: error: asm/semaphore.h: No such file or directory
make[9]: *** [/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev/lirc_dev.o] Error 1
make[8]: *** [_module_/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev] Error 2
make[8]: Leaving directory `/aux2/src/openwrt/build_dir/linux-x86_generic/linux-2.6.27.7'
make[7]: *** [lirc_dev.o] Error 2
make[7]: Leaving directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers/lirc_dev'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/drivers'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3'
make[3]: *** [/aux2/src/openwrt/build_dir/linux-x86_generic/lirc-0.8.3/.built] Error 2
make[3]: Leaving directory `/aux2/src/openwrt/feeds/packages/utils/lirc'
make[2]: *** [package/feeds/packages/lirc/compile] Error 2
make[2]: Leaving directory `/aux2/src/openwrt'
make[1]: *** [/aux2/src/openwrt/staging_dir/i386/stamp/.package_compile] Error 2
make[1]: Leaving directory `/aux2/src/openwrt'
make: *** [world] Error 2

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [14001].

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.