Can't build STABLE from 5.2.1

Ruslan Ermilov ru at ip.net.ua
Wed Nov 17 23:34:24 PST 2004


On Thu, Nov 18, 2004 at 12:26:15AM -0600, Lars Eighner wrote:
> I cannot seem to build STABLE.
> 
> 
> This is the output of uname -a
> 
> FreeBSD goodwill.io.com 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #0:
> Mon Mar 29 00:37:36 CST 2004
> toor at goodwill.io.com:/usr/obj/usr/src/sys/GENERIC i386
> 
> 
> Here is what happens when I try to buildworld.
> 
> I have completely ripped out /usr/src and re-cvsupped several
> times.
> 
The problem is not with your /usr/src, but with an installed
bits.

> --------------------------------------------------------------
> >>> stage 1.2: bootstrap tools
> --------------------------------------------------------------
> cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386  INSTALL="sh /usr/src/tools/install.sh"  PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/i386  MAKEFLAGS="-m /usr/src/tools/build/mk  -m /usr/src/share/mk" /usr/obj/usr/src/make.i386/make -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=0  -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE  -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS bootstrap-tools
> ===> games/fortune/strfile
> /usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile
> rm -f .depend
> mkdep -f .depend -a    -D__FBSDID=__RCSID -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c
> echo strfile: /usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend
> cc -O -pipe  -D__FBSDID=__RCSID -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c
> cc -O -pipe  -D__FBSDID=__RCSID -I/usr/obj/usr/src/i386/legacy/usr/include  -static -L/usr/obj/usr/src/i386/legacy/usr/lib -o strfile strfile.o -legacy
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x64): undefined reference to `_init_tls'
> *** Error code 1
> 
> Stop in /usr/src/games/fortune/strfile.
> *** Error code 1

Bootstrap tools are built using the host (installed) tools
(compiler, binutils, headers, libraries).  It may be that
you somehow updated your /usr/lib/crt1.o without updating
libc.  Either do a binary upgrade, or recover the contents
of /usr/lib from 5.2.1 and try again.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer


More information about the freebsd-stable mailing list