On 10/13/2014 10:48 PM, Ted Hess wrote:
> 2 - Building alsa-lib has no dependency on the host system's audio
> setup. The problem you are seeing is indeed a problem with your build
> environment, and what tools you have installed. More information is
> needed about our build system and target config before I can help you.
I'm building on Ubuntu 14.04, for ar71xx and au1000 targets. The problem
happens in OpenWRT 14.07 and trunk.
It looks like the host gcc gets called with the target CFLAGS, see the
config.log below. Tell me if there is anything else you need to know.
bruno
build_dir/target-mips_34kc_uClibc-0.9.33.2/alsa-lib-1.0.28/config.log
-
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by alsa-lib configure 1.0.28, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux
--build=x86_64-linux-gnu --program-prefix= --program-suffix=
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share
--localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls
--disable-python --disable-debug --without-debug --with-float=soft
--with-versioned=no
## - ##
## Platform. ##
## - ##
hostname = shiva
uname -m = x86_64
uname -r = 3.13.0-37-generic
uname -s = Linux
uname -v = #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH:
/home/br1/dev/openwrt/trunk/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/host/bin
PATH:
/home/br1/dev/openwrt/trunk/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin
PATH: /home/br1/dev/openwrt/trunk/openwrt/staging_dir/host/bin
PATH:
/home/br1/dev/openwrt/trunk/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin
PATH: /home/br1/dev/openwrt/trunk/openwrt/staging_dir/host/bin
PATH:
/home/br1/dev/openwrt/trunk/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin
PATH: /home/br1/dev/openwrt/trunk/openwrt/staging_dir/host/bin
PATH: /home/br1/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
## --- ##
## Core tests. ##
## --- ##
configure:2281: loading site script
/home/br1/dev/openwrt/trunk/openwrt/include/site/mips-openwrt-linux-uclibc
| #!/bin/sh
|
| . $TOPDIR/include/site/mips-linux
| . $TOPDIR/include/site/linux-uclibc
|
configure:2414: checking build system type
configure:2428: result: x86_64-pc-linux-gnu
configure:2448: checking host system type
configure:2461: result: mips-openwrt-linux-gnu
configure:2497: checking for a BSD-compatible install
configure:2565: result: /usr/bin/install -c
configure:2576: checking whether build environment is sane
configure:2626: result: yes
configure:2675: checking for mips-openwrt-linux-strip
configure:2702: result: mips-openwrt-linux-uclibc-strip
configure:2767: checking for a thread-safe mkdir -p
configure:2806: result: /bin/mkdir -p
configure:2819: checking for gawk
configure:2835: found /usr/bin/gawk
configure:2846: result: gawk
configure:2857: checking whether make sets $(MAKE)
configure:2879: result: yes
configure:2970: checking whether to enable maintainer-specific portions
of Makefiles
configure:2979: result: yes
configure:3005: checking whether make supports nested variables
configure:3022: result: yes
configure:3039: checking for cross-compiler
configure:3048: result: gcc
configure:3063: checking for mips-openwrt-linux-gcc
configure:3090: result: gcc
configure:3359: checking for C compiler version
configure:3368: gcc --version >&5
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3379: $? = 0
configure:3368: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--