NetBSD Problem Report #46177
From www@NetBSD.org Sun Mar 11 20:07:00 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id C8B3763CAE9
for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Mar 2012 20:06:59 +0000 (UTC)
Message-Id: <20120311200659.3205263B8C0@www.NetBSD.org>
Date: Sun, 11 Mar 2012 20:06:59 +0000 (UTC)
From: jonathan+pkgsrc@pinacea.com
Reply-To: jonathan+pkgsrc@pinacea.com
To: gnats-bugs@NetBSD.org
Subject: libgcrypt doesn't build using clang
X-Send-Pr-Version: www-1.0
>Number: 46177
>Category: pkg
>Synopsis: libgcrypt doesn't build using clang
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 11 20:10:01 +0000 2012
>Closed-Date: Tue Apr 03 15:00:56 +0000 2012
>Last-Modified: Tue Apr 03 15:05:02 +0000 2012
>Originator: jonathan buschmann
>Release:
>Organization:
>Environment:
Darwin host 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:48:32 PST 2012; root:xnu-1699.24.23~1/RELEASE_I386 i386
>Description:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/Users/jonthn/wine32/include -I/usr/include -I/Users/jonthn/wine32/include -pipe -O2 -I/Users/jonthn/wine32/include -I/usr/include -Wall -MT mpih-div.lo -MD -MP -MF .deps/mpih-div.Tpo -c -o mpih-div.lo mpih-div.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I/Users/jonthn/code/pkgsrc/security/libgcrypt/work/.buildlink/include -pipe -O2 -Wall -MT mpih-div.lo -MD -MP -MF .deps/mpih-div.Tpo -c mpih-div.c -fno-common -DPIC -o .libs/mpih-div.o
mpih-div.c:84:14: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
udiv_qrnnd(divisor_limb_inverted, dummy,
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>How-To-Repeat:
Try to install libgcrypt when using clang as the C compiler.
>Fix:
Add this flag to the Makefile
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -fheinous-gnu-extensions
.endif
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Tue, 03 Apr 2012 15:00:56 +0000
State-Changed-Why:
Fixed. Thank you.
From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46177 CVS commit: pkgsrc/security/libgcrypt
Date: Tue, 3 Apr 2012 15:00:30 +0000
Module Name: pkgsrc
Committed By: adam
Date: Tue Apr 3 15:00:30 UTC 2012
Modified Files:
pkgsrc/security/libgcrypt: Makefile
Log Message:
Fix building with clang on i386 (PR#46177)
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 pkgsrc/security/libgcrypt/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.