2011-03-16 12:38:41     2010R1 Fails to Build

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

2011-03-16 12:38:41     2010R1 Fails to Build

Cameron Barfield (UNITED STATES)

Message: 98971   

 

Git commit 0ac2b268180bebfcacba166d13229eab1047b90e

 

Host environment is Kubuntu 10.10

 

 

 

cameron@camlinux:~/src/blackfin/toolchain.2010/toolchain/buildscript$ ./BuildToolChain -s ~/src/blackfin/toolchain.2010/toolchain/ -k ~/src/blackfin/linux-2009/ -b ~/src/blackfin/toolchain.2010/toolchain/gcc-4.3/ -o ~/src/blackfin/toolchain.2010/toolchain/output -u ~/src/blackfin/u-boot-2010/ -j 1

Checking for development packages (skip checks with the -D option)

Found multiple versions of which, using the one at /usr/bin/which

Building toolchains:        bfin-elf bfin-uclinux bfin-linux-uclibc

Building gcc versions:      4.3

Building gcc languages:     all found

Utilizing make:             make -j1

Removing /home/cameron/src/blackfin/toolchain.2009/output-linux-uclibc/bin/ from the PATH

Removing /home/cameron/src/blackfin/toolchain.2009/output-uclinux/bin/ from the PATH

Toolchain source:           /home/cameron/src/blackfin/toolchain.2010/toolchain

Kernel source:              /home/cameron/src/blackfin/linux-2009/

Path to staging output dir: /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3/staging_build

  directory already exists - cleaning

Path to ELF output dir:     /home/cameron/src/blackfin/toolchain.2010/toolchain/output-elf

  directory already exists - cleaning

Path to logs output dir:    /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3/logs

  directory already exists - cleaning

Path to binutils-2.17:      /home/cameron/src/blackfin/toolchain.2010/toolchain/binutils-2.17

Path to gcc-4.3:            /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3

Path to elf2flt:            /home/cameron/src/blackfin/toolchain.2010/toolchain/elf2flt

Path to uClibc:             /home/cameron/src/blackfin/toolchain.2010/toolchain/uClibc

Path to ldr-utils:          /home/cameron/src/blackfin/toolchain.2010/toolchain/ldr-utils

Path to libusb:             /home/cameron/src/blackfin/toolchain.2010/toolchain/libusb

Path to libftdi-1.0:        /home/cameron/src/blackfin/toolchain.2010/toolchain/libftdi-1.0

Path to urjtag:             /home/cameron/src/blackfin/toolchain.2010/toolchain/urjtag

Path to gdbproxy:           /home/cameron/src/blackfin/toolchain.2010/toolchain/gdbproxy

Path to FLAT output dir:    /home/cameron/src/blackfin/toolchain.2010/toolchain/output-uclinux

  directory already exists - cleaning                                                                           

Path to FDPIC output dir:   /home/cameron/src/blackfin/toolchain.2010/toolchain/output-linux-uclibc             

  directory already exists - cleaning                                                                           

Path to kernel output dir:  /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3/kernel_build            

  directory already exists - cleaning                                                                           

Path to U-Boot:             /home/cameron/src/blackfin/u-boot-2010/                                             

Path to uClibc config:      /home/cameron/src/blackfin/toolchain.2010/toolchain/uClibc/extra/Configs/

Creating log file:          /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3/logs/log

*** bfin-elf: binutils/gdb: configuring (2.17)              16 Mar 2011 08:52:28

*** bfin-elf: binutils/gdb: building                        16 Mar 2011 08:52:30

*** bfin-elf: binutils/gdb: installing                      16 Mar 2011 08:59:13

*** bfin-elf: elf2flt: configuring                          16 Mar 2011 08:59:29

*** bfin-elf: elf2flt: building                             16 Mar 2011 08:59:32

*** bfin-elf: elf2flt: installing                           16 Mar 2011 08:59:33

*** bfin-elf: gcc: linking external packages                16 Mar 2011 08:59:34

*** bfin-elf: gcc: configuring (4.3.5)                      16 Mar 2011 08:59:34

*** bfin-elf: gcc: building                                 16 Mar 2011 08:59:38

*** bfin-elf: gcc: installing                               16 Mar 2011 09:27:14

*** Configuring Linux Kernel                                16 Mar 2011 09:28:06

*** Checking uClibc CFLAGS: -g -O2 OK

*** uClibc: configuring for .                               16 Mar 2011 09:28:11

*** uClibc: cleaning                                        16 Mar 2011 09:28:12

Please report an error to http://blackfin.uclinux.org/gf/project/toolchain

Build error at Wed Mar 16 09:28:16 PDT 2011

  occurred 35m50s into script

When reporting issue, we may ask for /home/cameron/src/blackfin/toolchain.2010/toolchain/gcc-4.3/logs/config.logs.tbz2

Last logfile entries:

rm -f ./include/bfin_fixed_code.h ./include/bfin_l1layout.h ./include/bfin_sram.h

make -s -C test clean

make -C utils utils_clean

rm -f ../utils/{ldconfig,ldd,readelf,iconv,locale,*.host}

rm -f ./extra/scripts/unifdef

find . \( -name core -o -name \*.orig -o -name \*~ -o -name .\*.dep \) -exec rm -f {} \;

rm -f .config .config.old .config.cmd

make -C extra/config distclean

make[1]: *** ../../.config: Is a directory.  Stop.

make: *** [distclean] Error 2

cameron@camlinux:~/src/blackfin/toolchain.2010/toolchain/buildscript$

 

config.logs.tbz2

QuoteReplyEditDelete

 

 

2011-03-16 12:45:41     Re: 2010R1 Fails to Build

Cameron Barfield (UNITED STATES)

Message: 98972   

 

-k ~/src/blackfin/linux-2009/

 

---

 

 

 

I just want to point out that I have the 2010R1 branch of the kernel checked out in that path.

QuoteReplyEditDelete

 

 

2011-03-16 14:21:38     Re: 2010R1 Fails to Build

Mike Frysinger (UNITED STATES)

Message: 98974   

 

you probably have a .config dir in / which doesnt belong there

QuoteReplyEditDelete

 

 

2011-03-16 14:38:59     Re: 2010R1 Fails to Build

Cameron Barfield (UNITED STATES)

Message: 98975   

 

Why would the buildscript, which is not being run as root, be poking around in /?

 

There's no .config in /home/cameron/src/blackfin/toolchain.2010/toolchain/ Any files/folders in that path came from the git checkout and/or the build process.

QuoteReplyEditDelete

 

 

2011-03-16 15:22:27     Re: 2010R1 Fails to Build

Mike Frysinger (UNITED STATES)

Message: 98976   

 

the buildscript isnt poking in /

 

did you check my suggestion to see if there is **** in your / ?

QuoteReplyEditDelete

 

 

2011-03-17 14:12:26     Re: 2010R1 Fails to Build

Stuart Henderson (UNITED KINGDOM)

Message: 99010   

 

Is this not indicative of a problem?

 

uClibc/extra/config/Makefile

 

sets:

top_builddir=../../

 

and then includes:

uClibc/Rules.mak

 

which includes:

-include $(top_builddir).config

 

so we end up looking for: .config at uClibc/../../.config

 

which obviously doesn't exist, resulting in the odd behaviour.

QuoteReplyEditDelete

 

 

2011-03-17 15:02:10     Re: 2010R1 Fails to Build

Mike Frysinger (UNITED STATES)

Message: 99012   

 

yes, uClibc itself is over eager in including .config, but Cameron needs to confirm where exactly his .config/ is

QuoteReplyEditDelete

 

 

2011-04-06 20:01:57     Re: 2010R1 Fails to Build

Mike Frysinger (UNITED STATES)

Message: 99633   

 

seems that it isnt really uClibc's fault.  make itself likes to perform a path search when told to include a relative path.

 

so doing "include ../../.config" when that doesnt exist, `make` itself will look in /usr/include and other system paths.  so make itself tries to include /usr/include/../../.config.

Attachments

Outcomes