NetBSD Problem Report #49069

From root@random83.cs.uni-bonn.de  Mon Aug  4 11:45:27 2014
Return-Path: <root@random83.cs.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 90A88A91C4
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Aug 2014 11:45:27 +0000 (UTC)
Message-Id: <1407147941.068510.16280.nullmailer@random83.cs.uni-bonn.de>
Date: Mon, 04 Aug 2014 12:25:41 +0200
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
To: gnats-bugs@gnats.NetBSD.org
Subject: gcc46/gcc48 regression: doesn't build (stack_chk)
X-Send-Pr-Version: 3.95

>Number:         49069
>Category:       pkg
>Synopsis:       gcc46/gcc48 regression: doesn't build (stack_chk)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 04 11:50:00 +0000 2014
>Closed-Date:    Mon Oct 31 16:16:13 +0000 2016
>Last-Modified:  Mon Oct 31 16:16:13 +0000 2016
>Originator:     Ignatios Souvatzis
>Release:        NetBSD 6.1.4_PATCH
>Organization:

>Environment:
System: NetBSD random83 6.1.4_PATCH NetBSD 6.1.4_PATCH (XEN3PAE_DOMU) #7: Fri May 23 16:39:39 CEST 2014 ignatios@random84.cs.uni-bonn.de:/var/itch/sources/6.1/oi386/sys/arch/i386/compile/XEN3PAE_DOMU i386
Architecture: i386
Machine: i386
# cat /usr/pkgsrc/CVS/Tag
Tpkgsrc-2014Q2

>Description:

A local application needs at least gcc4.6. When updating the target
machine's pkgsrc bundle, neither gcc46 nor gcc48 would build, both
bemoaning missing __stack_chk_fail_local (see below).


[...]
/usr/pkg/bin/bash ./libtool --tag CC   --mode=link /pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/./gcc/xgcc -B/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/./gcc/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./bin/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./lib/ -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./include -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./sys-include    -Wall -Werror -Wc,-pthread -g -O2 -I/pkg_comp/obj/pkgsrc/lang/gcc46/default/.buildlink/include -I/usr/pkg/include   -Wl,-O1   -o libgomp.la -version-info 1:0:0 -Wl,--version-script,/pkg_comp/obj/pkgsrc/lang/gcc46/default/gcc-4.6.4/libgomp/libgomp.map  -rpath /usr/pkg/gcc46/lib alloc.lo barrier.lo critical.lo env.lo error.lo iter.lo iter_ull.lo loop.lo loop_ull.lo ordered.lo parallel.lo sections.lo single.lo task.lo team.lo work.lo lock.lo mutex.lo proc.lo sem.lo bar.lo ptrlock.lo time.lo fortran.lo affinity.lo  
libtool: link: /pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/./gcc/xgcc -B/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/./gcc/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./bin/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./lib/ -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./include -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1.4./sys-include    -shared  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o .libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ull.o .libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/task.o .libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o .libs/bar.o .libs/ptrlock.o .libs/time.o .libs/fortran.o .libs/affinity.o    -pthread -Wl,-O1 -Wl,--version-script -Wl,/pkg_comp/obj/pkgsrc/lang/gcc46/default/gcc-4.6.4/libgomp/libgomp.map   -Wl,-soname -Wl,libgomp.so.1 -o .libs/libgomp.so.1.0
.libs/team.o: In function `gomp_team_start':
/pkg_comp/obj/pkgsrc/lang/gcc46/default/gcc-4.6.4/libgomp/team.c:451: undefined reference to `__stack_chk_fail_local'
.libs/task.o: In function `GOMP_task':
/pkg_comp/obj/pkgsrc/lang/gcc46/default/gcc-4.6.4/libgomp/task.c:183: undefined reference to `__stack_chk_fail_local'
collect2: ld returned 1 exit status
Makefile:446: recipe for target 'libgomp.la' failed
gmake[5]: *** [libgomp.la] Error 1
gmake[5]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/i386-unknown-netbsdelf6.1.4./libgomp'
Makefile:716: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/i386-unknown-netbsdelf6.1.4./libgomp'
Makefile:349: recipe for target 'all' failed
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj/i386-unknown-netbsdelf6.1.4./libgomp'
Makefile:19172: recipe for target 'all-stage1-target-libgomp' failed
gmake[2]: *** [all-stage1-target-libgomp] Error 2
gmake[2]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj'
Makefile:19971: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc46/default/obj'
Makefile:892: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/gcc46
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc46
pkg_comp:32bit61-14q2.conf# 


pkg_comp:32bit61-14q2.conf# make
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Installing dependencies for gcc48-4.8.3
=> Full dependency gcc48-libs-[0-9]*: NOT found
=> Verifying reinstall for ../../lang/gcc48-libs
=> Bootstrap dependency digest>=20010302: found digest-20121220
[...]
checking __stack_chk_fail in target C library... no
[...]
rm -f libstdc++-symbols.ver.tmp
/bin/sh ../libtool --tag CXX   --mode=link /pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/./gcc/xgcc -shared-libgcc -B/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/./gcc -nostdinc++ -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src/.libs -B/usr/pkg/gcc48/i486--netbsdelf/bin/ -B/usr/pkg/gcc48/i486--netbsdelf/lib/ -isystem /usr/pkg/gcc48/i486--netbsdelf/include -isystem /usr/pkg/gcc48/i486--netbsdelf/sys-include    -Wl,-O1 -Wl,-z,relro -Wl,--gc-sections  -fPIC -DPIC  -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -frandom-seed=libstdc++.la  '-Wl,-R/usr/pkg/lib' -o libstdc++.la -version-info 6:19:0 -Wl,--version-script=libstdc++-symbols.ver -lm -rpath /usr/pkg/gcc48/lib compatibility.lo compatibility-debug_list.lo compatibility-debug_list-2.lo  compatibility-c++0x.lo compatibil
 ity-atomic-c++0x.lo compatibility-thread-c++0x.lo compatibility-chrono.lo  ../libsupc++/libsupc++convenience.la ../src/c++98/libc++98convenience.la ../src/c++11/libc++11convenience.la 
libtool: link:  /pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/./gcc/xgcc -shared-libgcc -B/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/./gcc -nostdinc++ -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src/.libs -B/usr/pkg/gcc48/i486--netbsdelf/bin/ -B/usr/pkg/gcc48/i486--netbsdelf/lib/ -isystem /usr/pkg/gcc48/i486--netbsdelf/include -isystem /usr/pkg/gcc48/i486--netbsdelf/sys-include    -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/compatibility.o .libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o .libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o .libs/compatibility-chrono.o  -Wl,--whole-archive ../libsupc++/.libs/libsupc++convenience.a ../src/c++98/.libs/libc++98convenience.a ../src/c++11/.libs/libc++11convenience.a -Wl,--no-whole-archive  -L/pkg_comp/obj/pkgsrc/lang
 /gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src/.libs -lm -L/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/./gcc /usr/lib/crtendS.o /usr/lib/crtn.o  -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,-R/usr/pkg/lib -Wl,--version-script=libstdc++-symbols.ver   -Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.19
../src/c++98/.libs/libc++98convenience.a(locale-inst.o): In function `std::time_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, tm const*, char, char) const':
/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets_nonio.tcc:1213: undefined reference to `__stack_chk_fail_local'
../src/c++98/.libs/libc++98convenience.a(locale-inst.o): In function `std::money_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >, bool, std::ios_base&, char, long double) const':
/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets_nonio.tcc:603: undefined reference to `__stack_chk_fail_local'
../src/c++98/.libs/libc++98convenience.a(locale-inst.o): In function `std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const':
/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets.tcc:929: undefined reference to `__stack_chk_fail_local'
../src/c++98/.libs/libc++98convenience.a(locale-inst.o): In function `std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const':
/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets.tcc:929: undefined reference to `__stack_chk_fail_local'
../src/c++98/.libs/libc++98convenience.a(locale-inst.o): In function `std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<long long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long long) const':
/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets.tcc:929: undefined reference to `__stack_chk_fail_local'
../src/c++98/.libs/libc++98convenience.a(locale-inst.o):/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/include/bits/locale_facets.tcc:929: more undefined references to `__stack_chk_fail_local' follow
collect2: error: ld returned 1 exit status
Makefile:545: recipe for target 'libstdc++.la' failed
gmake[6]: *** [libstdc++.la] Error 1
gmake[6]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src'
Makefile:575: recipe for target 'all-recursive' failed
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3/src'
Makefile:480: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3'
Makefile:386: recipe for target 'all' failed
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build/i486--netbsdelf/libstdc++-v3'
Makefile:16238: recipe for target 'all-stage1-target-libstdc++-v3' failed
gmake[2]: *** [all-stage1-target-libstdc++-v3] Error 2
gmake[2]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build'
Makefile:22421: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/gcc48-libs/default/build'
Makefile:892: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/gcc48-libs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc48-libs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc48
pkg_comp:32bit61-14q2.conf# 01exit

Script done on Mon Aug  4 10:12:47 2014


>How-To-Repeat:
	cd /usr/pkgsrc/lang/gcc46 && make
	cd /usr/pkgsrc/lang/gcc48 && make
>Fix:
	workaround: maybe use gcc47

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->sbd
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Wed, 06 Aug 2014 19:18:34 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: sbd->pkg-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sun, 26 Jun 2016 04:33:56 +0000
Responsible-Changed-Why:
sbd resigned and shouldn't own PRs


Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 30 Oct 2016 19:34:04 +0000
Responsible-Changed-Why:
take


State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 30 Oct 2016 19:34:04 +0000
State-Changed-Why:
There have been many reports of lang/gcc4* failures. I believe
it should work now. Does it work for you now?


From: ignatios <ignatios@cs.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49069 (gcc46/gcc48 regression: doesn't build (stack_chk))
Date: Mon, 31 Oct 2016 15:47:46 +0100

 On Sun, Oct 30, 2016 at 07:34:05PM +0000, maya@NetBSD.org wrote:
 > There have been many reports of lang/gcc4* failures. I believe
 > it should work now. Does it work for you now?

 lang/gcc46 and lang/gcc48 both compile with pkgsrc-2016q2, thanks.

State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 31 Oct 2016 16:16:13 +0000
State-Changed-Why:
Confirmed fixed - btw 2016Q3 is out now:)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.