Skip to contentSkip to conversation

New: crosstool-ng-1.11.3 fails to build

Buildroot bugzilla at busybox.net 1 participant 8 messages May 25, 2011 – Jul 25, 2011

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=3781

Summary: crosstool-ng-1.11.3 fails to build
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: keguang.zhang at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

While building crosstool-ng-1.11.3 with uClibc-0.9.31, The error comes out as below:

...
[ALL ] make[4]: Leaving directory
`/opt/buildroot_real6410/output_fs2410/build/crosstool-ng-1.11.3/.build/arm-unknown-linux-uclibcgnueabi/build/build-cc'
[ALL ] ln: creating symbolic link
`/opt/buildroot_real6410/output_fs2410/host/usr/bin/arm-unknown-linux-uclibcgnueabi-cc':
File exists
[ERROR]

[ERROR]    >>  Build failed in step 'Installing final compiler'
[ERROR]    >>
[ERROR]    >>  Error happened in: CT_DoExecLog[scripts/functions]
[ERROR]    >>        called from: do_cc[scripts/build/cc/gcc.sh at 576]
[ERROR]    >>        called from: main[scripts/crosstool-NG.sh at 582]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      'docs/B - Known issues.txt'

[ERROR]
[ERROR] Build failed in step 'Installing final compiler'
[ERROR]
[ERROR] (elapsed: 16:32.56)
make[3]: *** [build] Error 1
make[2]: *** [build.2] Error 2
make[1]: *** [/opt/buildroot_real6410/output_fs2410/stamps/ct-ng-toolchain-built] Error 2
make: *** [all] Error 2

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

https://bugs.busybox.net/show_bug.cgi?id=3781

--- Comment #1 from Kelvin Cheung <[email protected]> --- Created attachment 3319
--> https://bugs.busybox.net/attachment.cgi?id=3319
.config

config of crosstool-ng-1.11.3

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at buildroot.uclibc |yann.morin.1998 at anciens.eni
                   |.org                        |b.fr

--- Comment #2 from Yann E. MORIN <[email protected]> --- Created attachment 3325
--> https://bugs.busybox.net/attachment.cgi?id=3325
Force symlink creation

Please, try applying this patch to crosstool-NG, and re-run.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

--- Comment #3 from Kelvin Cheung <[email protected]> --- (In reply to comment #2)

Quoted 4 lines

Created attachment 3325 [details]
Force symlink creation

Please, try applying this patch to crosstool-NG, and re-run.

After applying this patch, the error becomes:

[ALL ] make[4]: Leaving directory
`/opt/buildroot_real6410/output_fs2410/build/crosstool-ng-1.11.3/.build/arm-unknown-linux-uclibcgnueabi/build/build-cc' [ALL ]
`/opt/buildroot_real6410/output_fs2410/host/usr/bin/arm-unknown-linux-uclibcgnueabi-cc'
-> `arm-unknown-linux-uclibcgnueabi-gcc'

[INFO ]  Installing final compiler: done in 294.83s (at 16:54)
[INFO ]  =================================================================
[INFO ]  Cleaning-up the toolchain's directory
[EXTRA]    Installing the populate helper
[EXTRA]    Installing a cross-ldd helper
[EXTRA]    Creating toolchain aliases
[ALL  ]    ln: creating symbolic link `arm-linux-addr2line': File exists
[ERROR]    
[ERROR]    >>  Build failed in step 'Cleaning-up the toolchain's directory'
[ERROR]    >>
[ERROR]    >>  Error happened in: CT_DoExecLog[scripts/functions]
[ERROR]    >>        called from: do_finish[scripts/build/internals.sh at 89]
[ERROR]    >>        called from: main[scripts/crosstool-NG.sh at 582]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      'docs/B - Known issues.txt'

[ERROR]
[ERROR] Build failed in step 'Cleaning-up the toolchain's directory'
[ERROR]
[ERROR] (elapsed: 16:53.29)
make[3]: *** [build] Error 1
make[2]: *** [build.2] Error 2
make[1]: *** [/opt/buildroot_real6410/output_fs2410/stamps/ct-ng-toolchain-built] Error 2
make: *** [all] Error 2

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

--- Comment #4 from Kelvin Cheung <[email protected]> --- (In reply to comment #3)

Quoted 30 lines

(In reply to comment #2)

Quoted 4 lines

Created attachment 3325 [details] [details]
Force symlink creation

Please, try applying this patch to crosstool-NG, and re-run.

After applying this patch, the error becomes:

[ALL ] make[4]: Leaving directory
`/opt/buildroot_real6410/output_fs2410/build/crosstool-ng-1.11.3/.build/arm-unknown-linux-uclibcgnueabi/build/build-cc' [ALL ]
`/opt/buildroot_real6410/output_fs2410/host/usr/bin/arm-unknown-linux-uclibcgnueabi-cc'
-> `arm-unknown-linux-uclibcgnueabi-gcc'

[INFO ]  Installing final compiler: done in 294.83s (at 16:54)
[INFO ]  =================================================================
[INFO ]  Cleaning-up the toolchain's directory
[EXTRA]    Installing the populate helper
[EXTRA]    Installing a cross-ldd helper
[EXTRA]    Creating toolchain aliases
[ALL  ]    ln: creating symbolic link `arm-linux-addr2line': File exists
[ERROR]    
[ERROR]    >>  Build failed in step 'Cleaning-up the toolchain's directory'
[ERROR]    >>
[ERROR]    >>  Error happened in: CT_DoExecLog[scripts/functions]
[ERROR]    >>        called from: do_finish[scripts/build/internals.sh at 89]
[ERROR]    >>        called from: main[scripts/crosstool-NG.sh at 582]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      'docs/B - Known issues.txt'
Quoted 9 lines

[ERROR]
[ERROR] Build failed in step 'Cleaning-up the toolchain's directory'
[ERROR]
[ERROR] (elapsed: 16:53.29)
make[3]: *** [build] Error 1
make[2]: *** [build.2] Error 2
make[1]: *** [/opt/buildroot_real6410/output_fs2410/stamps/ct-ng-toolchain-built] Error 2
make: *** [all] Error 2

After fixing this problem as your patch did, the compilation still failed as last:

[ALL ] /opt/buildroot_real6410/output_fs2410/host/usr/bin/arm-unknown-linux-uclibcgnueabi-cc' -> arm-unknown-linux-uclibcgnueabi-gcc'

[INFO ]  Installing final compiler: done in 314.20s (at 16:05)
[INFO ]  =================================================================
[INFO ]  Cleaning-up the toolchain's directory
[EXTRA]    Installing the populate helper
[EXTRA]    Installing a cross-ldd helper
[EXTRA]    Creating toolchain aliases
[ALL  ]    `arm-linux-addr2line' -> `arm-unknown-linux-uclibcgnueabi-addr2line'
[ALL  ]    `arm-linux-ar' -> `arm-unknown-linux-uclibcgnueabi-ar'
[ALL  ]    `arm-linux-as' -> `arm-unknown-linux-uclibcgnueabi-as'
[ALL  ]    `arm-linux-c++' -> `arm-unknown-linux-uclibcgnueabi-c++'
[ALL  ]    `arm-linux-c++filt' -> `arm-unknown-linux-uclibcgnueabi-c++filt'
[ALL  ]    `arm-linux-cc' -> `arm-unknown-linux-uclibcgnueabi-cc'
[ALL  ]    `arm-linux-cpp' -> `arm-unknown-linux-uclibcgnueabi-cpp'
[ALL  ]    `arm-linux-ct-ng.config' ->
`arm-unknown-linux-uclibcgnueabi-ct-ng.config'
[ALL  ]    `arm-linux-g++' -> `arm-unknown-linux-uclibcgnueabi-g++'
[ALL  ]    `arm-linux-gcc' -> `arm-unknown-linux-uclibcgnueabi-gcc'
[ALL  ]    `arm-linux-gcc-4.4.3' -> `arm-unknown-linux-uclibcgnueabi-gcc-4.4.3'
[ALL  ]    `arm-linux-gccbug' -> `arm-unknown-linux-uclibcgnueabi-gccbug'
[ALL  ]    `arm-linux-gcov' -> `arm-unknown-linux-uclibcgnueabi-gcov'
[ALL  ]    `arm-linux-gprof' -> `arm-unknown-linux-uclibcgnueabi-gprof'
[ALL  ]    `arm-linux-ld' -> `arm-unknown-linux-uclibcgnueabi-ld'
[ALL  ]    `arm-linux-ldd' -> `arm-unknown-linux-uclibcgnueabi-ldd'
[ALL  ]    `arm-linux-nm' -> `arm-unknown-linux-uclibcgnueabi-nm'
[ALL  ]    `arm-linux-objcopy' -> `arm-unknown-linux-uclibcgnueabi-objcopy'
[ALL  ]    `arm-linux-objdump' -> `arm-unknown-linux-uclibcgnueabi-objdump'
[ALL  ]    `arm-linux-populate' -> `arm-unknown-linux-uclibcgnueabi-populate'
[ALL  ]    `arm-linux-ranlib' -> `arm-unknown-linux-uclibcgnueabi-ranlib'
[ALL  ]    `arm-linux-readelf' -> `arm-unknown-linux-uclibcgnueabi-readelf'
[ALL  ]    `arm-linux-size' -> `arm-unknown-linux-uclibcgnueabi-size'
[ALL  ]    `arm-linux-sstrip' -> `arm-unknown-linux-uclibcgnueabi-sstrip'
[ALL  ]    `arm-linux-strings' -> `arm-unknown-linux-uclibcgnueabi-strings'
[ALL  ]    `arm-linux-strip' -> `arm-unknown-linux-uclibcgnueabi-strip'
[EXTRA]    Removing access to the build system tools
[EXTRA]    Removing installed documentation
[INFO ]  Cleaning-up the toolchain's directory: done in 1.35s (at 16:06)
[INFO ]  Build completed at 20110527.124433
[INFO ]  (elapsed: 16:05.58)
[INFO ]  Finishing installation (may take a few seconds)...
[ERROR]    
[ERROR]    >>
[ERROR]    >>  Error happened in: main[scripts/crosstool-NG.sh]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      'docs/B - Known issues.txt'

[ERROR]
[ERROR] Build failed in step 'Cleaning-up the toolchain's directory'
[ERROR]
[ERROR] (elapsed: 16:06.08)
make[3]: *** [build] Error 1
make[2]: *** [build.2] Error 2
make[1]: *** [/opt/buildroot_real6410/output_fs2410/stamps/ct-ng-toolchain-built] Error 2
make: *** [all] Error 2

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Yann E. MORIN <[email protected]> --- We believe this bug was solved as a side effect of:

http://git.buildroot.org/buildroot/commit/?id=ea23f34e25839a9559c3bb61cc5d9f54c89e137b

Please, give it a try, and re-open if it still fails for you.

Thank you!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

--- Comment #6 from Kelvin Cheung <[email protected]> --- (In reply to comment #5)

Quoted 7 lines

We believe this bug was solved as a side effect of:

http://git.buildroot.org/buildroot/commit/?id=ea23f34e25839a9559c3bb61cc5d9f54c89e137b

Please, give it a try, and re-open if it still fails for you.

Thank you!

It works this time.
But the following build of busybox is failed.
The error messages are as follows:
==========
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xd8): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead. util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xcc): warning: gethostbyname is obsolescent, use getnameinfo() instead.
miscutils/lib.a(watchdog.o): In function `watchdog_main':
watchdog.c:(.text.watchdog_main+0xfc): undefined reference to usleep' networking/lib.a(ifupdown.o): In function dhcp_down':
ifupdown.c:(.text.dhcp_down+0x24): undefined reference to usleep' networking/lib.a(traceroute.o): In function traceroute_main':
traceroute.c:(.text.traceroute_main+0x434): undefined reference to usleep' procps/lib.a(top.o): In function top_main':
top.c:(.text.top_main+0x21c): undefined reference to usleep' util-linux/lib.a(mdev.o): In function mdev_main':
mdev.c:(.text.mdev_main+0x194): undefined reference to usleep' coreutils/lib.a(usleep.o):usleep.c:(.text.usleep_main+0x18): more undefined references to usleep' follow
collect2: ld returned 1 exit status
make[2]: *** [busybox_unstripped] Error 1
make[1]: *** [/opt/buildroot/output_hi3520/build/busybox-1.18.5/.stamp_built] Error 2
make: *** [all] Error 2

Then, I use arm-linux-readelf to check whether 'libuClibc-0.9.31.so' contains the symbol 'usleep'. And the answer is negative.

Why 'usleep.c' was not compiled?

BTW, erverything is ok when uClibc-0.9.30.3 was used.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 3781] crosstool-ng-1.11.3 fails to build

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=3781

--- Comment #7 from Peter Korsgaard <[email protected]> --- (In reply to comment #6)

Quoted 6 lines

Then, I use arm-linux-readelf to check whether 'libuClibc-0.9.31.so' contains the symbol 'usleep'. And the answer is negative.

Why 'usleep.c' was not compiled?

BTW, erverything is ok when uClibc-0.9.30.3 was used.

You need to ensure that UCLIBC_SUSV3_LEGACY=y is set in your uclibc configuration, otherwise uClibc isn't built with usleep support.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.