NetBSD Problem Report #49296
From www@NetBSD.org Sun Oct 19 22:54:50 2014
Return-Path: <www@NetBSD.org>
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 84DF2A6552
for <gnats-bugs@gnats.NetBSD.org>; Sun, 19 Oct 2014 22:54:50 +0000 (UTC)
Message-Id: <20141019225449.4425FA667A@mollari.NetBSD.org>
Date: Sun, 19 Oct 2014 22:54:49 +0000 (UTC)
From: dottedmag@dottedmag.net
Reply-To: dottedmag@dottedmag.net
To: gnats-bugs@NetBSD.org
Subject: lang/gcc49 fails to compile with glibc 2.3.6
X-Send-Pr-Version: www-1.0
>Number: 49296
>Category: pkg
>Synopsis: lang/gcc49 fails to compile with glibc 2.3.6
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bsiegert
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 19 22:55:00 +0000 2014
>Closed-Date: Sat Nov 29 10:42:10 +0000 2014
>Last-Modified: Sat Nov 29 10:42:10 +0000 2014
>Originator: Mikhail Gusarov
>Release: pkgsrc-2014Q3 from 20.10.2014
>Organization:
>Environment:
Linux debian-40-i386 2.6.18-6-686 #1 SMP Fri Feb 19 23:40:03 UTC 2010 i686 GNU/Linux
>Description:
lang/gcc49 fails to build under Debian Etch i386 due to failure in glibc header corrected in later releases of glibc: semaphore.h uses __sem_lock type without defining it first.
Attached patch works around this issue and allows to finish gcc build.
>How-To-Repeat:
Bootstrap pkgsrc on Debian Etch i386. Try to build lang/gcc49.
>Fix:
Work around broken <semaphore.h> in glibc < 2.5.
Corresponding Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402318
--- libcilkrts/runtime/signal_node.c.orig 2014-10-20 00:37:57.000000000 +0200
+++ libcilkrts/runtime/signal_node.c 2014-10-20 00:38:36.000000000 +0200
@@ -51,6 +51,7 @@
typedef HANDLE cilk_semaphore_t;
#else // Linux/MIC
# include <errno.h>
+# include <pthread.h>
# include <semaphore.h>
# include <stdio.h>
typedef sem_t cilk_semaphore_t;
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Fri, 28 Nov 2014 11:44:25 +0000
Responsible-Changed-Why:
Taking this.
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49296 CVS commit: pkgsrc/lang
Date: Fri, 28 Nov 2014 11:47:01 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Fri Nov 28 11:47:01 UTC 2014
Modified Files:
pkgsrc/lang/gcc49: Makefile distinfo
pkgsrc/lang/gcc49-libs: Makefile
Added Files:
pkgsrc/lang/gcc49/patches: patch-libcilkrts_runtime_signal_node.c
Log Message:
Add a patch to fix compilation on Debian Etch. From Mikhail Gusarov in
PR pkg/49296.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gcc49/Makefile \
pkgsrc/lang/gcc49/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gcc49-libs/Makefile
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 28 Nov 2014 11:51:07 +0000
State-Changed-Why:
Does this fix your problem? I don't have a Debian Etch system to test on.
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: gnats-bugs@netbsd.org
Cc: bsiegert@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/49296 (lang/gcc49 fails to compile with glibc 2.3.6)
Date: Fri, 28 Nov 2014 13:58:28 +0100
Hi.
Yes, it does. Thank you.
Best regards,
Mikhail Gusarov.
On 28 November 2014 at 12:51, <bsiegert@netbsd.org> wrote:
> Synopsis: lang/gcc49 fails to compile with glibc 2.3.6
>
> State-Changed-From-To: open->feedback
> State-Changed-By: bsiegert@NetBSD.org
> State-Changed-When: Fri, 28 Nov 2014 11:51:07 +0000
> State-Changed-Why:
> Does this fix your problem? I don't have a Debian Etch system to test on.
>
>
>
State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 29 Nov 2014 10:42:10 +0000
State-Changed-Why:
Submitter says it works now.
>Unformatted:
(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.