* [Buildroot] host-lz4 bug on LTS 2017.02.10
@ 2018-03-02 11:38 Alvaro G. M.
2018-03-02 12:26 ` Baruch Siach
2018-03-02 12:58 ` Peter Korsgaard
0 siblings, 2 replies; 6+ messages in thread
From: Alvaro G. M. @ 2018-03-02 11:38 UTC (permalink / raw)
To: buildroot
Hi,
I've tracked this issue compiling host-lz4. Offending commit is this one
(found via git bisect)
17cf7e511e6919d5b6744deb21770c2d0ea922a9
lz4: install programs as well as libraries
I attach at the end the defconfig file that produced this log, using
Microblaze, but I've found that the same error happens on x86_64.
I don't really know what's going on, as it seems it's including
/usr/include/stdlib.h from the host system, but bits/libc-header-start.h
does indeed exist as /usr/include/x86_64-linux-gnu/bits/libc-header-start.h
Best regards
make: Entering directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig defconfig
GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
#
# configuration written to /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config
#
make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig
/usr/bin/make -j1 O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
BR2_DEFCONFIG='/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig' KCONFIG_AUTOCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build SKIP_LEGACY= /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/conf --silentoldconfig Config.in
^[[7m>>> host-lz4 r131 Building^[[27m
PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CXXFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" LDFLAGS="-L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j17 -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131 all
compiling static library
compiling dynamic library 1.7.1
creating versioned links
/usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4c32
/usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c fullbench.c -o fullbench32
/usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c fuzzer.c -o fuzzer32
/usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4frame.c ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c frametest.c -o frametest32
In file included from ../lib/lz4frame.c:52:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0,
from ../lib/lz4hc.c:65:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0,
from ../lib/lz4hc.c:65:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0,
from ../lib/lz4hc.c:65:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4frame.c:52:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4frame.c:52:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/lz4.c:105:0,
from ../lib/lz4hc.c:65:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/xxhash.c:90:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/xxhash.c:90:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/xxhash.c:90:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from fullbench.c:50:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from bench.c:47:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:88: fullbench32] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../lib/xxhash.c:90:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from lz4io.c:49:0:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from fuzzer.c:45:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:94: fuzzer32] Error 1
In file included from frametest.c:43:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:100: frametest32] Error 1
In file included from lz4cli.c:58:0:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:82: lz4c32] Error 1
make[2]: *** [Makefile:66: all] Error 2
make[1]: *** [package/pkg-generic.mk:219: /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131/.stamp_built] Error 2
make: *** [../common.mk:42: default] Error 2
make: Leaving directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
defconfig used:
BR2_DL_DIR="$(BR2_EXTERNAL_TRP_PATH)/../dl"
BR2_PACKAGE_OVERRIDE_FILE="$(BR2_EXTERNAL_TRP_PATH)/../local.mk"
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_TRP_PATH)/../patch"
BR2_KERNEL_HEADERS_4_4=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_PTHREAD_DEBUG=y
BR2_PACKAGE_HOST_GDB=y
BR2_PACKAGE_HOST_GDB_TUI=y
BR2_PACKAGE_HOST_GDB_PYTHON=y
BR2_TARGET_GENERIC_HOSTNAME="ART-TRP"
BR2_TARGET_GENERIC_ISSUE="Welcome to ART-TRP"
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_TRP_PATH)/../overlay/common $(BR2_EXTERNAL_TRP_PATH)/../overlay/TRP"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_TRP_PATH)/../scripts/set_version_file.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="-p $(PROJECT_NAME) -f $(BR2_EXTERNAL_TRP_PATH)/post_script.rc $(BR2_ART_SOFTWARE_VERSION)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_TRP_PATH)/kernel_mb_defconfig"
BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_TRP_PATH)/system.dts"
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_TRP_PATH)/busybox_defconfig"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_CPIO_GZIP=y
BR2_TARGET_ROOTFS_JFFS2=y
BR2_TARGET_ROOTFS_ROMFS=y
BR2_TARGET_ROOTFS_SQUASHFS=y
BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
--
Alvaro G. M.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] host-lz4 bug on LTS 2017.02.10
2018-03-02 11:38 [Buildroot] host-lz4 bug on LTS 2017.02.10 Alvaro G. M.
@ 2018-03-02 12:26 ` Baruch Siach
2018-03-02 12:50 ` Alvaro G. M.
2018-03-02 12:58 ` Peter Korsgaard
1 sibling, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2018-03-02 12:26 UTC (permalink / raw)
To: buildroot
Hi Alvaro,
On Fri, Mar 02, 2018 at 12:38:12PM +0100, Alvaro G. M. wrote:
> I've tracked this issue compiling host-lz4. Offending commit is this one
> (found via git bisect)
>
> 17cf7e511e6919d5b6744deb21770c2d0ea922a9
> lz4: install programs as well as libraries
>
> I attach at the end the defconfig file that produced this log, using
> Microblaze, but I've found that the same error happens on x86_64.
>
> I don't really know what's going on, as it seems it's including
> /usr/include/stdlib.h from the host system, but bits/libc-header-start.h
> does indeed exist as /usr/include/x86_64-linux-gnu/bits/libc-header-start.h
Note the -m32 option in the gcc command line below. You might be missing the
32bit version of bits/. Note sure why host-lz4 builds 32bit though.
baruch
> make: Entering directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
> make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig defconfig
> GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
> #
> # configuration written to /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config
> #
> make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig
> /usr/bin/make -j1 O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
> GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
> BR2_DEFCONFIG='/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig' KCONFIG_AUTOCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build SKIP_LEGACY= /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/conf --silentoldconfig Config.in
> ^[[7m>>> host-lz4 r131 Building^[[27m
> PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" PATH="/home/sslayer/Proyectos/AR
> T/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin
> /nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CXXFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" LDFLAGS="-L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j17 -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131 all
> compiling static library
> compiling dynamic library 1.7.1
> creating versioned links
> /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4c32
> /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c fullbench.c -o fullbench32
> /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c fuzzer.c -o fuzzer32
> /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4frame.c ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c frametest.c -o frametest32
> In file included from ../lib/lz4frame.c:52:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0,
> from ../lib/lz4hc.c:65:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0,
> from ../lib/lz4hc.c:65:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0,
> from ../lib/lz4hc.c:65:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4frame.c:52:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4frame.c:52:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/lz4.c:105:0,
> from ../lib/lz4hc.c:65:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/xxhash.c:90:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/xxhash.c:90:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from ../lib/xxhash.c:90:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from fullbench.c:50:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from bench.c:47:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:88: fullbench32] Error 1
> make[3]: *** Waiting for unfinished jobs....
> In file included from ../lib/xxhash.c:90:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from lz4io.c:49:0:
> /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> In file included from fuzzer.c:45:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:94: fuzzer32] Error 1
> In file included from frametest.c:43:0:
> /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:100: frametest32] Error 1
> In file included from lz4cli.c:58:0:
> /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
> #include <bits/libc-header-start.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:82: lz4c32] Error 1
> make[2]: *** [Makefile:66: all] Error 2
> make[1]: *** [package/pkg-generic.mk:219: /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131/.stamp_built] Error 2
> make: *** [../common.mk:42: default] Error 2
> make: Leaving directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
>
>
>
> defconfig used:
>
> BR2_DL_DIR="$(BR2_EXTERNAL_TRP_PATH)/../dl"
> BR2_PACKAGE_OVERRIDE_FILE="$(BR2_EXTERNAL_TRP_PATH)/../local.mk"
> BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_TRP_PATH)/../patch"
> BR2_KERNEL_HEADERS_4_4=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_PTHREAD_DEBUG=y
> BR2_PACKAGE_HOST_GDB=y
> BR2_PACKAGE_HOST_GDB_TUI=y
> BR2_PACKAGE_HOST_GDB_PYTHON=y
> BR2_TARGET_GENERIC_HOSTNAME="ART-TRP"
> BR2_TARGET_GENERIC_ISSUE="Welcome to ART-TRP"
> BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_TRP_PATH)/../overlay/common $(BR2_EXTERNAL_TRP_PATH)/../overlay/TRP"
> BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_TRP_PATH)/../scripts/set_version_file.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="-p $(PROJECT_NAME) -f $(BR2_EXTERNAL_TRP_PATH)/post_script.rc $(BR2_ART_SOFTWARE_VERSION)"
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14"
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_TRP_PATH)/kernel_mb_defconfig"
> BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y
> BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_TRP_PATH)/system.dts"
> BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_TRP_PATH)/busybox_defconfig"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_TARGET_ROOTFS_CPIO=y
> BR2_TARGET_ROOTFS_CPIO_GZIP=y
> BR2_TARGET_ROOTFS_JFFS2=y
> BR2_TARGET_ROOTFS_ROMFS=y
> BR2_TARGET_ROOTFS_SQUASHFS=y
> BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] host-lz4 bug on LTS 2017.02.10
2018-03-02 12:26 ` Baruch Siach
@ 2018-03-02 12:50 ` Alvaro G. M.
0 siblings, 0 replies; 6+ messages in thread
From: Alvaro G. M. @ 2018-03-02 12:50 UTC (permalink / raw)
To: buildroot
Hi, Baruch!
On Fri, Mar 02, 2018 at 02:26:01PM +0200, Baruch Siach wrote:
> Hi Alvaro,
>
> On Fri, Mar 02, 2018 at 12:38:12PM +0100, Alvaro G. M. wrote:
> > I've tracked this issue compiling host-lz4. Offending commit is this one
> > (found via git bisect)
> >
> > 17cf7e511e6919d5b6744deb21770c2d0ea922a9
> > lz4: install programs as well as libraries
> >
> > I attach at the end the defconfig file that produced this log, using
> > Microblaze, but I've found that the same error happens on x86_64.
> >
> > I don't really know what's going on, as it seems it's including
> > /usr/include/stdlib.h from the host system, but bits/libc-header-start.h
> > does indeed exist as /usr/include/x86_64-linux-gnu/bits/libc-header-start.h
>
> Note the -m32 option in the gcc command line below. You might be missing the
> 32bit version of bits/. Note sure why host-lz4 builds 32bit though.
Installing libc6-dev:i386 solved it indeed, thanks a lot. This is a machine
just recently installed and I was missing it.
I'll try to dive into lz4 to check why it tries to build as 32 bits.
Thanks a lot for your insight, I had totally missed that!
>
> baruch
>
> > make: Entering directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
> > make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig defconfig
> > GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
> > #
> > # configuration written to /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config
> > #
> > make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig
> > /usr/bin/make -j1 O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
> > GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
> > BR2_DEFCONFIG='/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig' KCONFIG_AUTOCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build SKIP_LEGACY= /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/conf --silentoldconfig Config.in
> > ^[[7m>>> host-lz4 r131 Building^[[27m
> > PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" PATH="/home/sslayer/Proyectos/AR
> > T/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/android-sdk-update-manager/platform-tools/:/home/sslayer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin
> > /nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CXXFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" LDFLAGS="-L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j17 -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131 all
> > compiling static library
> > compiling dynamic library 1.7.1
> > creating versioned links
> > /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4c32
> > /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c fullbench.c -o fullbench32
> > /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c fuzzer.c -o fuzzer32
> > /usr/bin/gcc -m32 -I../lib -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib ../lib/lz4frame.c ../lib/lz4.c ../lib/lz4hc.c ../lib/xxhash.c frametest.c -o frametest32
> > In file included from ../lib/lz4frame.c:52:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0,
> > from ../lib/lz4hc.c:65:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0,
> > from ../lib/lz4hc.c:65:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0,
> > from ../lib/lz4hc.c:65:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4frame.c:52:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4frame.c:52:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/lz4.c:105:0,
> > from ../lib/lz4hc.c:65:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/xxhash.c:90:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/xxhash.c:90:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from ../lib/xxhash.c:90:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from fullbench.c:50:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from bench.c:47:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > make[3]: *** [Makefile:88: fullbench32] Error 1
> > make[3]: *** Waiting for unfinished jobs....
> > In file included from ../lib/xxhash.c:90:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from lz4io.c:49:0:
> > /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > In file included from fuzzer.c:45:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > make[3]: *** [Makefile:94: fuzzer32] Error 1
> > In file included from frametest.c:43:0:
> > /usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > make[3]: *** [Makefile:100: frametest32] Error 1
> > In file included from lz4cli.c:58:0:
> > /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
> > #include <bits/libc-header-start.h>
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > make[3]: *** [Makefile:82: lz4c32] Error 1
> > make[2]: *** [Makefile:66: all] Error 2
> > make[1]: *** [package/pkg-generic.mk:219: /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-r131/.stamp_built] Error 2
> > make: *** [../common.mk:42: default] Error 2
> > make: Leaving directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
> >
> >
> >
> > defconfig used:
> >
> > BR2_DL_DIR="$(BR2_EXTERNAL_TRP_PATH)/../dl"
> > BR2_PACKAGE_OVERRIDE_FILE="$(BR2_EXTERNAL_TRP_PATH)/../local.mk"
> > BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_TRP_PATH)/../patch"
> > BR2_KERNEL_HEADERS_4_4=y
> > BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> > BR2_PTHREAD_DEBUG=y
> > BR2_PACKAGE_HOST_GDB=y
> > BR2_PACKAGE_HOST_GDB_TUI=y
> > BR2_PACKAGE_HOST_GDB_PYTHON=y
> > BR2_TARGET_GENERIC_HOSTNAME="ART-TRP"
> > BR2_TARGET_GENERIC_ISSUE="Welcome to ART-TRP"
> > BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_TRP_PATH)/../overlay/common $(BR2_EXTERNAL_TRP_PATH)/../overlay/TRP"
> > BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_TRP_PATH)/../scripts/set_version_file.sh"
> > BR2_ROOTFS_POST_SCRIPT_ARGS="-p $(PROJECT_NAME) -f $(BR2_EXTERNAL_TRP_PATH)/post_script.rc $(BR2_ART_SOFTWARE_VERSION)"
> > BR2_LINUX_KERNEL=y
> > BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14"
> > BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> > BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_TRP_PATH)/kernel_mb_defconfig"
> > BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y
> > BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_TRP_PATH)/system.dts"
> > BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_TRP_PATH)/busybox_defconfig"
> > BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> > BR2_TARGET_ROOTFS_CPIO=y
> > BR2_TARGET_ROOTFS_CPIO_GZIP=y
> > BR2_TARGET_ROOTFS_JFFS2=y
> > BR2_TARGET_ROOTFS_ROMFS=y
> > BR2_TARGET_ROOTFS_SQUASHFS=y
> > BR2_TARGET_ROOTFS_SQUASHFS4_LZ4=y
>
> --
> http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
--
Alvaro G. M.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] host-lz4 bug on LTS 2017.02.10
2018-03-02 11:38 [Buildroot] host-lz4 bug on LTS 2017.02.10 Alvaro G. M.
2018-03-02 12:26 ` Baruch Siach
@ 2018-03-02 12:58 ` Peter Korsgaard
2018-03-02 13:02 ` Peter Korsgaard
1 sibling, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2018-03-02 12:58 UTC (permalink / raw)
To: buildroot
>>>>> "Alvaro" == Alvaro G M <alvaro.gamez@hazent.com> writes:
> Hi,
> I've tracked this issue compiling host-lz4. Offending commit is this one
> (found via git bisect)
> 17cf7e511e6919d5b6744deb21770c2d0ea922a9
> lz4: install programs as well as libraries
> I attach at the end the defconfig file that produced this log, using
> Microblaze, but I've found that the same error happens on x86_64.
Please use 2017.02.11 instead. A backport of lz4-1.7.5 was missing on
the 2017.02.x branch.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] host-lz4 bug on LTS 2017.02.10
2018-03-02 12:58 ` Peter Korsgaard
@ 2018-03-02 13:02 ` Peter Korsgaard
2018-03-04 15:01 ` Alvaro G. M.
0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2018-03-02 13:02 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
>>>>> "Alvaro" == Alvaro G M <alvaro.gamez@hazent.com> writes:
>> Hi,
>> I've tracked this issue compiling host-lz4. Offending commit is this one
>> (found via git bisect)
>> 17cf7e511e6919d5b6744deb21770c2d0ea922a9
>> lz4: install programs as well as libraries
>> I attach at the end the defconfig file that produced this log, using
>> Microblaze, but I've found that the same error happens on x86_64.
> Please use 2017.02.11 instead. A backport of lz4-1.7.5 was missing on
> the 2017.02.x branch.
Ehh, sorry - I haven't actually released 2017.02.11 yet ;)
The missing change from 2017.02.10 is here:
https://git.buildroot.net/buildroot/commit/?h=2017.02.x&id=c849300796b72b58a78514ada88d496f8cab8c70
It would be good if you could try applying this to your tree and then
remove the 32bit support package and validate it works.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] host-lz4 bug on LTS 2017.02.10
2018-03-02 13:02 ` Peter Korsgaard
@ 2018-03-04 15:01 ` Alvaro G. M.
0 siblings, 0 replies; 6+ messages in thread
From: Alvaro G. M. @ 2018-03-04 15:01 UTC (permalink / raw)
To: buildroot
Hi,
On Fri, Mar 02, 2018 at 02:02:20PM +0100, Peter Korsgaard wrote:
> >>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
>
> >>>>> "Alvaro" == Alvaro G M <alvaro.gamez@hazent.com> writes:
> >> Hi,
> >> I've tracked this issue compiling host-lz4. Offending commit is this one
> >> (found via git bisect)
>
> >> 17cf7e511e6919d5b6744deb21770c2d0ea922a9
> >> lz4: install programs as well as libraries
>
> >> I attach at the end the defconfig file that produced this log, using
> >> Microblaze, but I've found that the same error happens on x86_64.
>
> > Please use 2017.02.11 instead. A backport of lz4-1.7.5 was missing on
> > the 2017.02.x branch.
>
> Ehh, sorry - I haven't actually released 2017.02.11 yet ;)
Good, that explains why I didn't find it! :)
> The missing change from 2017.02.10 is here:
>
> https://git.buildroot.net/buildroot/commit/?h=2017.02.x&id=c849300796b72b58a78514ada88d496f8cab8c70
>
> It would be good if you could try applying this to your tree and then
> remove the 32bit support package and validate it works.
>
I'm sorry to say that after cherry-picking that patch on top of 2017.02.10,
host-lz4 ceases to compile at all, either with libc6-dev:i386 or without it.
The new error has got nothing to do with this, as far as I can tell.
make: Entering directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig defconfig
GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
#
# configuration written to /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config
#
make -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/../buildroot O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output BR2_EXTERNAL=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP PROJECT_NAME=TRP BR2_DEFCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig
/usr/bin/make -j1 O=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
GEN /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/Makefile
BR2_DEFCONFIG='/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/defconfig' KCONFIG_AUTOCONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build SKIP_LEGACY= /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/buildroot-config/conf --silentoldconfig Config.in
^[[7m>>> host-lz4 v1.7.5 Building^[[27m
PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/bin:/home/sslayer/android-sdk-update-manager/platform-tools/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" PATH="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/sbin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/sbin:/home/sslayer/bin:/home/sslayer/android-sdk-update-manager/platform-tools/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/EMPIRE-XCcel:/usr/local/ADS2013_06/bin:/home/sslayer/bin:/usr/NX/bin" PKG_CONFIG="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib/pkgconfig:/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" CXXFLAGS="-O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include" LDFLAGS="-L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib" INTLTOOL_PERL=/usr/bin/perl /usr/bin/make -j17 -C /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-v1.7.5 all
make[3]: Nothing to be done for 'all'.
/usr/bin/gcc -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wpointer-arith -Wstrict-aliasing=1 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -I../lib -DXXH_NAMESPACE=LZ4_ -c -o lz4cli.o lz4cli.c
/usr/bin/gcc -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wpointer-arith -Wstrict-aliasing=1 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -I../lib -DXXH_NAMESPACE=LZ4_ -c -o bench.o bench.c
/usr/bin/gcc -O2 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -g -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wpointer-arith -Wstrict-aliasing=1 -I/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/include -I../lib -DXXH_NAMESPACE=LZ4_ -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/lib -L/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -Wl,-rpath,/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/host/usr/lib -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4frame.c ../lib/lz4hc.c ../lib/xxhash.c lz4io.c datagen.c lz4cli.c bench.c -o lz4c
lz4cli.c: In function ?usage_advanced?:
lz4cli.c:61:101: warning: implicit declaration of function ?LZ4_versionString?; did you mean ?LZ4_versionNumber?? [-Wimplicit-function-declaration]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:131:13: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAY(WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:131:13: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAY(WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
bench.c: In function ?BMK_benchMem?:
bench.c:182:18: error: ?LZ4HC_CLEVEL_MIN? undeclared (first use in this function)
if (cLevel < LZ4HC_CLEVEL_MIN) cfunctionId = 0; else cfunctionId = 1;
^~~~~~~~~~~~~~~~
bench.c:182:18: note: each undeclared identifier is reported only once for each function it appears in
lz4cli.c: In function ?usage_longhelp?:
lz4cli.c:191:96: error: ?LZ4HC_CLEVEL_MAX? undeclared (first use in this function); did you mean ?_SC_LINE_MAX??
DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:191:96: note: each undeclared identifier is reported only once for each function it appears in
DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c: In function ?main?:
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:345:64: note: in expansion of macro ?WELCOME_MESSAGE?
if (!strcmp(argument, "--version")) { DISPLAY(WELCOME_MESSAGE); return 0; }
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:372:35: note: in expansion of macro ?WELCOME_MESSAGE?
case 'V': DISPLAY(WELCOME_MESSAGE); goto _cleanup; /* Version */
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:500:5: note: in expansion of macro ?DISPLAYLEVEL?
DISPLAYLEVEL(3, WELCOME_MESSAGE);
^~~~~~~~~~~~
lz4cli.c:500:21: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAYLEVEL(3, WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
bench.c: In function ?BMK_benchCLevel?:
bench.c:399:76: error: ?LZ4_VERSION_STRING? undeclared (first use in this function); did you mean ?LZ4_VERSION_MINOR??
DISPLAY("bench %s %s: input %u bytes, %u seconds, %u KB blocks\n", LZ4_VERSION_STRING, LZ4_GIT_COMMIT_STRING, (U32)benchedSize, g_nbSeconds, (U32)(g_blockSize>>10));
^
bench.c:85:46: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:453:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 'r': recursive=1; /* without break */
~~~~~~~~~^~
lz4cli.c:456:17: note: here
case 'm': multiple_inputs=1;
^~~~
make[3]: *** [<builtin>: lz4cli.o] Error 1
make[3]: *** Waiting for unfinished jobs....
bench.c: In function ?BMK_benchFiles?:
bench.c:506:18: error: ?LZ4HC_CLEVEL_MAX? undeclared (first use in this function); did you mean ?_SC_LINE_MAX??
if (cLevel > LZ4HC_CLEVEL_MAX) cLevel = LZ4HC_CLEVEL_MAX;
^~~~~~~~~~~~~~~~
_SC_LINE_MAX
make[3]: *** [<builtin>: bench.o] Error 1
../lib/lz4frame.c: In function ?LZ4F_decompress?:
../lib/lz4frame.c:1082:29: warning: this statement may fall through [-Wimplicit-fallthrough=]
dctxPtr->dStage = dstage_storeHeader;
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../lib/lz4frame.c:1085:9: note: here
case dstage_storeHeader:
^~~~
../lib/lz4frame.c:1194:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
dctxPtr->dStage = dstage_decodeCBlock;
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../lib/lz4frame.c:1198:9: note: here
case dstage_decodeCBlock:
^~~~
lz4cli.c: In function ?usage_advanced?:
lz4cli.c:61:101: warning: implicit declaration of function ?LZ4_versionString?; did you mean ?LZ4_versionNumber?? [-Wimplicit-function-declaration]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:131:13: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAY(WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:131:13: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAY(WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
lz4cli.c: In function ?usage_longhelp?:
lz4cli.c:191:96: error: ?LZ4HC_CLEVEL_MAX? undeclared (first use in this function); did you mean ?_SC_LINE_MAX??
DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:191:96: note: each undeclared identifier is reported only once for each function it appears in
DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
^
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c: In function ?main?:
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:345:64: note: in expansion of macro ?WELCOME_MESSAGE?
if (!strcmp(argument, "--version")) { DISPLAY(WELCOME_MESSAGE); return 0; }
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:372:35: note: in expansion of macro ?WELCOME_MESSAGE?
case 'V': DISPLAY(WELCOME_MESSAGE); goto _cleanup; /* Version */
^~~~~~~~~~~~~~~
lz4cli.c:61:25: warning: format ?%s? expects argument of type ?char *?, but argument 5 has type ?int? [-Wformat=]
#define WELCOME_MESSAGE "*** %s %i-bits v%s, by %s ***\n", COMPRESSOR_NAME, (int)(sizeof(void*)*8), LZ4_versionString(), AUTHOR
^ ~~~~~~~~~~~~~~~~~~~
lz4cli.c:76:48: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
lz4cli.c:500:5: note: in expansion of macro ?DISPLAYLEVEL?
DISPLAYLEVEL(3, WELCOME_MESSAGE);
^~~~~~~~~~~~
lz4cli.c:500:21: note: in expansion of macro ?WELCOME_MESSAGE?
DISPLAYLEVEL(3, WELCOME_MESSAGE);
^~~~~~~~~~~~~~~
lz4cli.c:453:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 'r': recursive=1; /* without break */
~~~~~~~~~^~
lz4cli.c:456:17: note: here
case 'm': multiple_inputs=1;
^~~~
bench.c: In function ?BMK_benchMem?:
bench.c:182:18: error: ?LZ4HC_CLEVEL_MIN? undeclared (first use in this function)
if (cLevel < LZ4HC_CLEVEL_MIN) cfunctionId = 0; else cfunctionId = 1;
^~~~~~~~~~~~~~~~
bench.c:182:18: note: each undeclared identifier is reported only once for each function it appears in
bench.c: In function ?BMK_benchCLevel?:
bench.c:399:76: error: ?LZ4_VERSION_STRING? undeclared (first use in this function); did you mean ?LZ4_VERSION_MINOR??
DISPLAY("bench %s %s: input %u bytes, %u seconds, %u KB blocks\n", LZ4_VERSION_STRING, LZ4_GIT_COMMIT_STRING, (U32)benchedSize, g_nbSeconds, (U32)(g_blockSize>>10));
^
bench.c:85:46: note: in definition of macro ?DISPLAY?
#define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
^~~~~~~~~~~
bench.c: In function ?BMK_benchFiles?:
bench.c:506:18: error: ?LZ4HC_CLEVEL_MAX? undeclared (first use in this function); did you mean ?_SC_LINE_MAX??
if (cLevel > LZ4HC_CLEVEL_MAX) cLevel = LZ4HC_CLEVEL_MAX;
^~~~~~~~~~~~~~~~
_SC_LINE_MAX
make[3]: *** [Makefile:86: lz4c] Error 1
make[2]: *** [Makefile:62: all] Error 2
make[1]: *** [package/pkg-generic.mk:219: /home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP/output/build/host-lz4-v1.7.5/.stamp_built] Error 2
make: *** [../common.mk:42: default] Error 2
make: Leaving directory '/home/sslayer/Proyectos/ART/tmp/buildroot-external-skeleton/TRP'
--
Alvaro G. M.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-03-04 15:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-02 11:38 [Buildroot] host-lz4 bug on LTS 2017.02.10 Alvaro G. M.
2018-03-02 12:26 ` Baruch Siach
2018-03-02 12:50 ` Alvaro G. M.
2018-03-02 12:58 ` Peter Korsgaard
2018-03-02 13:02 ` Peter Korsgaard
2018-03-04 15:01 ` Alvaro G. M.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.