[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #34544] glibc related compilation failure with Clang and the non-fr
From: |
Quentin Mathé |
Subject: |
[bug #34544] glibc related compilation failure with Clang and the non-fragile ABI |
Date: |
Fri, 14 Oct 2011 08:47:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 |
URL:
<http://savannah.gnu.org/bugs/?34544>
Summary: glibc related compilation failure with Clang and the
non-fragile ABI
Project: GNUstep
Submitted by: qmathe
Submitted on: Fri 14 Oct 2011 08:47:48 AM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi,
Ubuntu 10.4 x86-32
GNUstep core svn r33979
Clang svn r138561
When GNUstep Make is configured with CC=clang and
--enable-objc-nonfragile-abi, I'm unable to compile Base, an error is reported
every time unistd.h is included as shown below. Without passing
--enable-objc-nonfragile-abi to GNUstep Make, Base compiles just fine.
This seems to be due to a glibc bug described here (still unsolved
apparently): http://sources.redhat.com/bugzilla/show_bug.cgi?id=11157
At the end of the bug report, a workaround is suggested, it does work fine but
changing every files where unistd.h is included looks like a poor solution.
clang NSStream.m -c \
-MMD -MP -Wall -Wdeclaration-after-statement -DGNUSTEP
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fobjc-nonfragile-abi
-D_NONFRAGILE_ABI -fPIC -DDEBUG -fno-omit-frame-pointer -Wall -DGSWARN
-DGSDIAGNOSE -Wno-import -g -fgnu-runtime -fobjc-nonfragile-abi -fgnu-runtime
-fconstant-string-class=NSConstantString -I../. -I../../Headers -I.
-I/System/Library/Headers -I/Local/Library/Headers -I/Local/Library/Headers
-I/System/Library/Headers -I/usr/include/libxml2
-I/home/qmathe/GNUstep/Library/Headers -I/Local/Library/Headers
-I/System/Library/Headers \
-o obj/unix.obj/NSStream.m.o
In file included from NSStream.m:27:
/usr/include/unistd.h:1128:35: error: __block attribute not allowed, only
allowed on local variables
extern void encrypt (char *__block, int __edflag) __THROW __nonnull ((1));
Thanks,
Quentin.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34544>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #34544] glibc related compilation failure with Clang and the non-fragile ABI,
Quentin Mathé <=