Bug 12106 - daq: build fails if libdumbnet-dev is installed in the host
Summary: daq: build fails if libdumbnet-dev is installed in the host
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2018.11
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-14 10:29 UTC by Gorka Garcia
Modified: 2019-08-15 13:16 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gorka Garcia 2019-08-14 10:29:37 UTC
Same as what happened with https://bugs.busybox.net/show_bug.cgi?id=12096

When compiling daq package, the build fails if the user has libdumbnet-dev installed in the host system. It tries to add the host's /usr/include

see log bellow:


/bin/bash ../libtool  --tag=CC   --mode=compile /home/gorkag/project/host/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O2   -fvisibility=hidden -Wall -Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE -c -o daq_base.lo daq_base.c
libtool: compile:  /home/gorkag/project/host/bin/aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fvisibility=hidden -Wall -Wwrite-strings -Wsign-compare -Wcast-align -Wextra -Wformat -Wformat-security -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option -pedantic -std=c99 -D_GNU_SOURCE -c daq_base.c  -fPIC -DPIC -o .libs/daq_base.o
aarch64-linux-gnu-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
make[4]: *** [Makefile:453: daq_base.lo] Error 1
make[3]: *** [Makefile:406: all-recursive] Error 1
make[2]: *** [Makefile:338: all] Error 2