* [Buildroot] implement of linux-gpib package for version 4.1.0 @ 2018-04-19 7:59 Maik.Brenke at continental-corporation.com 2018-04-19 8:48 ` Yann E. MORIN 0 siblings, 1 reply; 3+ messages in thread From: Maik.Brenke at continental-corporation.com @ 2018-04-19 7:59 UTC (permalink / raw) To: buildroot Hello Ladys and Gentleman, again the topic linux-gpib pops up. I so far checked the mailing list and see that there was quiet some work on version 4.0.3 (see [1]). Now I am trying to set up version 4.1.0. I got all the information I can find from [1]. According to [1] I configured my packages like [2]. But when I try to build the package it ends up in [3]. Is there already a working implementation for linux-gpib? I noticed that "Yann E. MORIN-2" already worked on this topic (see [4]). But I was not able to contact him directly. By the way I use a imx6sx. I also attached the hole log as file. [1]: http://buildroot-busybox.2317881.n4.nabble.com/help-please-td140488.html#a140606 [2]: --------------- $ cat linux-gpib.mk ################################################################################ # # linux-gpib # ################################################################################ LINUX_GPIB_VERSION = 4.1.0 LINUX_GPIB_SITE = http://downloads.sourceforge.net/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/$(LINUX_GPIB_VERSION) LINUX_GPIB_SOURCE = linux-gpib-$(LINUX_GPIB_VERSION).tar.gz LINUX_GPIB_LICENSE = GPLv2 LINUX_GPIB_LICENSE_FILES = COPYING LINUX_GPIB_INSTALL_STAGING = YES LINUX_GPIB_AUTORECONF = YES LINUX_GPIB_CONF_OPTS = --with-linux-srcdir=$(LINUX_DIR)/ $(eval $(autotools-package)) ----------- $ cat Config.in config BR2_PACKAGE_LINUX_GPIB ??? bool "linux-gpib" ??? depends on BR2_LINUX_KERNEL ??? help ??? ? The Linux GPIB Package is a support package for GPIB ??? ? (IEEE 488) hardware. The package contains kernel driver ??? ? modules, and a C user-space library with Guile, Perl, PHP, ??? ? Python and TCL bindings. The API of the C library is intended ??? ? to be compatible with National Instrument's GPIB library. ??? ? ??? ? http://linux-gpib.sourceforge.net -------- $ cat 0001-configure-scm_version.patch --- a/configure.ac??? 2018-04-18 16:49:31.499095044 +0200 +++ b/configure.ac??? 2018-04-18 16:49:26.414918285 +0200 @@ -30,9 +30,10 @@ AC_SUBST([GPIB_SO_VERSION]) ?[ISODATE=`date +%Y-%m-%d`] ?AC_SUBST([ISODATE]) ? -AC_CHECK_FILE([util/.scm_version.tmp], -? [SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], -? [SCM_VERSION=$VERSION]) +#AC_CHECK_FILE([util/.scm_version.tmp], +#? [SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], +#? [SCM_VERSION=$VERSION]) +SCM_VERSION=4.1.0 ? ?AC_SUBST(SCM_VERSION) [3]: >>> linux-gpib 4.1.0 Configuring >>> linux-gpib 4.1.0 Autoreconfiguring … Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/@/home/brenkem/git/DD_TEST/output/host/usr/bin/automake line 3936. … checking Linux kernel compile flags... arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' make[2]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags/fake.o] Error 1 make[1]: *** [_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags] Error 2 configure: WARNING: Failed to get compile flags from Linux kernel directory. ok … configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --with-xmlto, --with-fop, --enable-ipv6 >>> linux-gpib 4.1.0 Building … ? arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/.init.o.d? -nostdinc -isystem /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated? -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO? -DMODULE? -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(init)"? -D"KBUILD_MODNAME=KBUILD_STR(cec_gpib)" -c -o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.c arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335/hp82335_init.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335/hp82335_init.o] Fehler 1 scripts/Makefile.build:403: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335\x0f“ scheiterte make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335] Fehler 2 make[5]: *** Auf noch nicht beendete Prozesse wird gewartet \x0f… arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_init.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_init.o] Fehler 1 make[6]: *** Auf noch nicht beendete Prozesse wird gewartet \x0f… arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' ? arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/.cb7210_cs.o.d? -nostdinc -isystem /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated? -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO? -DMODULE? -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(cb7210_cs)"? -D"KBUILD_MODNAME=KBUILD_STR(cb7210)" -c -o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.c scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b/agilent_82350b_init.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b/agilent_82350b_init.o] Fehler 1 scripts/Makefile.build:403: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b\x0f“ scheiterte make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b] Fehler 2 (cat /dev/null;?? echo kernel//home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/cec_gpib.ko;) > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/modules.order scripts/Makefile.build:264: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a/agilent_82357a.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a/agilent_82357a.o] Fehler 1 scripts/Makefile.build:403: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a\x0f“ scheiterte make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a] Fehler 2 ? arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/.interrupt.o.d? -nostdinc -isystem /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated? -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO? -DMODULE? -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(interrupt)"? -D"KBUILD_MODNAME=KBUILD_STR(cec_gpib)" -c -o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.c arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o] Fehler 1 make[6]: *** Auf noch nicht beendete Prozesse wird gewartet \x0f… arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o] Fehler 1 scripts/Makefile.build:403: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec\x0f“ scheiterte make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec] Fehler 2 arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' scripts/Makefile.build:258: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o\x0f“ scheiterte make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o] Fehler 1 scripts/Makefile.build:403: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210\x0f“ scheiterte make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210] Fehler 2 Makefile:1384: die Regel f?r Ziel \x0f„_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib\x0f“ scheiterte make[4]: *** [_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib] Fehler 2 make[4]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-custom\x0f“ wird verlassen Makefile:675: die Regel f?r Ziel \x0f„all-local\x0f“ scheiterte make[3]: [all-local] Fehler 2 (ignoriert) make[4]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird betreten make[4]: F?r das Ziel \x0f„install-exec-am\x0f“ ist nichts zu tun. /usr/bin/make? install-data-hook make[5]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird betreten /usr/bin/make -C /home/brenkem/git/DD_TEST/output/build/linux-custom/ V=1 modules_install\ ??? CC="arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/driver/include -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include" \ ??? SUBDIRS="/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib" INSTALL_MOD_DIR="gpib" make[6]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-custom\x0f“ wird betreten test -e include/generated/autoconf.h -a -e include/config/auto.conf || (??? ??? \ echo >&2;??? ??? ??? ??? ??? ??? ??? \ echo >&2 "? ERROR: Kernel configuration is invalid.";??? ??? \ echo >&2 "???????? include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 "???????? Run 'make oldconfig && make prepare' on kernel src to fix it.";??? \ echo >&2 ;??? ??? ??? ??? ??? ??? ??? \ /bin/false) mkdir -p /lib/modules/4.1.15-F+S/gpib mkdir: das Verzeichnis ?/lib/modules/4.1.15-F+S\x0f“ kann nicht angelegt werden: Keine Berechtigung Makefile:1396: die Regel f?r Ziel \x0f„_emodinst_\x0f“ scheiterte make[6]: *** [_emodinst_] Fehler 1 make[6]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-custom\x0f“ wird verlassen Makefile:686: die Regel f?r Ziel \x0f„install-data-hook\x0f“ scheiterte make[5]: *** [install-data-hook] Fehler 2 make[5]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird verlassen Makefile:604: die Regel f?r Ziel \x0f„install-data-am\x0f“ scheiterte make[4]: *** [install-data-am] Fehler 2 make[4]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird verlassen Makefile:559: die Regel f?r Ziel \x0f„install-am\x0f“ scheiterte make[3]: *** [install-am] Fehler 2 make[3]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird verlassen Makefile:398: die Regel f?r Ziel \x0f„install-recursive\x0f“ scheiterte make[2]: *** [install-recursive] Fehler 1 make[2]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers\x0f“ wird verlassen Makefile:443: die Regel f?r Ziel \x0f„install-recursive\x0f“ scheiterte make[1]: *** [install-recursive] Fehler 1 make[1]: Verzeichnis \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0\x0f“ wird verlassen package/pkg-generic.mk:234: die Regel f?r Ziel \x0f„/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/.stamp_staging_installed\x0f“ scheiterte make: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/.stamp_staging_installed] Fehler 2 [4]: http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-2-package-Makefile-in-should-grab-HOST-DIR-headers-using-isystem-instead-of-I-td141444.html#a141774 Mit freundlichen Gr??en / Best regards Maik Brenke Embedded Software Engineer BU ADAS Continental Division Chassis & Safety Ringlerstrasse 17, 85057 Ingolstadt Germany Phone: +49-841-881-12401 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180419/38cd55f4/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: linux-gpib-build.log Type: application/octet-stream Size: 58352 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180419/38cd55f4/attachment.obj> ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] implement of linux-gpib package for version 4.1.0 2018-04-19 7:59 [Buildroot] implement of linux-gpib package for version 4.1.0 Maik.Brenke at continental-corporation.com @ 2018-04-19 8:48 ` Yann E. MORIN 2018-04-25 13:57 ` [Buildroot] Antwort: " Maik.Brenke at continental-corporation.com 0 siblings, 1 reply; 3+ messages in thread From: Yann E. MORIN @ 2018-04-19 8:48 UTC (permalink / raw) To: buildroot Mike, All, On 2018-04-19 09:59 +0200, Maik.Brenke at continental-corporation.com spake thusly: > Hello Ladys and Gentleman, > > again the topic linux-gpib pops up. I so far checked the mailing list and see that there was quiet some work on version 4.0.3 (see > [1]). Now I am trying to set up version 4.1.0. The latest status I have on this topic is still available in my tree: https://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/linux-gpib Not sure I had the python stuff working, but th kernel module would indeed build (not sure it would work, I have no gpib hardware to test with). Getting up to 4.1.0 might need some rework, I have no idea what happened in linux-gpib since I initially tried the packaging. > I got all the information I can find from [1]. According to [1] I configured my packages like [2]. But when I try to build the > package it ends up in [3]. > Is there already a working implementation for linux-gpib? I noticed that " Yann E. MORIN-2" already worked on this topic (see [4]). > But I was not able to contact him directly. Weird, I have seen no mail from you on the list, and none to which I was CC-ed either... So, feel free to grab the two sommits, polish them for 4.1.0, and resubmit to the list. If someone with real hardware, like you, can actually test and confirm it is working, this has a better chance of getting applied. Regards, Yann E. MORIN. > By the way I use a imx6sx. I also attached the hole log as file. > > [1]: > http://buildroot-busybox.2317881.n4.nabble.com/help-please-td140488.html#a140606 > > [2]: > --------------- > $ cat linux-gpib.mk > ################################################################################ > # > # linux-gpib > # > ################################################################################ > > LINUX_GPIB_VERSION = 4.1.0 > LINUX_GPIB_SITE = > http://downloads.sourceforge.net/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/$(LINUX_GPIB_VERSION) > LINUX_GPIB_SOURCE = linux-gpib-$(LINUX_GPIB_VERSION).tar.gz > LINUX_GPIB_LICENSE = GPLv2 > LINUX_GPIB_LICENSE_FILES = COPYING > LINUX_GPIB_INSTALL_STAGING = YES > LINUX_GPIB_AUTORECONF = YES > LINUX_GPIB_CONF_OPTS = --with-linux-srcdir=$(LINUX_DIR)/ > > $(eval $(autotools-package)) > > ----------- > $ cat Config.in > config BR2_PACKAGE_LINUX_GPIB > bool "linux-gpib" > depends on BR2_LINUX_KERNEL > help > The Linux GPIB Package is a support package for GPIB > (IEEE 488) hardware. The package contains kernel driver > modules, and a C user-space library with Guile, Perl, PHP, > Python and TCL bindings. The API of the C library is intended > to be compatible with National Instrument's GPIB library. > > http://linux-gpib.sourceforge.net > > -------- > $ cat 0001-configure-scm_version.patch > --- a/configure.ac 2018-04-18 16:49:31.499095044 +0200 > +++ b/configure.ac 2018-04-18 16:49:26.414918285 +0200 > @@ -30,9 +30,10 @@ AC_SUBST([GPIB_SO_VERSION]) > [ISODATE=`date +%Y-%m-%d`] > AC_SUBST([ISODATE]) > > -AC_CHECK_FILE([util/.scm_version.tmp], > - [SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], > - [SCM_VERSION=$VERSION]) > +#AC_CHECK_FILE([util/.scm_version.tmp], > +# [SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], > +# [SCM_VERSION=$VERSION]) > +SCM_VERSION=4.1.0 > > AC_SUBST(SCM_VERSION) > > [3]: > >>> linux-gpib 4.1.0 Configuring > >>> linux-gpib 4.1.0 Autoreconfiguring > ??? > Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at > /home/brenkem/git/DD_TEST/output/host/usr/bin/automake line 3936. > ??? > checking Linux kernel compile flags... arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > make[2]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags/fake.o] Error 1 > make[1]: *** [_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags] Error 2 > configure: WARNING: Failed to get compile flags from Linux kernel directory. > ok > ??? > configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --with-xmlto, > --with-fop, --enable-ipv6 > >>> linux-gpib 4.1.0 Building > ??? > arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include > -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/.init.o.d -nostdinc -isystem > /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include > -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi > -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ > -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration > -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables > -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" > -D"KBUILD_BASENAME=KBUILD_STR(init)" -D"KBUILD_MODNAME=KBUILD_STR(cec_gpib)" -c -o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.c > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > scripts/Makefile.build:258: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335/hp82335_init.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335/hp82335_init.o] Fehler 1 > scripts/Makefile.build:403: die Regel f?r Ziel ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335??? > scheiterte > make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/hp_82335] Fehler 2 > make[5]: *** Auf noch nicht beendete Prozesse wird gewartet ??? > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > scripts/Makefile.build:258: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_init.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_init.o] Fehler 1 > make[6]: *** Auf noch nicht beendete Prozesse wird gewartet ??? > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include > -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/.cb7210_cs.o.d -nostdinc -isystem > /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include > -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi > -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ > -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration > -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables > -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" > -D"KBUILD_BASENAME=KBUILD_STR(cb7210_cs)" -D"KBUILD_MODNAME=KBUILD_STR(cb7210)" -c -o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.c > scripts/Makefile.build:258: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b/agilent_82350b_init.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b/agilent_82350b_init.o] > Fehler 1 > scripts/Makefile.build:403: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b??? scheiterte > make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82350b] Fehler 2 > (cat /dev/null; echo kernel//home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/cec_gpib.ko;) > > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/modules.order > scripts/Makefile.build:264: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a/agilent_82357a.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a/agilent_82357a.o] Fehler 1 > scripts/Makefile.build:403: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a??? scheiterte > make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/agilent_82357a] Fehler 2 > arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/include > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include > -Wp,-MD,/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/.interrupt.o.d -nostdinc -isystem > /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/lib/gcc/arm-fs-linux-gnueabihf/5.2.0/include -I./arch/x86/include > -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi > -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ > -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration > -Wno-format-security -std=gnu89 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables > -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -O2 -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -DMODULE -D"KBUILD_STR(s)=#s" > -D"KBUILD_BASENAME=KBUILD_STR(interrupt)" -D"KBUILD_MODNAME=KBUILD_STR(cec_gpib)" -c -o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o > /home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.c > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > scripts/Makefile.build:258: die Regel f?r Ziel ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o??? > scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/init.o] Fehler 1 > make[6]: *** Auf noch nicht beendete Prozesse wird gewartet ??? > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > scripts/Makefile.build:258: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec/interrupt.o] Fehler 1 > scripts/Makefile.build:403: die Regel f?r Ziel ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec??? > scheiterte > make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cec] Fehler 2 > arm-linux-gcc: error: unrecognized command line option '-m64' > arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' > arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' > arm-linux-gcc: error: unrecognized command line option '-mno-sse' > arm-linux-gcc: error: unrecognized command line option '-mno-mmx' > arm-linux-gcc: error: unrecognized command line option '-mno-sse2' > arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' > scripts/Makefile.build:258: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o??? scheiterte > make[6]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210/cb7210_cs.o] Fehler 1 > scripts/Makefile.build:403: die Regel f?r Ziel ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210??? > scheiterte > make[5]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib/cb7210] Fehler 2 > Makefile:1384: die Regel f?r Ziel ???_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib??? scheiterte > make[4]: *** [_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib] Fehler 2 > make[4]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-custom??? wird verlassen > Makefile:675: die Regel f?r Ziel ???all-local??? scheiterte > make[3]: [all-local] Fehler 2 (ignoriert) > make[4]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird betreten > make[4]: F?r das Ziel ???install-exec-am??? ist nichts zu tun. > /usr/bin/make install-data-hook > make[5]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird betreten > /usr/bin/make -C /home/brenkem/git/DD_TEST/output/build/linux-custom/ V=1 modules_install\ > CC="arm-linux-gcc -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0 > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/driver/include > -I/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/include" \ > SUBDIRS="/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers/gpib" INSTALL_MOD_DIR="gpib" > make[6]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-custom??? wird betreten > test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ > echo >&2; \ > echo >&2 " ERROR: Kernel configuration is invalid."; \ > echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ > echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ > echo >&2 ; \ > /bin/false) > mkdir -p /lib/modules/4.1.15-F+S/gpib > mkdir: das Verzeichnis ?/lib/modules/4.1.15-F+S??? kann nicht angelegt werden: Keine Berechtigung > Makefile:1396: die Regel f?r Ziel ???_emodinst_??? scheiterte > make[6]: *** [_emodinst_] Fehler 1 > make[6]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-custom??? wird verlassen > Makefile:686: die Regel f?r Ziel ???install-data-hook??? scheiterte > make[5]: *** [install-data-hook] Fehler 2 > make[5]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird verlassen > Makefile:604: die Regel f?r Ziel ???install-data-am??? scheiterte > make[4]: *** [install-data-am] Fehler 2 > make[4]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird verlassen > Makefile:559: die Regel f?r Ziel ???install-am??? scheiterte > make[3]: *** [install-am] Fehler 2 > make[3]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird verlassen > Makefile:398: die Regel f?r Ziel ???install-recursive??? scheiterte > make[2]: *** [install-recursive] Fehler 1 > make[2]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/drivers??? wird verlassen > Makefile:443: die Regel f?r Ziel ???install-recursive??? scheiterte > make[1]: *** [install-recursive] Fehler 1 > make[1]: Verzeichnis ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0??? wird verlassen > package/pkg-generic.mk:234: die Regel f?r Ziel > ???/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/.stamp_staging_installed??? scheiterte > make: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/.stamp_staging_installed] Fehler 2 > > [4]: > http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-2-package-Makefile-in-should-grab-HOST-DIR-headers-using-isystem-instead-of-I-td141444.html#a141774 > > Mit freundlichen Gr??en / Best regards > > Maik Brenke > Embedded Software Engineer > BU ADAS > > Continental > Division Chassis & Safety > Ringlerstrasse 17, 85057 Ingolstadt > Germany > > Phone: +49-841-881-12401 > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Antwort: Re: implement of linux-gpib package for version 4.1.0 2018-04-19 8:48 ` Yann E. MORIN @ 2018-04-25 13:57 ` Maik.Brenke at continental-corporation.com 0 siblings, 0 replies; 3+ messages in thread From: Maik.Brenke at continental-corporation.com @ 2018-04-25 13:57 UTC (permalink / raw) To: buildroot Hi Yann, All, I was able to cross compile and execute the programs on my target beside buildroot with the configuration from [1]. I than tried to port this into my buildroot package but ended up with Linux flag errors (see [3], full log in the attachment). What is the right way to let buildroot cross compile the sources? [1]: export PATH="/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin/:$PATH" export CROSS_COMPILE="/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin/arm-fs-linux-gnueabihf-" export ARCH=arm ./configure --host=arm-fs-linux-gnueabihf \ ??? --with-linux-srcdir=/home/brenkem/git/DD_TEST/output/build/linux-custom/ \ ??? --prefix=/tmp/ \ ??? --disable-guile-binding \ ??? --disable-perl-binding \ ??? --disable-php-binding \ ??? --disable-python-binding \ ??? --disable-tcl-binding [2]: ################################################################################ # # linux-gpib # ################################################################################ LINUX_GPIB_VERSION = 4.1.0 LINUX_GPIB_SITE = http://downloads.sourceforge.net/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/$(LINUX_GPIB_VERSION) LINUX_GPIB_SOURCE = linux-gpib-$(LINUX_GPIB_VERSION).tar.gz LINUX_GPIB_LICENSE = GPLv2 LINUX_GPIB_LICENSE_FILES = COPYING LINUX_GPIB_INSTALL_STAGING = YES LINUX_GPIB_AUTORECONF = YES LINUX_GPIB_CONF_OPTS = \ ??????? --host=arm-fs-linux-gnueabihf \ ??????? --with-linux-srcdir=$(LINUX_DIR)/ \ ??????? --prefix=$(TARGET_DIR)/ \ ??????? --disable-guile-binding \ ??????? --disable-perl-binding \ ??????? --disable-php-binding \ ??????? --disable-python-binding \ ??????? --disable-tcl-binding \ ??????? --disable-python-binding \ ??????? --disable-isa $(eval $(autotools-package)) --------------- [3]: checking Linux kernel compile flags... arm-linux-gcc: error: unrecognized command line option '-m64' arm-linux-gcc: error: unrecognized command line option '-mno-red-zone' arm-linux-gcc: error: unrecognized command line option '-mcmodel=kernel' arm-linux-gcc: error: unrecognized command line option '-mno-sse' arm-linux-gcc: error: unrecognized command line option '-mno-mmx' arm-linux-gcc: error: unrecognized command line option '-mno-sse2' arm-linux-gcc: error: unrecognized command line option '-mno-3dnow' make[2]: *** [/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags/fake.o] Error 1 make[1]: *** [_module_/home/brenkem/git/DD_TEST/output/build/linux-gpib-4.1.0/util/linux_flags] Error 2 configure: WARNING: Failed to get compile flags from Linux kernel directory. ok ----------------- Mit freundlichen Gr??en / Best regards Maik Brenke Embedded Software Engineer BU ADAS Continental Division Chassis & Safety Ringlerstrasse 17, 85057 Ingolstadt Germany Phone: +49-841-881-12401 -----"buildroot" <buildroot-bounces@busybox.net> schrieb: ----- An: Maik.Brenke at continental-corporation.com Von: "Yann E. MORIN" Gesendet von: "buildroot" Datum: 19.04.2018 10:49 Kopie: buildroot at buildroot.org Betreff: Re: [Buildroot] implement of linux-gpib package for version 4.1.0 Mike, All, On 2018-04-19 09:59 +0200, Maik.Brenke at continental-corporation.com spake thusly: > Hello Ladys and Gentleman, > > again the topic linux-gpib pops up. I so far checked the mailing list and see that there was quiet some work on version 4.0.3 (see > [1]). Now I am trying to set up version 4.1.0. The latest status I have on this topic is still available in my tree: ?? ?https://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/linux-gpib Not sure I had the python stuff working, but th kernel module would indeed build (not sure it would work, I have no gpib hardware to test with). Getting up to 4.1.0 might need some rework, I have no idea what happened in linux-gpib since I initially tried the packaging. > I got all the information I can find from [1]. According to [1] I configured my packages like [2]. > Is there already a working implementation for linux-gpib? I noticed that " Yann E. MORIN-2" already worked on this topic (see [4]). > But I was not able to contact him directly. Weird, I have seen no mail from you on the list, and none to which I was CC-ed either... So, feel free to grab the two sommits, polish them for 4.1.0, and resubmit to the list. If someone with real hardware, like you, can actually test and confirm it is working, this has a better chance of getting applied. Regards, Yann E. MORIN. > By the way I use a imx6sx. I also attached the hole log as file. > > [1]: > http://buildroot-busybox.2317881.n4.nabble.com/help-please-td140488.html#a140606 > > [2]: > --------------- > $ cat linux-gpib.mk > ################################################################################ > # > # linux-gpib > # > ################################################################################ > > LINUX_GPIB_VERSION = 4.1.0 > LINUX_GPIB_SITE = > http://downloads.sourceforge.net/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/$(LINUX_GPIB_VERSION) > LINUX_GPIB_SOURCE = linux-gpib-$(LINUX_GPIB_VERSION).tar.gz > LINUX_GPIB_LICENSE = GPLv2 > LINUX_GPIB_LICENSE_FILES = COPYING > LINUX_GPIB_INSTALL_STAGING = YES > LINUX_GPIB_AUTORECONF = YES > LINUX_GPIB_CONF_OPTS = --with-linux-srcdir=$(LINUX_DIR)/ > > $(eval $(autotools-package)) > > ----------- > $ cat Config.in > config BR2_PACKAGE_LINUX_GPIB > ? ? bool "linux-gpib" > ? ? depends on BR2_LINUX_KERNEL > ? ? help > ? ? ? The Linux GPIB Package is a support package for GPIB > ? ? ? (IEEE 488) hardware. The package contains kernel driver > ? ? ? modules, and a C user-space library with Guile, Perl, PHP, > ? ? ? Python and TCL bindings. The API of the C library is intended > ? ? ? to be compatible with National Instrument's GPIB library. > > ? ? ? http://linux-gpib.sourceforge.net > > -------- > $ cat 0001-configure-scm_version.patch > --- a/configure.ac ? ?2018-04-18 16:49:31.499095044 +0200 > +++ b/configure.ac ? ?2018-04-18 16:49:26.414918285 +0200 > @@ -30,9 +30,10 @@ AC_SUBST([GPIB_SO_VERSION]) > ?[ISODATE=`date +%Y-%m-%d`] > ?AC_SUBST([ISODATE]) > > -AC_CHECK_FILE([util/.scm_version.tmp], > - ?[SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], > - ?[SCM_VERSION=$VERSION]) > +#AC_CHECK_FILE([util/.scm_version.tmp], > +# ?[SCM_VERSION=[$VERSION"\ [r"`cat util/.scm_version.tmp`"]"]], > +# ?[SCM_VERSION=$VERSION]) > +SCM_VERSION=4.1.0 > > ?AC_SUBST(SCM_VERSION) > > [4]: > http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-2-package-Makefile-in-should-grab-HOST-DIR-headers-using-isystem-instead-of-I-td141444.html#a141774 > > Mit freundlichen Gr??en / Best regards > > Maik Brenke > Embedded Software Engineer > BU ADAS > > Continental > Division Chassis & Safety > Ringlerstrasse 17, 85057 Ingolstadt > Germany > > Phone: +49-841-881-12401 > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | ?Yann E. MORIN ?| Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software ?Designer | \ / CAMPAIGN ? ? | ?___ ? ? ? ? ? ? ? | | +33 223 225 172 `------------.-------: ?X ?AGAINST ? ? ?| ?\e/ ?There is no ?| | http://ymorin.is-a-geek.org/?| _/*\_ | / \ HTML MAIL ? ?| ? v ? conspiracy. ?| '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180425/5e9e4c00/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: linux-gpib-build.log Type: application/octet-stream Size: 100165 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180425/5e9e4c00/attachment.obj> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-25 13:57 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-04-19 7:59 [Buildroot] implement of linux-gpib package for version 4.1.0 Maik.Brenke at continental-corporation.com 2018-04-19 8:48 ` Yann E. MORIN 2018-04-25 13:57 ` [Buildroot] Antwort: " Maik.Brenke at continental-corporation.com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox