Subject: bin/27227: gcc build problem
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dokas@cs.umn.edu>
List: netbsd-bugs
Date: 10/11/2004 13:37:22
>Number:         27227
>Category:       bin
>Synopsis:       gcc build problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 11 19:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Paul Dokas
>Release:        NetBSD 2.0H
>Organization:
University of Minnesota, Dept of Computer Science
>Environment:
System: NetBSD cdward.cs.umn.edu 2.0H NetBSD 2.0H (CDWARD) #4: Thu Sep 23 13:32:34 CDT 2004 root@cdward.cs.umn.edu:/usr/obj/sys/arch/i386/compile/CDWARD i386
Architecture: i386
Machine: i386
>Description:

  I did this:

    cd /usr/src
    ./build.sh -T /usr/tools -O /usr/obj tools

  and got this:

cc -c -DIN_GCC -DHAVE_CONFIG_H -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -DNETBSD_TOOLS  -I. -I.. -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/..  -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../config -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../../include /usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/fixlib.c
cc -DIN_GCC -DHAVE_CONFIG_H -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -DNETBSD_TOOLS  -I. -I.. -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/..  -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../config -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../../include  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o  gnu-regex.o fixlib.o 
fixincl.o(.text+0x7b): In function `main':
: undefined reference to `_sch_istable'
fixincl.o(.text+0x83): In function `main':
: undefined reference to `_sch_istable'
fixincl.o(.text+0xf9): In function `main':
: undefined reference to `_sch_istable'
fixincl.o(.text+0x101): In function `main':
: undefined reference to `_sch_istable'
fixincl.o(.text+0x1b0): In function `initialize':
: undefined reference to `xmalloc_set_program_name'
fixincl.o(.text+0x214): In function `initialize':
: undefined reference to `xstrerror'
fixincl.o(.text+0x36f): In function `initialize':
: undefined reference to `_sch_istable'
fixincl.o(.text+0x4bd): In function `load_file':
: undefined reference to `xstrerror'
fixincl.o(.text+0x532): In function `load_file':
: undefined reference to `xstrerror'
fixincl.o(.text+0x719): In function `run_compiles':
: undefined reference to `xmalloc'
fixincl.o(.text+0x8e8): In function `create_file':
: undefined reference to `xstrerror'
fixincl.o(.text+0xa50): In function `quoted_file_exists':
: undefined reference to `_sch_istable'
fixincl.o(.text+0xca8): In function `internal_fix':
: undefined reference to `xstrerror'
fixincl.o(.text+0xe1b): In function `start_fixer':
: undefined reference to `xmalloc'
fixincl.o(.text+0xe81): In function `start_fixer':
: undefined reference to `xstrerror'
fixincl.o(.text+0x11c9): In function `process':
: undefined reference to `xstrerror'
fixincl.o(.text+0x12e2): In function `process':
: undefined reference to `xstrerror'
fixfixes.o(.text+0x48): In function `emit_gnu_type':
: undefined reference to `_sch_toupper'
fixfixes.o(.text+0xdb): In function `format_write':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x351): In function `char_macro_use_fix':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x37d): In function `char_macro_use_fix':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x567): In function `char_macro_def_fix':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x57d): In function `char_macro_def_fix':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x589): more undefined references to `_sch_istable' follow
fixfixes.o(.text+0x730): In function `wrap_fix':
: undefined reference to `xmalloc'
fixfixes.o(.text+0x74d): In function `wrap_fix':
: undefined reference to `_sch_istable'
fixfixes.o(.text+0x76a): In function `wrap_fix':
: undefined reference to `_sch_toupper'
server.o(.text+0x26): In function `load_data':
: undefined reference to `xmalloc'
server.o(.text+0xda): In function `load_data':
: undefined reference to `xrealloc'
server.o(.text+0x13f): In function `load_data':
: undefined reference to `_sch_istable'
server.o(.text+0x147): In function `load_data':
: undefined reference to `_sch_istable'
server.o(.text+0x17e): In function `load_data':
: undefined reference to `xrealloc'
server.o(.text+0x372): In function `run_shell':
: undefined reference to `xcalloc'
server.o(.text+0x3bb): In function `run_shell':
: undefined reference to `xcalloc'
procopen.o(.text+0x11d): In function `chain_open':
: undefined reference to `xstrerror'
gnu-regex.o(.text+0x1069): In function `regex_compile':
: undefined reference to `_sch_istable'
gnu-regex.o(.text+0x19d7): In function `regex_compile':
: undefined reference to `_sch_istable'
gnu-regex.o(.text+0x19df): In function `regex_compile':
: undefined reference to `_sch_istable'
gnu-regex.o(.text+0x1a61): In function `regex_compile':
: undefined reference to `_sch_istable'
gnu-regex.o(.text+0x1a69): In function `regex_compile':
: undefined reference to `_sch_istable'
gnu-regex.o(.text+0x518d): In function `regcomp':
: undefined reference to `_sch_tolower'
fixlib.o(.text+0x44): In function `load_file_data':
: undefined reference to `xrealloc'
fixlib.o(.text+0x83): In function `load_file_data':
: undefined reference to `xstrerror'
fixlib.o(.text+0xc9): In function `load_file_data':
: undefined reference to `xrealloc'

*** Failed target:  full-stamp
*** Failed command: cc -DIN_GCC -DHAVE_CONFIG_H -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -DNETBSD_TOOLS -I. -I.. -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/.. -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../config -I/usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc/../../include -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o gnu-regex.o fixlib.o 
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/tools/gcc/build/gcc/fixinc

*** Failed target:  fixinc.sh
*** Failed command: (SHELL="/bin/sh"; MAKE="/usr/tools/bin/nbmake -f /usr/src/tools/gcc/../Makefile.gnuwrap"; srcdir=`cd /usr/src/tools/gcc/../../gnu/dist/gcc/gcc/fixinc && ${PWDCMD-pwd}` ; CC="cc"; CFLAGS=" -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS=""; WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long "; LIBERTY=`pwd`/"../libiberty/libiberty.a"; export SHELL MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; cd ./fixinc && /bin/sh ${srcdir}/mkfixinc.sh i386-unknown-netbsdelf2.99.9 i386--netbsdelf)
*** Error code 1


>How-To-Repeat:

  cvs update to -current and attempt to build tools

>Fix:

  Sorry.  I don't have a fix yet.
>Release-Note:
>Audit-Trail:
>Unformatted: