Opened 3 years ago
Closed 3 years ago
#17686 closed defect (fixed)
libpcap fails to build with 14.07-rc3 SDK
Reported by: | ewald.wasscher@… | Owned by: | developers |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | packages | Version: | Barrier Breaker 14.07 |
Keywords: | Cc: |
Description
When I attempt to build the 14.07-rc3 libpcap package with the SDK for OpenWRT 14.07-rc3 x86/alix the build fails with the following errors:
[ewasscher@vmi18486 OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc- 0.9.33.2]$ make package/libpcap/compile V=s Config-build.in:4679:warning: defaults for choice values not supported # # configuration written to .config # make[1]: Entering directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2' make[2]: Entering directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/libpcap' CFLAGS="-Os -pipe -march=geode -mmmx -m3dnow -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -ffunction-sections -fdata-sections -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/usr/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -march=geode -mmmx -m3dnow -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -ffunction-sections -fdata-sections -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/usr/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/usr/lib -L/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-i386_geode_uClibc-0.9.33.2/lib -L/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -C /home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/libpcap-1.5.3/. AR=i486-openwrt-linux-uclibc-ar AS="ccache_cc -c -Os -pipe -march=geode -mmmx -m3dnow -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -ffunction-sections -fdata-sections" LD=i486-openwrt-linux-uclibc-ld NM=i486-openwrt-linux-uclibc-nm CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB=i486-openwrt-linux-uclibc-ranlib STRIP=i486-openwrt-linux-uclibc-strip OBJCOPY=i486-openwrt-linux-uclibc-objcopy OBJDUMP=i486-openwrt-linux-uclibc-objdump SIZE=i486-openwrt-linux-uclibc-size CROSS="i486-openwrt-linux-uclibc-" ARCH="i386" CCOPT="-Os -pipe -march=geode -mmmx -m3dnow -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -ffunction-sections -fdata-sections -I/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/linux/include" ; make[3]: Entering directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/libpcap-1.5.3' bison -y -p pcap_ -d grammar.y bison: /BB/build/x86/alix2/staging_dir/host/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory make[3]: *** [grammar.c] Error 1 make[3]: Leaving directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/libpcap-1.5.3' make[2]: *** [/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/libpcap-1.5.3/.built] Error 2 make[2]: Leaving directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/libpcap' make[1]: *** [package/libpcap/compile] Error 2 make[1]: Leaving directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2' make: *** [package/libpcap/compile] Error 2
Steps to reproduce:
- Unpack SDK
- Copy over libpcap directory from buildroot package directory
- make package/libpcap/clean
- make package/libpcap/compile
- make package/libpcap/compile V=s
Workaround:
- Create a symlink from $STAGING_DIR to /BB/build/x86/alix2/staging_dir
Attachments (0)
Change History (6)
comment:1 Changed 3 years ago by nbd
comment:2 Changed 3 years ago by ewald.wasscher@…
bison -y -p pcap_ -d grammar.y
bison: /share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
Apparently $STAGING_DIR_HOST isn't set by the Makefiles.
When I manually set STAGING_DIR_HOST on the shell the next error occurs:
./runlex.sh flex -Ppcap_ -oscanner.c scanner.l flex: fatal internal error, exec of /BB/build/x86/alix2/staging_dir/host/bin/m4 failed make[3]: *** [scanner.c] Error 141
comment:3 Changed 3 years ago by ewald.wasscher@…
Hmz, something went wrong while adding the comment.
Applying the patch leads to:
make[3]: Entering directory `/home/ewasscher/OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-i386_geode_uClibc-0.9.33.2/libpcap-1.5.3' bison -y -p pcap_ -d grammar.y bison: /share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory make[3]: *** [grammar.c] Error 1
Apparently $STAGING_DIR_HOST isn't set by the Makefiles.
When I manually set STAGING_DIR_HOST on the shell the next error occurs:
./runlex.sh flex -Ppcap_ -oscanner.c scanner.l flex: fatal internal error, exec of /BB/build/x86/alix2/staging_dir/host/bin/m4 failed make[3]: *** [scanner.c] Error 141
comment:4 Changed 3 years ago by nbd
new patch, same url, please test (revert the last one).
comment:5 Changed 3 years ago by ewald.wasscher@…
That helps, thanks!
[ewasscher@vmi18486 OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2]$ patch -p1 < ../bison-test.patch.02 patching file rules.mk [ewasscher@vmi18486 OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2]$ make package/libpcap/compile Config-build.in:4679:warning: defaults for choice values not supported # # configuration written to .config # make[1] package/libpcap/compile make[2] -C package/libpcap compile [ewasscher@vmi18486 OpenWrt-SDK-x86-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2]$
comment:6 Changed 3 years ago by nbd
- Resolution set to fixed
- Status changed from new to closed
please try applying this patch on top of the unpacked SDK directory and test if it fixes the issue: http://nbd.name/bison-test.patch