[#7166] 2012R1-RC1 toolchain fails to build buildroot for error: C compiler cannot create executables

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#7166] 2012R1-RC1 toolchain fails to build buildroot for error: C compiler cannot create executables

Submitted By: Mingquan Pan

Open Date

2012-06-19 23:23:31     Close Date

2012-06-25 02:20:46

Priority:

Medium High     Assignee:

Mingquan Pan

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

2012R1-RC2

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: 2012R1-RC1 toolchain fails to build buildroot for error: C compiler cannot create executables

Details:

 

2012R1-RC1 toolchain fails to build buildroot for error: C compiler cannot create executables.

 

mkdir -p /home/test/workspace/src/kernel/output/build/gdbserver-6.6

(cd /home/test/workspace/src/kernel/output/build/gdbserver-6.6; \

        PATH="/home/test/workspace/src/kernel/output/host/bin:/home/test/workspace/src/kernel/output/host/usr/bin:/home/test/workspace/src/kernel/output/host/usr/sbin/:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-elf/bin:/opt/uClinux/bfin-linux-uclibc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" AR="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-ar" AS="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-as" LD="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-ld" NM="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-nm" CC="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc" GCC="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc" CPP="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-cpp" CXX="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-g++" FC="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gfortran" RANLIB="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-ranlib" STRIP="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-strip" OBJCOPY="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-objcopy" OBJDUMP="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" FC_FOR_BUILD="/usr/bin/ld" LD_FOR_BUILD="/usr/bin/ld" CFLAGS_FOR_BUILD="-O2 -I/home/test/workspace/src/kernel/output/host/include -I/home/test/workspace/src/kernel/output/host/usr/include" CXXFLAGS_FOR_BUILD="-I/home/test/workspace/src/kernel/output/host/include -I/home/test/workspace/src/kernel/output/host/usr/include" LDFLAGS_FOR_BUILD="-L/home/test/workspace/src/kernel/output/host/lib -L/home/test/workspace/src/kernel/output/host/usr/lib -Wl,-rpath,/home/test/workspace/src/kernel/output/host/usr/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-as" DEFAULT_LINKER="/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-ld" CFLAGS="-pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__NOMMU__ -D_GNU_SOURCE" CXXFLAGS="-pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__NOMMU__ -D_GNU_SOURCE" LDFLAGS="" FCFLAGS="" PKG_CONFIG="/home/test/workspace/src/kernel/output/host/usr/bin/pkg-config" PERLLIB="/home/test/workspace/src/kernel/output/host/usr/lib/perl" STAGING_DIR="/home/test/workspace/src/kernel/output/host/usr/bfin-unknown-linux-uclibc/sysroot" \

        gdb_cv_func_sigsetjmp=yes \

        bash_cv_have_mbstate_t=yes \

        /home/test/workspace/src/kernel/output/toolchain/gdb-6.6/gdb/gdbserver/configure  \

        --cache-file=/dev/null \

        --build=i686-pc-linux-gnu \

        --host=bfin-unknown-linux-uclibc \

        --target=bfin-unknown-linux-uclibc \

        --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 \

        --includedir=/home/test/workspace/src/kernel/output/host/usr/bfin-unknown-linux-uclibc/sysroot/usr/include \

        --disable-nls \

        --without-uiout  \

        --disable-tui --disable-gdbtk --without-x \

        --without-included-gettext \

    )

checking for bfin-unknown-linux-uclibc-gcc... /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc

checking for C compiler default output file name... configure: error: C compiler cannot create executables

See `config.log' for more details.

make: *** [/home/test/workspace/src/kernel/output/build/gdbserver-6.6/.configured] Error 77

 

output/build/gdbserver-6.6/config.log:

configure:1622: $? = 0

configure:1624: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc -v </dev/null >&5

Using built-in specs.

Target: bfin-linux-uclibc

Configured with: /usr/src/redhat/BUILD/blackfin-toolchain-2012R1/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-linux-uclibc --prefix=/opt/uClinux/bfin-linux-uclibc --disable-libstdcxx-pch --with-sysroot=/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime --enable-threads=posix --enable-shared --enable-clocale=generic --disable-symvers --disable-libssp --disable-libffi --disable-libgcj --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-2012R1-RC1

Thread model: posix

gcc version 4.3.5 (ADI-2012R1-RC1)

configure:1627: $? = 0

configure:1629: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc -V </dev/null >&5

bfin-linux-uclibc-gcc: '-V' must come at the start of the command line

configure:1632: $? = 1

configure:1655: checking for C compiler default output file name

configure:1658: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__NOMMU__ -D_GNU_SOURCE   conftest.c  >&5

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: skipping incompatible /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/libgcc.a when searching for -lgcc

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find -lgcc

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: skipping incompatible /home/test/workspace/src/kernel/output/host/usr/bfin-unknown-linux-uclibc/sysroot/usr/lib//uclibc_nonshared.a when searching for /usr/lib//uclibc_nonshared.a

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find /usr/lib//uclibc_nonshared.a inside /home/test/workspace/src/kernel/output/host/usr/bfin-unknown-linux-uclibc/sysroot

collect2: ld returned 1 exit status

configure:1661: $? = 1

configure: failed program was:

 

the whole log is attached.

 

 

Follow-ups

 

--- Stuart Henderson                                         2012-06-22 12:42:04

This was fixed when I re-built the release. Fixed in 2012R1-RC2.

 

--- Mingquan Pan                                             2012-06-25 03:21:34

Yes, close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.log.gdbserver    application/octet-stream    7605    Mingquan Pan

Attachments

Outcomes