Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] unsafe header/library path used in cross-compilation: '-I/usr/include/readline'
@ 2018-02-24 21:12 Sjoerd Venema
  2018-02-24 21:25 ` Baruch Siach
  0 siblings, 1 reply; 15+ messages in thread
From: Sjoerd Venema @ 2018-02-24 21:12 UTC (permalink / raw)
  To: buildroot

Hi all,

I'm getting an "unsafe header/library path used in cross-compilation"-error
while building ecasound (https://ecasound.seul.org/ecasound/download.php).
From what I've read so far is that it's because the makefile references the
/usr/-directory. What I can't figure out is how to change the makefile to
not do that. Turning on/off the "paranoid"-function in menuconfig didn't
make a difference.

[buildroot at br buildroot]$ make ecasound
>>> ecasound 2.9.1 Building
PATH="/home/buildroot/buildroot-2018.02-rc2/output/host/bin:/home/buildroot/buildroot-2018.02-rc2/output/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/buildroot/.local/bin:/home/buildroot/bin"
/usr/bin/make -j5  -C
/home/buildroot/buildroot-2018.02-rc2/output/build/ecasound-2.9.1/
/usr/bin/make  all-recursive
Making all in kvutils
make[4]: Nothing to be done for `all'.
Making all in libecasound
Making all in plugins
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Making all in ecasound
/home/buildroot/buildroot-2018.02-rc2/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++
-DHAVE_CONFIG_H -I. -I. -I.. *-I/usr/include/readline* -I. -I..
-I../libecasound -I../kvutils -D_REENTRANT -D_XOPEN_SOURCE=600
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-ffast-math -fstrict-aliasing -DNDEBUG -DENABLE_DBC -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -c -o eca-curses.o
eca-curses.cpp
arm-buildroot-linux-uclibcgnueabihf-g++: WARNING: unsafe header/library
path used in cross-compilation: '*-I/usr/include/readline*'
eca-curses.cpp:46:22: fatal error: readline.h: No such file or directory
 #include <readline.h>
                      ^
compilation terminated.
make[4]: *** [eca-curses.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: ***
[/home/buildroot/buildroot-2018.02-rc2/output/build/ecasound-2.9.1/.stamp_built]
Error 2
make: *** [_all] Error 2

Many thanks!
Sjoerd Venema

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180224/3143bc08/attachment.html>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-02-28  8:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-24 21:12 [Buildroot] unsafe header/library path used in cross-compilation: '-I/usr/include/readline' Sjoerd Venema
2018-02-24 21:25 ` Baruch Siach
2018-02-25  0:03   ` Sjoerd Venema
2018-02-25  5:36     ` Baruch Siach
2018-02-25 10:12       ` Sjoerd Venema
2018-02-26  5:42         ` Baruch Siach
2018-02-26 17:51           ` Sjoerd Venema
2018-02-27 11:54             ` Peter Seiderer
2018-02-27 17:56               ` Sjoerd Venema
2018-02-27 18:16                 ` Peter Seiderer
2018-02-27 18:22                   ` Peter Seiderer
2018-02-27 18:24                     ` Sjoerd Venema
2018-02-27 20:29                       ` Sjoerd Venema
2018-02-27 20:35                         ` Peter Seiderer
2018-02-28  8:33                     ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox