Subject: toolchain/28602: libiberty fails to crossbuild
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <emil.skoldberg@nuigalway.ie>
List: netbsd-bugs
Date: 12/10/2004 17:57:00
>Number: 28602
>Category: toolchain
>Synopsis: libiberty fails to crossbuild
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 10 17:57:00 +0000 2004
>Originator: Emil Sköldberg
>Release:
>Organization:
>Environment:
Linux matstaff04 2.6.8.1 #8 Sat Dec 4 22:24:41 GMT 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
>Description:
when building -current i386 on a linux box, (clean src, obj and tools directories), the build fails in libiberty:
./build.sh -m i386 -T ../tools -O ../obj -U -u build
[...]
# compile libiberty/./cp-demangle.o
/var/nfs/netbsd.test/src/../tools/bin/i386--netbsdelf-gcc -O2 -Werror -DHAVE_CONFIG_H -I/var/nfs/netbsd.test/src/gnu/lib/libiberty -I/var/nfs/netbsd.test/src/gnu/dist/binutils/include -nostdinc -isystem /var/nfs/netbsd.test/src/../obj/destdir.i386/usr/include -c /var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c -o ./cp-demangle.o.tmp
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `d_print_resize':
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c:2656: warning: assignment makes pointer from integer without a cast
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `cplus_demangle_print':
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c:2743: warning: assignment makes pointer from integer without a cast
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c: In function `d_demangle':
/var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c:3807: warning: assignment makes pointer from integer without a cast
*** Failed target: ./cp-demangle.o
*** Failed command: /var/nfs/netbsd.test/src/../tools/bin/i386--netbsdelf-gcc -O2 -Werror -DHAVE_CONFIG_H -I/var/nfs/netbsd.test/src/gnu/lib/libiberty -I/var/nfs/netbsd.test/src/gnu/dist/binutils/include -nostdinc -isystem /var/nfs/netbsd.test/src/../obj/destdir.i386/usr/include -c /var/nfs/netbsd.test/src/gnu/dist/binutils/libiberty/cp-demangle.c -o ./cp-demangle.o.tmp
*** Error code 1
Stop.
nbmake: stopped in /var/nfs/netbsd.test/src/gnu/lib/libiberty
*** Failed target: dependall
*** Failed command: cd /var/nfs/netbsd.test/src/gnu/lib/libiberty; /var/nfs/netbsd.test/src/../tools/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /var/nfs/netbsd.test/src/gnu/lib/libiberty
*** Failed target: dependall-libiberty
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="gnu/lib/"; real="/var/nfs/netbsd.test/src/gnu/lib" ;; *) this="gnu/lib/${dir}/"; real="/var/nfs/netbsd.test/src/gnu/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /var/nfs/netbsd.test/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget libiberty dependall
*** Error code 1
Stop.
nbmake: stopped in /var/nfs/netbsd.test/src/gnu/lib
*** Failed target: do-gnu-lib
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/var/nfs/netbsd.test/src" ;; *) this="${dir}/"; real="/var/nfs/netbsd.test/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /var/nfs/netbsd.test/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gnu/lib dependall
*** Error code 1
Stop.
nbmake: stopped in /var/nfs/netbsd.test/src
*** Failed target: build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/var/nfs/netbsd.test/src" ;; *) this="${dir}/"; real="/var/nfs/netbsd.test/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /var/nfs/netbsd.test/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-gnu-lib
*** Error code 1
Stop.
nbmake: stopped in /var/nfs/netbsd.test/src
ERROR: Failed to make build
*** BUILD ABORTED ***
>How-To-Repeat:
>Fix: