Subject: toolchain/25254: gcc3's backend configure script assumes tools in $PATH
To: None <gnats-bugs@gnats.netbsd.org>
From: None <he@netbsd.org>
List: netbsd-bugs
Date: 04/20/2004 11:58:06
>Number:         25254
>Category:       toolchain
>Synopsis:       gcc3's backend configure script assumes tools in $PATH
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 20 09:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Havard Eidnes
>Release:        NetBSD 2.0C
>Organization:
>Environment:
System: NetBSD stegg.urc.uninett.no 1.6ZK NetBSD 1.6ZK (STEGG.MP) #3: Fri Feb 20 02:22:55 CET 2004  he@stegg.urc.uninett.no:/usr/obj/sys/arch/i386/compile.i386/STEGG.MP i386
Architecture: i386
Machine: i386
>Description:
	Host system is 1.6ZK/i386, target is 2.0C/pmppc.

	Briefly looking at a scrolling build log for a powerpc-based
	port I had not cross-built yet, I saw the attached error
	messages scroll by while gcc3's backend configure script was
	running.  Surely, this can't be healthy for the result?

	Apparently the configure script assumes that the tools should
	be in $PATH, which doesn't appear to be the case.  They are in
	my $TOOLDIR, though.

dependall ===> gnu/usr.bin/gcc3/backend
     create  backend/auto-build.h
creating cache ./config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
...
Using `/usr/users/he/src/gnu/dist/gcc/gcc/config/rs6000/rs6000.c' for machine-specific logic.
Using `/usr/users/he/src/gnu/dist/gcc/gcc/config/rs6000/rs6000.md' as machine description file.
Using the following target machine macro files:
        /usr/users/he/src/gnu/dist/gcc/gcc/config/rs6000/rs6000.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/dbxelf.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/elfos.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/netbsd.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/netbsd-elf.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/freebsd-spec.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/rs6000/sysv4.h
        /usr/users/he/src/gnu/dist/gcc/gcc/config/rs6000/netbsd.h
checking for library containing strerror... none required
checking for working const... yes
checking for off_t... yes
...
checking for bison... bison
checking version of bison... 1.875, ok
checking for catalogs to be installed...  be ca da de el es fr ja nl sv tr be ca da de el es fr ja nl sv tr
checking what assembler to use... powerpc--netbsd-as
checking what linker to use... powerpc--netbsd-ld
checking what nm to use... powerpc--netbsd-nm
checking what objdump to use... powerpc--netbsd-objdump
checking assembler alignment features... powerpc--netbsd-as: not found
powerpc--netbsd-as: not found
none
checking assembler subsection support... powerpc--netbsd-as: not found
no
checking assembler weak support... powerpc--netbsd-as: not found
no
checking assembler hidden support... powerpc--netbsd-as: not found
powerpc--netbsd-ld: not found
no
checking assembler leb128 support... powerpc--netbsd-as: not found
no
checking assembler eh_frame optimization... powerpc--netbsd-as: not found
no
checking assembler section merging support... powerpc--netbsd-as: not found
no
checking assembler thread-local storage support... no
checking assembler dwarf2 debug_line support... powerpc--netbsd-as: not found
no
checking assembler --gdwarf2 support... powerpc--netbsd-as: not found
no
checking assembler --gstabs support... powerpc--netbsd-as: not found
no
checking linker read-only and read-write section mixing... powerpc--netbsd-as: not found
unknown
checking linker PT_GNU_EH_FRAME support... powerpc--netbsd-ld: not found
no
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
Links are now set up to build a cross-compiler for powerpc--netbsd
  from i386-unknown-netbsdelf1.6ZK.
updating cache ./config.cache
creating ./config.status
...

stegg# ls /usr/tools/bin/powerpc-*
/usr/tools/bin/powerpc--netbsd-addr2line
/usr/tools/bin/powerpc--netbsd-ar
/usr/tools/bin/powerpc--netbsd-as
/usr/tools/bin/powerpc--netbsd-c++
/usr/tools/bin/powerpc--netbsd-c++filt
/usr/tools/bin/powerpc--netbsd-cpp
/usr/tools/bin/powerpc--netbsd-dbsym
/usr/tools/bin/powerpc--netbsd-g++
/usr/tools/bin/powerpc--netbsd-g77
/usr/tools/bin/powerpc--netbsd-gcc
/usr/tools/bin/powerpc--netbsd-gcc-3.3.1
/usr/tools/bin/powerpc--netbsd-gcc-3.3.2
/usr/tools/bin/powerpc--netbsd-gcc-3.3.2-nb1
/usr/tools/bin/powerpc--netbsd-gcc-3.3.3
/usr/tools/bin/powerpc--netbsd-gccbug
/usr/tools/bin/powerpc--netbsd-gcov
/usr/tools/bin/powerpc--netbsd-ld
/usr/tools/bin/powerpc--netbsd-lint
/usr/tools/bin/powerpc--netbsd-mdsetimage
/usr/tools/bin/powerpc--netbsd-nm
/usr/tools/bin/powerpc--netbsd-objcopy
/usr/tools/bin/powerpc--netbsd-objdump
/usr/tools/bin/powerpc--netbsd-ranlib
/usr/tools/bin/powerpc--netbsd-readelf
/usr/tools/bin/powerpc--netbsd-size
/usr/tools/bin/powerpc--netbsd-strings
/usr/tools/bin/powerpc--netbsd-strip
stegg# 
stegg# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
stegg# 



>How-To-Repeat:
	Try to build for e.g. pmppc, inspect build log.

>Fix:
	Sorry, none supplied.
>Release-Note:
>Audit-Trail:
>Unformatted: