2010-07-08 10:33:54     Trunk build failed

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

2010-07-08 10:33:54     Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91048   

 

Hi,

 

I'm trying to build the latest trunk, but an error occurs:

 

./BuildToolChain -s /usr/dlnx764/svn/toolchain \

>   -k /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x \

>   -u /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03  \

>   -o /opt/uClinux-toolchain/

you should not build the toolchain as the 'root' user

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

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11

/usr/bin/ld: cannot find -lX11

collect2: ld returned 1 exit status

X development packages were not found, disabling gui packages such as insight

Found multiple versions of awk, using the one at /bin/awk

Found multiple versions of gettext, using the one at /bin/gettext

Found multiple versions of pkg-config, using the one at /usr/local/bin/pkg-config

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

Building gcc versions:      4.3

Building gcc languages:     all found

Utilizing make:             make -j2

Removing /opt/uClinux/bfin-linux-uclibc/bin from the PATH

Removing /opt/uClinux/bfin-uclinux/bin from the PATH

Toolchain source:           /usr/dlnx764/svn/toolchain

Kernel source:              /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x

Path to staging output dir: /usr/dlnx764/svn/toolchain/buildscript/staging_build

Path to ELF output dir:     /opt/uClinux-toolchain/-elf

Path to logs output dir:    /usr/dlnx764/svn/toolchain/buildscript/logs

Path to binutils-2.17:      /usr/dlnx764/svn/toolchain/binutils-2.17

Path to gcc-4.3:            /usr/dlnx764/svn/toolchain/gcc-4.3

Path to elf2flt:            /usr/dlnx764/svn/toolchain/elf2flt

Path to uClibc:             /usr/dlnx764/svn/toolchain/uClibc

Path to ldr-utils:          /usr/dlnx764/svn/toolchain/ldr-utils

Path to libusb:             /usr/dlnx764/svn/toolchain/libusb

Path to libftdi-1.0:        /usr/dlnx764/svn/toolchain/libftdi-1.0

Path to urjtag:             /usr/dlnx764/svn/toolchain/urjtag

Path to gdbproxy:           /usr/dlnx764/svn/toolchain/gdbproxy

Path to FLAT output dir:    /opt/uClinux-toolchain/-uclinux

Path to FDPIC output dir:   /opt/uClinux-toolchain/-linux-uclibc

Path to kernel output dir:  /usr/dlnx764/svn/toolchain/buildscript/kernel_build

Path to U-Boot:             /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03

Path to uClibc config:      /usr/dlnx764/svn/toolchain/uClibc/extra/Configs/

Creating log file:          /usr/dlnx764/svn/toolchain/buildscript/logs/log

*** bfin-elf: binutils/gdb: configuring (2.17)              08 Jul 2010 15:26:32

*** bfin-elf: binutils/gdb: building                        08 Jul 2010 15:26:35

 

Backtrace:  (most recent call is first)

   #0: File: funcs.sh               Line:  162   Function: die_with_log

       Args:

   #1: File: BuildToolChain         Line:  699   Function: run_cmd

       Args: 'make' 'all-binutils' 'all-gas' 'all-ld' 'all-sim' 'all-gdb'

   #2: File: BuildToolChain         Line: 1160   Function: build_binutils

       Args: 'elf' '/opt/uClinux-toolchain/-elf'

 

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

Build error at Thu Jul  8 15:29:08 IST 2010

  occurred 3m8s into script

When reporting issue, we may ask for /usr/dlnx764/svn/toolchain/buildscript/logs/config.logs.tbz2

Since the build was done in parallel, I'm not sure where the error

happened.  The best thing to do is re-run the BuildToolChain script

with the '-j 1' option.  The full log can be found here:

/usr/dlnx764/svn/toolchain/buildscript/logs/log

QuoteReplyEditDelete

 

 

2010-07-08 10:45:23     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91049   

 

With -j 1:

 

 

 

./BuildToolChain -s /usr/dlnx764/svn/toolchain   -k /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x   -u /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03    -o /opt/uClinux-toolchain/ -j 1

you should not build the toolchain as the 'root' user

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

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11

/usr/bin/ld: cannot find -lX11

collect2: ld returned 1 exit status

X development packages were not found, disabling gui packages such as insight

Found multiple versions of awk, using the one at /bin/awk

Found multiple versions of gettext, using the one at /bin/gettext

Found multiple versions of pkg-config, using the one at /usr/local/bin/pkg-config

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

Building gcc versions:      4.3

Building gcc languages:     all found

Utilizing make:             make -j1

Removing /opt/uClinux/bfin-linux-uclibc/bin from the PATH

Removing /opt/uClinux/bfin-uclinux/bin from the PATH

Toolchain source:           /usr/dlnx764/svn/toolchain

Kernel source:              /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x

Path to staging output dir: /usr/dlnx764/svn/toolchain/buildscript/staging_build

  directory already exists - cleaning

Path to ELF output dir:     /opt/uClinux-toolchain/-elf

  directory already exists - cleaning

Path to logs output dir:    /usr/dlnx764/svn/toolchain/buildscript/logs

  directory already exists - cleaning

Path to binutils-2.17:      /usr/dlnx764/svn/toolchain/binutils-2.17

Path to gcc-4.3:            /usr/dlnx764/svn/toolchain/gcc-4.3

Path to elf2flt:            /usr/dlnx764/svn/toolchain/elf2flt

Path to uClibc:             /usr/dlnx764/svn/toolchain/uClibc

Path to ldr-utils:          /usr/dlnx764/svn/toolchain/ldr-utils

Path to libusb:             /usr/dlnx764/svn/toolchain/libusb

Path to libftdi-1.0:        /usr/dlnx764/svn/toolchain/libftdi-1.0

Path to urjtag:             /usr/dlnx764/svn/toolchain/urjtag

Path to gdbproxy:           /usr/dlnx764/svn/toolchain/gdbproxy

Path to FLAT output dir:    /opt/uClinux-toolchain/-uclinux

  directory already exists - cleaning

Path to FDPIC output dir:   /opt/uClinux-toolchain/-linux-uclibc

  directory already exists - cleaning

Path to kernel output dir:  /usr/dlnx764/svn/toolchain/buildscript/kernel_build

  directory already exists - cleaning

Path to U-Boot:             /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03

Path to uClibc config:      /usr/dlnx764/svn/toolchain/uClibc/extra/Configs/

Creating log file:          /usr/dlnx764/svn/toolchain/buildscript/logs/log

*** bfin-elf: binutils/gdb: configuring (2.17)              08 Jul 2010 15:38:45

*** bfin-elf: binutils/gdb: building                        08 Jul 2010 15:38:47

 

Backtrace:  (most recent call is first)

   #0: File: funcs.sh               Line:  162   Function: die_with_log

       Args:

   #1: File: BuildToolChain         Line:  699   Function: run_cmd

       Args: 'make' 'all-binutils' 'all-gas' 'all-ld' 'all-sim' 'all-gdb'

   #2: File: BuildToolChain         Line: 1160   Function: build_binutils

       Args: 'elf' '/opt/uClinux-toolchain/-elf'

 

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

Build error at Thu Jul  8 15:41:12 IST 2010

  occurred 2m57s into script

When reporting issue, we may ask for /usr/dlnx764/svn/toolchain/buildscript/logs/config.logs.tbz2

Last logfile entries:

/usr/dlnx764/svn/toolchain/binutils-2.17/sim/bfin/dv-eth_phy.c:53: error: nonconstant array index in initializer

/usr/dlnx764/svn/toolchain/binutils-2.17/sim/bfin/dv-eth_phy.c:53: error: (near initialization for `reg_names')

/usr/dlnx764/svn/toolchain/binutils-2.17/sim/bfin/dv-eth_phy.c:54: error: `MII_ESTATUS' undeclared here (not in a function)

/usr/dlnx764/svn/toolchain/binutils-2.17/sim/bfin/dv-eth_phy.c:54: error: nonconstant array index in initializer

/usr/dlnx764/svn/toolchain/binutils-2.17/sim/bfin/dv-eth_phy.c:54: error: (near initialization for `reg_names')

make[2]: *** [dv-eth_phy.o] Error 1

make[2]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/sim/bfin'

make[1]: *** [all] Error 1

make[1]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/sim'

make: *** [all-sim] Error 2

QuoteReplyEditDelete

 

 

2010-07-08 10:48:15     Trunk build failed

Michael Hennerich (GERMANY)

Message: 91050    See what the BuildToolChain tells you:

 

you should not build the toolchain as the 'root' user

QuoteReplyEditDelete

 

 

2010-07-08 10:58:03     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91051   

 

As regular user it gives me:

 

./BuildToolChain -s /usr/dlnx764/svn/toolchain -k /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x -u /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03 -o /opt/uClinux-toolchain/ -j 1

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

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11

/usr/bin/ld: cannot find -lX11

collect2: ld returned 1 exit status

X development packages were not found, disabling gui packages such as insight

Found multiple versions of autoconf, using the one at /cad/adi/apps/gnu/linux/x86_64/4/bin/autoconf

Found multiple versions of automake, using the one at /cad/adi/apps/gnu/linux/x86_64/4/bin/automake

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

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

Found multiple versions of m4, using the one at /cad/adi/apps/gnu/linux/x86_64/4/bin/m4

Found multiple versions of pkg-config, using the one at /cad/adi/apps/gnu/linux/x86_64/4/bin/pkg-config

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

Building gcc versions:      4.3

Building gcc languages:     all found

Utilizing make:             make -j1

Toolchain source:           /usr/dlnx764/svn/toolchain

Kernel source:              /usr/dlnx764/svn/uClinux-dist_w/linux-2.6.x

Path to staging output dir: /usr/dlnx764/svn/toolchain/buildscript/staging_build

  directory already exists - cleaning

Path to ELF output dir:     /opt/uClinux-toolchain/-elf

  directory already exists - cleaning

Path to logs output dir:    /usr/dlnx764/svn/toolchain/buildscript/logs

  directory already exists - cleaning

Path to binutils-2.17:      /usr/dlnx764/svn/toolchain/binutils-2.17

Path to gcc-4.3:            /usr/dlnx764/svn/toolchain/gcc-4.3

Path to elf2flt:            /usr/dlnx764/svn/toolchain/elf2flt

Path to uClibc:             /usr/dlnx764/svn/toolchain/uClibc

Path to ldr-utils:          /usr/dlnx764/svn/toolchain/ldr-utils

Path to libusb:             /usr/dlnx764/svn/toolchain/libusb

Path to libftdi-1.0:        /usr/dlnx764/svn/toolchain/libftdi-1.0

Path to urjtag:             /usr/dlnx764/svn/toolchain/urjtag

Path to gdbproxy:           /usr/dlnx764/svn/toolchain/gdbproxy

Path to FLAT output dir:    /opt/uClinux-toolchain/-uclinux

  directory already exists - cleaning

Path to FDPIC output dir:   /opt/uClinux-toolchain/-linux-uclibc

  directory already exists - cleaning

Path to kernel output dir:  /usr/dlnx764/svn/toolchain/buildscript/kernel_build

  directory already exists - cleaning

Path to U-Boot:             /usr/dlnx764/svn/u-boot_trunk/u-boot-2010.03

Path to uClibc config:      /usr/dlnx764/svn/toolchain/uClibc/extra/Configs/

Creating log file:          /usr/dlnx764/svn/toolchain/buildscript/logs/log

*** bfin-elf: binutils/gdb: configuring (2.17)              08 Jul 2010 15:54:35

*** bfin-elf: binutils/gdb: building                        08 Jul 2010 15:54:38

 

Backtrace:  (most recent call is first)

   #0: File: funcs.sh               Line:  162   Function: die_with_log

       Args:

   #1: File: BuildToolChain         Line:  699   Function: run_cmd

       Args: 'make' 'all-binutils' 'all-gas' 'all-ld' 'all-sim' 'all-gdb'

   #2: File: BuildToolChain         Line: 1160   Function: build_binutils

       Args: 'elf' '/opt/uClinux-toolchain/-elf'

 

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

Build error at Thu Jul  8 15:55:16 IST 2010

  occurred 41s into script

When reporting issue, we may ask for /usr/dlnx764/svn/toolchain/buildscript/logs/config.logs.tbz2

Last logfile entries:

make[2]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd/po'

make[2]: Entering directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd/po'

make[2]: Nothing to be done for `info'.

make[2]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd/po'

make[2]: Entering directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd'

make[2]: Nothing to be done for `info-am'.

make[2]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd'

make[1]: *** [info-recursive] Error 1

make[1]: Leaving directory `/usr/dlnx764/svn/toolchain/buildscript/binutils_build/bfd'

make: *** [all-bfd] Error 2

QuoteReplyEditDelete

 

 

2010-07-08 11:13:39     Re: Trunk build failed

Robin Getz (UNITED STATES)

Message: 91055   

 

Nikolay:

 

Can you attach the log file? (/usr/dlnx764/svn/toolchain/buildscript/logs/config.logs.tbz2)

 

Thanks

 

-Robin

QuoteReplyEditDelete

 

 

2010-07-08 11:28:49     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91056   

 

That's it.

 

config.logs.tbz2

QuoteReplyEditDelete

 

 

2010-07-08 12:37:16     Re: Trunk build failed

Mike Frysinger (UNITED STATES)

Message: 91062   

 

you have a permission problem on your system:

mkdir: cannot create directory `.am8682': Permission denied

/usr/dlnx764/svn/toolchain/binutils-2.17/bfd/doc/bfd.info: Permission denied

make[2]: *** [/usr/dlnx764/svn/toolchain/binutils-2.17/bfd/doc/bfd.info] Error 1

 

nothing we can do about that

QuoteReplyEditDelete

 

 

2010-07-08 14:34:47     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91073   

 

Thanks, that's fixed.

 

Now I have the same error liike the frst time, when I run it as a root.

 

config.logs.tbz2

QuoteReplyEditDelete

 

 

2010-07-08 15:37:56     Re: Trunk build failed

Mike Frysinger (UNITED STATES)

Message: 91074   

 

you shouldnt be building anything as root

 

the dv-eth_phy.c error is because you headers are old.  ive added a workaround to trunk.

QuoteReplyEditDelete

 

 

2010-07-08 16:12:27     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91075   

 

I've updated my fsources rom the SVN, but still can't build.

 

I'm building as a regular user, not root.

 

config.logs.tbz2

QuoteReplyEditDelete

 

 

2010-07-08 16:25:33     Re: Trunk build failed

Mike Frysinger (UNITED STATES)

Message: 91077   

 

that is probably fixed now too

 

QuoteReplyEditDelete

 

 

2010-07-08 16:54:05     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91082   

 

it is... but now is something else...

 

config.logs.tbz2

QuoteReplyEditDelete

 

 

2010-07-08 18:50:32     Re: Trunk build failed

Mike Frysinger (UNITED STATES)

Message: 91085   

 

not really.  you're hitting permission problems again.  not a bug in the buildscript.

 

mkdir: cannot create directory `/opt/uClinux-toolchain/-elf/info': Permission denied

make[2]: *** [install-info-am] Error 1

QuoteReplyEditDelete

 

 

2010-07-09 03:52:38     Re: Trunk build failed

Michael Hennerich (GERMANY)

Message: 91102    These errors are all caused by your first attempt to build as root!

Either restore the typical user permissions - or get a fresh checkout.

QuoteReplyEditDelete

 

 

2010-07-09 07:18:02     Re: Trunk build failed

Nikolay Chokoev (IRELAND)

Message: 91103   

 

I have to look more before spamming the forum.

 

Thanks Mike, it's fine now.

Outcomes