undefined reference to `_ThreadRuneLocale': make buildkernel and make buildworld broken

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Mon, 05 Mar 2012 01:03:04 +0100
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:

===> kerberos5 (installincludes)
===> kerberos5/doc (installincludes)
===> kerberos5/lib (installincludes)
===> 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=native
-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=gnu99
-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=gnu99'
hash.o: In function `hashcaseadd':
/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/hash.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/strupr.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=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm  make SSP_CFLAGS=
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99  -Wsystem-headers -Wall
-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=gnu99'
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


Received on Sun Mar 04 2012 - 23:03:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC