Subject: Re: 1.5.2 <-> -current upgrade issues
To: Ben Harris <bjh21@netbsd.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: current-users
Date: 07/03/2002 16:47:43
Ben Harris <bjh21@netbsd.org> wrote:
 
> Can you tell me:
>   In which directory the build failed.

cc -c -DCROSS_COMPILE -DIN_GCC    -O   -DHAVE_CONFIG_H    -I.
-I/src/tools/toolchain/../../gnu/dist/toolchain/gcc
-I/src/tools/toolchain/../../gnu/dist/toolchain/gcc/config
-I/src/tools/toolchain/../../gnu/dist/toolchain/gcc/../include
/src/tools/toolchain/../../gnu/dist/toolchain/gcc/c-iterate.c
cc -DCROSS_COMPILE -DIN_GCC    -O   -DHAVE_CONFIG_H  -o cc1 [...]
toplev.o: In function `get_run_time':
toplev.o(.text+0x92): undefined reference to `__times13'
collect2: ld returned 1 exit status
*** Error code 1

>   The results of "ls -l /usr/lib/libc.*".

ls -l /usr/lib/libc.*

-r--r--r--  1 root  wheel  1347144 Jun 30 20:59 /usr/lib/libc.a
lrwxr-xr-x  1 root  wheel       13 Jun 30 20:59 /usr/lib/libc.so@ ->
libc.so.12.84
lrwxr-xr-x  1 root  wheel       13 Jul  3 04:17 /usr/lib/libc.so.12@ ->
libc.so.12.83
-r--r--r--  1 root  wheel   616052 Aug 23  2001 /usr/lib/libc.so.12.62.1
-r--r--r--  1 root  wheel   699723 Jul  3 04:17 /usr/lib/libc.so.12.83
-r--r--r--  1 root  wheel   700998 Jun 30 20:59 /usr/lib/libc.so.12.84

FWIW, I have the following in /etc/mk.conf:
OBJMACHINE=yes
MKOBJDIRS=yes
USETOOLS=yes
USE_NEW_TOOLCHAIN=yes
TOOLDIR=/var/tmp/tools


> >Various attempts to completely clear out the source-tree, checking a
> >fresh one out and various combinations of DESTDIR, TOOLDIR etc. all
> >yield the same result.
> >
> >Somebody suggested that somehow I managed to hose my system, so
> >downloaded base.tgz from releng.netbsd.org to bring back the lib's and
> >headers that ought to work.  Nonetheless, same error.
> 
> You'll need comp.tgz to get the headers and link-time libraries.

Ah, I'll try that.  Thanks a lot.

-Jan

-- 
http://www.ncadp.org