Re: build failures after stdlib update

From: Alexander Best <alexbestms_at_wwu.de>
Date: Tue, 16 Mar 2010 12:15:47 +0100 (CET)
hi there,

i'm having similar issues with libc. while doing buildworld i got this
segfault:

>>> stage 4.2: building libraries
--------------------------------------------------------------
cd /usr/src;  MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=amd64  MACHINE=amd64
CPUTYPE=native  GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac
_SHLIBDIRPREFIX=/usr/obj/usr/src/tmp  VERSION="FreeBSD 9.0-CURRENT amd64
900009"  INSTALL="sh /usr/src/tools/install.sh"
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:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
NO_CTF=1 /usr/obj/usr/src/make.amd64/make -f Makefile.inc1
DESTDIR=/usr/obj/usr/src/tmp -DNO_FSCHG -DWITHOUT_HTML -DWITHOUT_INFO
-DNO_LINT  -DWITHOUT_MAN -DWITHOUT_PROFILE libraries
cd /usr/src;  /usr/obj/usr/src/make.amd64/make -f Makefile.inc1 _prereq_libs;
/usr/obj/usr/src/make.amd64/make -f Makefile.inc1 _startup_libs;
/usr/obj/usr/src/make.amd64/make -f Makefile.inc1 _prebuild_libs;
/usr/obj/usr/src/make.amd64/make -f Makefile.inc1 _generic_libs;
===> gnu/lib/libssp/libssp_nonshared (obj,depend,all,install)
rm -f .depend
mkdep -f .depend -a    -DHAVE_CONFIG_H
-I/usr/src/gnu/lib/libssp/libssp_nonshared/..
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include
-DPIC
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c
cc -O2 -fno-strict-aliasing -fno-builtin -pipe -march=native -DHAVE_CONFIG_H
-I/usr/src/gnu/lib/libssp/libssp_nonshared/..
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include
-fPIC -DPIC -fvisibility=hidden -g -std=gnu99 -fstack-protector  -c
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c
*** Signal 11

Stop in /usr/src/gnu/lib/libssp/libssp_nonshared.
*** Error code 1

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

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

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

Stop in /usr/src.

i'm not sure if the gdb command i used is correct, since i found two versions
of `cc` in /usr/obj:

find ./ -type f -name cc
./usr/src/tmp/usr/bin/cc
./usr/src/tmp/usr/src/gnu/usr.bin/cc/cc/cc

i've used gdb /usr/obj/usr/src/tmp/usr/bin/cc
/usr/obj/usr/src/gnu/lib/libssp/libssp_nonshared/cc.core to get a backtrace.
hope i picked the right version:

Program terminated with signal 11, Segmentation fault.
#0  strlen (str=Variable "str" is not available.
) at /usr/src/lib/libc/string/strlen.c:93
93                  if ((*lp - mask01) & mask80) {
(gdb) bt
#0  strlen (str=Variable "str" is not available.
) at /usr/src/lib/libc/string/strlen.c:93
#1  0x0000000000415681 in concat (first=0x4408d3 "-m") at
/usr/src/gnu/usr.bin/cc/libiberty/../../../../contrib/gcclibs/libiberty/concat.c:76
#2  0x0000000000404d07 in do_spec_1 (spec=0x8008b20e0 "%<march=native
%:local_cpu_detect(arch)   %{!mtune=*:%<mtune=native
%:local_cpu_detect(tune)}", inswitch=0, soft_matched_part=0x0) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5520
#3  0x000000000040580a in handle_braces (p=0x443d6b "}
%{mtune=native:%<mtune=native %:local_cpu_detect(tune)}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#4  0x0000000000403fc4 in do_spec_1 (spec=0x443a48 "%{!mtune*:
%{m386:mtune=i386 %n`-m386' is deprecated. Use `-march=i386' or `-mtune=i386'
instead.\n} %{m486:-mtune=i486 %n`-m486' is deprecated. Use `-march=i486' or
`-mtune=i486' instead.\n} %{mpentium"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#5  0x0000000000404f6a in do_spec_1 (spec=0x440e2a "%(cc1_cpu) %{profile:-p}",
inswitch=0, soft_matched_part=0x0) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5373
#6  0x0000000000404694 in do_spec_1 (spec=0x444460
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}
%1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip
%*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5193
#7  0x0000000000404f6a in do_spec_1 (spec=0x8008721c0 "\t\tcc1
%(cpp_unique_options) %(cc1_options)", inswitch=0, soft_matched_part=0x0) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5373
#8  0x000000000040580a in handle_braces (p=0x80080818f "}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#9  0x0000000000403fc4 in do_spec_1 (spec=0x800808150
"%{!no-integrated-cpp:\t\tcc1 %(cpp_unique_options) %(cc1_options)}",
inswitch=0, soft_matched_part=0x0) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#10 0x000000000040580a in handle_braces (p=0x8008b20d3 "}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#11 0x0000000000403fc4 in do_spec_1 (spec=0x8008b2080
"%{!traditional-cpp:%{!no-integrated-cpp:\t\tcc1 %(cpp_unique_options)
%(cc1_options)}}", inswitch=0, soft_matched_part=0x0) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#12 0x000000000040580a in handle_braces (p=0x8008ac2b9 "}
%{!fsyntax-only:%(invoke_as)}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#13 0x0000000000403fc4 in do_spec_1 (spec=0x8008ac180 "\t
%{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp)
\t\t%(cpp_options) -o %{save-temps:%b.i} %{!save-temps:%g.i} \n\t\t    cc1
-fpreprocessed %{save-temps:%b.i} %{!save-temps:%g.i} \t\t\t%(c"...,
    inswitch=0, soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#14 0x000000000040580a in handle_braces (p=0x800875dcb "}       %{combine:\t
%{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp)
\t\t%(cpp_options) -o %{save-temps:%b.i} %{!save-temps:%g.i}}\t
%{!save-temps:%{!traditional-cpp:%{!no-integrated-"...)
    at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#15 0x0000000000403fc4 in do_spec_1 (spec=0x800875c00 "
%{traditional|ftraditional:%eGNU C no longer supports -traditional without -E}
%{!combine:\t
%{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp)
\t\t%(cpp_options) -o %{sa"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#16 0x000000000040580a in handle_braces (p=0x800875bf8 "}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#17 0x0000000000403fc4 in do_spec_1 (spec=0x800875900 "%{!MM:
%{traditional|ftraditional:%eGNU C no longer supports -traditional without -E}
%{!combine:\t
%{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp)
\t\t%(cpp_options) -"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#18 0x000000000040580a in handle_braces (p=0x8008758fe "}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#19 0x0000000000403fc4 in do_spec_1 (spec=0x800875600 "%{!M:%{!MM:
%{traditional|ftraditional:%eGNU C no longer supports -traditional without -E}
%{!combine:\t
%{save-temps|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp)
\t\t%(cpp_optio"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#20 0x000000000040580a in handle_braces (p=0x44294b "}") at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5884
#21 0x0000000000403fc4 in do_spec_1 (spec=0x442600
"%{E|M|MM:%(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)}
%{!E:%{!M:%{!MM:          %{traditional|ftraditional:%eGNU C no longer
supports -traditional without -E}       %{!combine:\t  %{sa"..., inswitch=0,
    soft_matched_part=0x0) at
    /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:5274
#22 0x00000000004059a7 in do_spec_2 (spec=0x442600
"%{E|M|MM:%(trad_capable_cpp) %(cpp_options) %(cpp_debug_options)}
%{!E:%{!M:%{!MM:          %{traditional|ftraditional:%eGNU C no longer
supports -traditional without -E}       %{!combine:\t  %{sa"...)
    at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4490
#23 0x0000000000405d03 in do_spec (spec=Variable "spec" is not available.
) at /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:4458
#24 0x000000000040b7ae in main (argc=18, argv=0x7fffffffe4a8) at
/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gcc.c:6712

cheers.
alex
Received on Tue Mar 16 2010 - 10:15:59 UTC

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