Problem with crt1.o and init tls

From: Johan Kuuse - Red Antigua <kuuse_at_redantigua.com>
Date: Fri, 21 Jan 2005 10:01:52 -0600
Hi,

I'm trying to upgrade from 5.2.1 to 6.0 current.

# make buildworld
# make buildkernel
# make installkernel
# reboot

all went fine.

uname -a now shows
FreeBSD 6.0-CURRENT ...

With
# mergemaster -p
# make installworld
the problems started.
When I try to start over again with

# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
# cd /usr/src
# make cleandir -DALWAYS_CHECK_MAKE

(as indicated at the bottom of
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
19.4.16.6. What do I do if something goes wrong?)

'make cleandir' casues the following error message:
/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/usr.bin/make
*** Error code 1

Stop in /usr/src
*** Error code 1

Stop in /usr/src


If I try
# make buildworld
the error message is the same (undefined reference to '_init_tls')

If I omit the flag -DALWAYS_CHECK_MAKE the error message from 'make
cleandir' is:

+for: not found
*** Error code 127

Stop in /usr/src
*** Error 1

Stop in /usr/src


I would be really grateful if someone could give a hint.

Best Regards,
Johan Kuuse
kuuse_at_redantigua.com
Received on Fri Jan 21 2005 - 15:01:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC