Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Mar 2012 01:03:04 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Toolchain FreeBSD <freebsd-toolchain@freebsd.org>,  freebsd-current@freebsd.org
Subject:   undefined reference to `_ThreadRuneLocale': make buildkernel and make buildworld broken
Message-ID:  <4F5402B8.9030000@zedat.fu-berlin.de>
In-Reply-To: <4F53FD57.303@zedat.fu-berlin.de>
References:  <4F536D41.1030302@zedat.fu-berlin.de> <201203041628.q24GS12l088270@pozo.com> <201203041751.02531.ken@mthelicon.com> <4F53D1D3.2010607@zedat.fu-berlin.de> <4F53E2C3.7090102@FreeBSD.org> <4F53FD57.303@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig98CF7CBF39D5A43E3DEBCE4C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

This is what I get when trying to build a kernel from sources at
revision 232526 and system at revision:  10.0-CURRENT #0 r232497: Sun
Mar  4 16:35:35 CET 2012.

It is impossible to do even a simple

make installincludes

this breaks with:

=3D=3D=3D> kerberos5 (installincludes)
=3D=3D=3D> kerberos5/doc (installincludes)
=3D=3D=3D> kerberos5/lib (installincludes)
=3D=3D=3D> kerberos5/lib/libasn1 (installincludes)
cd /usr/src/kerberos5/lib/libasn1/../../tools/asn1_compile && make
Warning: Object directory not changed from original
/usr/src/kerberos5/tools/asn1_compile
cd /usr/src/kerberos5/tools/asn1_compile/../make-print-version && make
Warning: Object directory not changed from original
/usr/src/kerberos5/tools/make-print-version
cd /usr/src/kerberos5/tools/asn1_compile/../make-roken && make
Warning: Object directory not changed from original
/usr/src/kerberos5/tools/make-roken
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -march=3Dnative
-I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken=
 -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1=

-I. -DHAVE_CONFIG_H
-I/usr/src/kerberos5/tools/asn1_compile/../../include -std=3Dgnu99
-fstack-protector   -o asn1_compile gen.o gen_copy.o gen_decode.o
gen_encode.o gen_free.o gen_glue-fixed.o gen_length.o gen_seq.o hash.o
ecalloc.o emalloc.o estrdup.o main.o symbol.o getarg.o warnerr.o lex.o
parse.o print_version.o get_window_size.o strupr.o
clang: warning: argument unused during compilation: '-std=3Dgnu99'
hash.o: In function `hashcaseadd':
/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/ha=
sh.c:(.text+0x3bb):
undefined reference to `_ThreadRuneLocale'
lex.o: In function `yylex':
lex.c:(.text+0xb94): undefined reference to `_ThreadRuneLocale'
lex.c:(.text+0xcfa): undefined reference to `_ThreadRuneLocale'
strupr.o: In function `strupr':
/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/s=
trupr.c:(.text+0x1e):
undefined reference to `_ThreadRuneLocale'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [asn1_compile] Error code 1

Stop in /usr/src/kerberos5/tools/asn1_compile.
*** [../../tools/asn1_compile/asn1_compile] Error code 1

Stop in /usr/src/kerberos5/lib/libasn1.
*** [installincludes] Error code 1

Stop in /usr/src/kerberos5/lib.
*** [installincludes] Error code 1

Stop in /usr/src/kerberos5.
*** [installincludes] Error code 1

Stop in /usr/src.
*** [installincludes] Error code 1


A "make buildkernel" terminates with the below shown error message. It
seems some CLANG/CC struggles inbetween terminated my system in a very
bad way!

So, what causes the error, what is `_ThreadRuneLocale' supposed to be?


Regards,
Oliver
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/THOR;
PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/u=
sr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bi=
n
 MAKESRCPATH=3D/usr/src/sys/dev/aic7xxx/aicasm  make SSP_CFLAGS=3D
-DNO_CPU_CFLAGS -DNO_CTF  -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original
/usr/obj/usr/src/sys/THOR
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c aicasm_gram.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c aicasm_macro_gram.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c aicasm_scan.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign -c aicasm_macro_scan.c
clang -O2 -pipe -pipe -O3 -fno-strict-aliasing -nostdinc -I/usr/include
-I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99  -Wsystem-headers -Wal=
l
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wno-pointer-sign  -o aicasm aicasm.o aicasm_symbol.o aicasm_gram.o
aicasm_macro_gram.o aicasm_scan.o aicasm_macro_scan.o -ll
clang: warning: argument unused during compilation: '-nostdinc'
clang: warning: argument unused during compilation: '-std=3Dgnu99'
aicasm.o: In function `main':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm.c:(.text+0x91f): undefined
reference to `_ThreadRuneLocale'
aicasm_symbol.o: In function `symtable_dump':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:(.text+0x7c4): undefined
reference to `_ThreadRuneLocale'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [aicasm] Error code 1


--------------enig98CF7CBF39D5A43E3DEBCE4C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBAgAGBQJPVAK+AAoJEOgBcD7A/5N8OssH/jxzqEetOpC4OI9xQV/lQ2xk
k0FMR9K7rS/jqqtwJv0QYpFJF+yw05ZWkOdVlwWSu8XmSMjIRjid3TWX6RxDGLS0
C2x66UFygSw1Ze5K5AfJMKUA7GHYvzs92pz/UxEGNdFYIvRaZXGLKg6IYaFAQ+aM
oMWSMNY7EpC0PuERxEzKVqXnlE4KJfdkBLsaIXliK+oeyZ9E7ctejWYidfvNwxlX
gKtQkHyruQUgcjUWdNhY/PTfEDUvnNi0JIM5zrsRVQmAlbAa9llb6MkJxHTbyJCJ
MmDuZShVs9kEgqXDurFs7+Lcfvy1Es1KXN2tUw2AkQZFmFSfwgQpbjntbEILLho=
=R0Q6
-----END PGP SIGNATURE-----

--------------enig98CF7CBF39D5A43E3DEBCE4C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F5402B8.9030000>