C 使用waf for ARM9将项目交叉编译为buildroot包

C 使用waf for ARM9将项目交叉编译为buildroot包,c,cross-compiling,waf,buildroot,library-path,C,Cross Compiling,Waf,Buildroot,Library Path,我正在使用CodeSourcery g++lite工具链2013 我得到了一个集成到buildroot中的项目(看起来不错,一切都按预期调用) waf是首选的构建系统 define EEBUSRESTIFIED_CONFIGURE_CMDS (cd "$(@D)"; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(CFLAGS_FOR_BUILD)" \ LDFLAGS="--sysroot=$(STAGING_DIR)" \ LD_LIBRARY_PATH="$(

我正在使用CodeSourcery g++lite工具链2013

我得到了一个集成到buildroot中的项目(看起来不错,一切都按预期调用)

waf
是首选的构建系统

define EEBUSRESTIFIED_CONFIGURE_CMDS
(cd "$(@D)"; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(CFLAGS_FOR_BUILD)" \
LDFLAGS="--sysroot=$(STAGING_DIR)" \
LD_LIBRARY_PATH="$(STAGING_DIR)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
./waf --dest=$(TARGET_DIR) configure)
endef
显示

看起来不错

在编译步骤

define EEBUSRESTIFIED_BUILD_CMDS
(cd "$(@D)"; \
$(TARGET_CONFIGURE_OPTS) \
LDFLAGS="--sysroot=$(STAGING_DIR)" \
LD_LIBRARY_PATH="$(STAGING_DIR)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
./waf --dest=$(TARGET_DIR) build)
endef
它死了

/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
/usr/lib/libgobject-2.0.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

我理解这个问题-
waf
/
ld
试图链接到我的主机libs,这注定会失败

如何修复ld以选择正确的库路径?这个问题的根源是什么?


此处是build命令的扩展输出(用linbreaks替换空格):

已经读过

整个
foo.mk

FOO_VERSION = abcd1234
FOO_SITE = ssh://git@some.where/FOO
FOO_SITE_METHOD = git
FOO_LICENSE = unknown
FOO_INSTALL_TARGET = YES
FOO_DEPENDENCIES = util-linux libglib2 libsoup libxml2 host-pkgconf

define FOO_CONFIGURE_CMDS
    echo "$(TARGET_CONFIGURE_OPTS)"
    (cd "$(@D)"; \
    $(TARGET_CONFIGURE_OPTS) \
    LDFLAGS="--sysroot=$(STAGING_DIR)" \
    LD_LIBRARY_PATH="$(STAGING_DIR)" \
    PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
    PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
    ./waf --dest=$(TARGET_DIR) configure)
endef

define FOO_BUILD_CMDS
    (cd "$(@D)"; \
    LDFLAGS="--sysroot=$(STAGING_DIR)" \
    LD_LIBRARY_PATH="$(STAGING_DIR)" \
    PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
    PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
    ./waf --dest=$(TARGET_DIR) debug)
endef

define FOO_INSTALL_TARGET_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) install)
endef

define FOO_CLEAN_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) distclean)
endef

$(eval $(generic-package))
没有waf方面的专家,但是构建变量的“不可靠”应该是因为在
FOO\u-BUILD\u CMDS中缺少echo
“$(目标配置选项)”
。然而,如果这是一个基于autotools的配置和安装,我不会在构建步骤中覆盖太多内容,所以请尝试使用

define FOO_BUILD_CMDS
    echo "$(TARGET_CONFIGURE_OPTS)"
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) debug)
endef

此外,将
PKG_CONFIG_PATH=“$(STAGING_DIR)/usr/lib/pkgconfig”
替换为
PKG_CONFIG_PATH=“$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/lib/pkgconfig:‌​$(STAGING_DIR)/usr/local/lib/pkgconfig“

make clean
a
make all
之后,我终于找到了一个解决方案——诀窍是通过LDFLAGS将有关
sysroot
的标志传递给链接器

文件
告诉我
/build/foo.bin:ELF 32位LSB可执行文件,ARM,EABI5版本1(SYSV),动态链接(使用共享libs),适用于GNU/Linux 2.6.16,不剥离
,看起来相当不错

使用的
foo.mk
下方

FOO_VERSION = 6508f5b36172ba8965372ef96fb350b413ec5d15
FOO_SITE = ssh://git@some.where/FOO
FOO_SITE_METHOD = git
FOO_LICENSE = unknown
FOO_INSTALL_TARGET = YES
FOO_DEPENDENCIES = util-linux libglib2 libsoup libxml2 host-pkgconf

define FOO_CONFIGURE_CMDS
    (cd "$(@D)"; \
    $(TARGET_CONFIGURE_OPTS) \
    LDFLAGS="-Wl,--sysroot=$(STAGING_DIR) -Wl,--verbose=9 -Wl,--error-poison-system-directories -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
    ./waf --dest=$(TARGET_DIR) configure)
endef

define FOO_BUILD_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) debug)
endef

define FOO_INSTALL_TARGET_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) install)
endef

define FOO_CLEAN_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) distclean)
endef

$(eval $(generic-package))

供参考-链接器输出

GNU ld (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905
  Supported emulations:
   armelf_linux_eabi
   armelfb_linux_eabi
using internal linker script:
==================================================
<< stripped manually >>    
==================================================
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtbegin.o succeeded
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtbegin.o
attempt to open src/asyncrequestobj.c.1.o succeeded
src/asyncrequestobj.c.1.o
attempt to open src/cache.c.1.o succeeded
src/cache.c.1.o
attempt to open src/error.c.1.o succeeded
src/error.c.1.o
attempt to open src/main.c.1.o succeeded
src/main.c.1.o
attempt to open src/request-info.c.1.o succeeded
src/request-info.c.1.o
attempt to open src/response-info.c.1.o succeeded
src/response-info.c.1.o
attempt to open src/xml_helper.c.1.o succeeded
src/xml_helper.c.1.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so succeeded
-lgobject-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libsoup-2.4.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libsoup-2.4.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so succeeded
-lsoup-2.4 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgio-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgio-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgio-2.0.so succeeded
-lgio-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgio-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so succeeded
-lgobject-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libxml2.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libxml2.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libxml2.so succeeded
-lxml2 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libxml2.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libuuid.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libuuid.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so succeeded
-luuid (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
attempt to open libgcc_s.so.1 failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1 succeeded
libgcc_s.so.1 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1)
attempt to open libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0 succeeded
/lib/libpthread.so.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread_nonshared.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so.6 succeeded
/lib/libc.so.6 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so.6)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc_nonshared.a succeeded
(/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc_nonshared.a)elf-init.oS
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3 succeeded
/lib/ld-linux.so.3 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
attempt to open libgcc_s.so.1 failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1 succeeded
libgcc_s.so.1 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1)
attempt to open libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtend.o succeeded
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtend.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
libpcre.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found libpcre.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpcre.so.1
librt.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found librt.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/librt.so.1
libffi.so.6 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found libffi.so.6 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libffi.so.6
libgmodule-2.0.so.0 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libgmodule-2.0.so.0 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgmodule-2.0.so.0
libresolv.so.2 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libresolv.so.2 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libresolv.so.2
libz.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libz.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libz.so.1
libm.so.6 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libm.so.6 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libm.so.6
libsqlite3.so.0 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libsqlite3.so.0 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsqlite3.so.0
libdl.so.2 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libdl.so.2 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libdl.so.2
ld-linux.so.3 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so
found ld-linux.so.3 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation

libpath
stlibpath
包括
(至少可能更多)没有前缀为
destdir
——选项也应该是
--destdir
而不是
--dest

尝试将
PKG\u CONFIG\u PATH
替换为
PKG\u CONFIG\u LIBDIR
。在配置和构建中都替换了它-没有更改也测试了删除
--sysroot
和/或
PKG\u CONFIG\u SYSROOT\u DIR
-没有成功,没有waf方面的专家,但是构建变量的“危险”应该是由于
FOO\u BUILD\u CMDS
中缺少
echo“$(TARGET\u CONFIGURE\u OPTS)”
。但是,如果这是一个基于自动工具的配置和安装,那么在构建状态下我不会覆盖太多,所以请尝试在
FOO\u build\u CMDS
中使用
(cd“$(@D)”;./waf--dest=$(TARGET\u DIR)debug)
。此外,将
PKG\u CONFIG\u PATH=“$(STAGING\u DIR)/usr/lib/pkgconfig”
替换为
PKG\u CONFIG\u PATH=“$(STAGING\u DIR)/usr/lib/pkgconfig:$(STAGING\u DIR)/lib/pkgconfig:$(STAGING\u DIR)/usr/local/lib/pkgconfig”
。但它最终得到的是一个
x86\u 64
二进制文件,而不是一个ARM二进制文件,然后为构建机器编译(x86\u 64),不是目标(ARM9),然后尝试添加
echo“$(target\u CONFIGURE\u OPTS)”
,就像我对答案所做的那样。非常奇怪的是,构建系统忽略了这一点。也尝试了这一点——也失败了。我一直在避免给您编写该解决方案,因为您所做的实际上是忽略pkg config的存在,而这最终会使系统更难维护。权衡,因为有时候pkg-config可能是跨编译环境中正确使用的PITA(正如您刚才看到的!)。但它是有效的!:)我真的不喜欢这样做,但现在这已经足够了,pkg config实际上不是罪魁祸首(我添加了调试输出,它只会为我的所有lib调用pkg config,
-L
路径都是正确的)。所以查找问题是从其他地方产生的-可能是链接器脚本?这对我来说绝对是奇怪的部分,因为pkg配置看起来确实很好。。。配置。但是,正如您正确指出的,至少最初链接器尝试使用非arm LIB,这表明库路径集不正确。好吧,很高兴它现在起作用了!刚刚更新了答案
FOO_VERSION = 6508f5b36172ba8965372ef96fb350b413ec5d15
FOO_SITE = ssh://git@some.where/FOO
FOO_SITE_METHOD = git
FOO_LICENSE = unknown
FOO_INSTALL_TARGET = YES
FOO_DEPENDENCIES = util-linux libglib2 libsoup libxml2 host-pkgconf

define FOO_CONFIGURE_CMDS
    (cd "$(@D)"; \
    $(TARGET_CONFIGURE_OPTS) \
    LDFLAGS="-Wl,--sysroot=$(STAGING_DIR) -Wl,--verbose=9 -Wl,--error-poison-system-directories -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
    ./waf --dest=$(TARGET_DIR) configure)
endef

define FOO_BUILD_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) debug)
endef

define FOO_INSTALL_TARGET_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) install)
endef

define FOO_CLEAN_CMDS
    (cd "$(@D)"; \
    ./waf --dest=$(TARGET_DIR) distclean)
endef

$(eval $(generic-package))
GNU ld (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905
  Supported emulations:
   armelf_linux_eabi
   armelfb_linux_eabi
using internal linker script:
==================================================
<< stripped manually >>    
==================================================
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crti.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtbegin.o succeeded
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtbegin.o
attempt to open src/asyncrequestobj.c.1.o succeeded
src/asyncrequestobj.c.1.o
attempt to open src/cache.c.1.o succeeded
src/cache.c.1.o
attempt to open src/error.c.1.o succeeded
src/error.c.1.o
attempt to open src/main.c.1.o succeeded
src/main.c.1.o
attempt to open src/request-info.c.1.o succeeded
src/request-info.c.1.o
attempt to open src/response-info.c.1.o succeeded
src/response-info.c.1.o
attempt to open src/xml_helper.c.1.o succeeded
src/xml_helper.c.1.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so succeeded
-lgobject-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libsoup-2.4.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libsoup-2.4.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so succeeded
-lsoup-2.4 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgio-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgio-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgio-2.0.so succeeded
-lgio-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgio-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgobject-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so succeeded
-lgobject-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libglib-2.0.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so succeeded
-lglib-2.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libglib-2.0.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libxml2.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libxml2.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libxml2.so succeeded
-lxml2 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libxml2.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libuuid.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libuuid.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so succeeded
-luuid (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
attempt to open libgcc_s.so.1 failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1 succeeded
libgcc_s.so.1 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1)
attempt to open libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread.so
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0 succeeded
/lib/libpthread.so.0 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libpthread.so.0)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpthread_nonshared.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc.so
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so.6 succeeded
/lib/libc.so.6 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libc.so.6)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc_nonshared.a succeeded
(/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libc_nonshared.a)elf-init.oS
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3 succeeded
/lib/ld-linux.so.3 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3)
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.so failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so succeeded
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
opened script file /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so
attempt to open libgcc_s.so.1 failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1 succeeded
libgcc_s.so.1 (/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc_s.so.1)
attempt to open libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgcc.a failed
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/libgcc.a succeeded
attempt to open /home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtend.o succeeded
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/crtend.o
attempt to open /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o succeeded
/home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crtn.o
libpcre.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found libpcre.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libpcre.so.1
librt.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found librt.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/librt.so.1
libffi.so.6 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgobject-2.0.so
found libffi.so.6 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libffi.so.6
libgmodule-2.0.so.0 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libgmodule-2.0.so.0 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libgmodule-2.0.so.0
libresolv.so.2 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libresolv.so.2 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libresolv.so.2
libz.so.1 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libz.so.1 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libz.so.1
libm.so.6 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libm.so.6 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libm.so.6
libsqlite3.so.0 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libsqlite3.so.0 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsqlite3.so.0
libdl.so.2 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libsoup-2.4.so
found libdl.so.2 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/libdl.so.2
ld-linux.so.3 needed by /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libuuid.so
found ld-linux.so.3 at /home/bernhard/buildroot-2013.08/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/lib/ld-linux.so.3
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
/home/bernhard/buildroot-2013.08/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
bld.program(features = ['c', ..],
        libpath = ["/usr/lib"],
        stlibpath = ["/usr/lib"],
        includes = ["src", "/usr/include"],
        target = "foo.bin",
        source = ["main.c","foo.c"])