haegar87 Apprentice
Joined: 08 Jan 2006 Posts: 165
|
Posted: Sun Aug 12, 2012 11:48 pm Post subject: lirc "warnings being treated as errors" |
|
|
Mahlzeit alle zusammen,
ich versuche gerade lirc zu emergen, stoße dabei aber an eine Definitionsgrenze.
Anscheinend wird im ebuild gcc mit der Funktion "-Werror=implicit-function-declaration" aufgerufen.
Dadurch wertet gcc Kompilerwarnungen als Fehler...
Leider wird im Treiberteil von "ttusbir" eben eine solche Warnung ausgeworfen, weshalb das emake fehlschlägt.
Kennt da jemand eine Lösung wie ich ihm das abgewöhnen kann?
Anschließend noch die Bildschirmausgabe von besagter Stelle:
Code: | [...]
mv Makefile Makefile.automake
cp ./../Makefile.kernel Makefile
CPPFLAGS="" CFLAGS="" LDFLAGS="" \
make -C /usr/src/linux/ SUBDIRS=/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir modules \
KBUILD_VERBOSE=1
make[2]: Entering directory `/usr/src/linux-3.5.1-gentoo'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/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 /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/.tmp_versions ; rm -f /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/.lirc_ttusbir.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.5.1-gentoo/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.5.1-gentoo/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 -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/../.. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_ttusbir)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_ttusbir)" -c -o /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.o /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.c
/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.c: In Funktion »set_use_inc«:
/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.c:127:4: Fehler: Implizite Deklaration der Funktion »err« [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir/lirc_ttusbir.o] Fehler 1
make[2]: *** [_module_/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir] Fehler 2
make[2]: Leaving directory `/usr/src/linux-3.5.1-gentoo'
make[1]: *** [lirc_ttusbir.o] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_ttusbir'
make: *** [all-recursive] Fehler 1
* ERROR: app-misc/lirc-0.9.0-r2 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=app-misc/lirc-0.9.0-r2'`,
* the complete build log and the output of `emerge -pqv '=app-misc/lirc-0.9.0-r2'`.
* The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/environment'.
* Working directory: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers'
* S: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0'
|
_________________ "Spielt man die Windows CD rückwärts ab, hört man satanistische Texte!" - "Das ist ja noch harmlos! Wenn man sie vorwärts abspielt, installiert sich das Teufelszeug!" |
|