From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25382 invoked by alias); 9 Nov 2011 16:14:45 -0000 Received: (qmail 25372 invoked by uid 22791); 9 Nov 2011 16:14:43 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from c2bthomr13.btconnect.com (HELO mail.btconnect.com) (213.123.20.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Nov 2011 16:14:11 +0000 Received: from host81-138-1-83.in-addr.btopenworld.com (EHLO thor.office) ([81.138.1.83]) by c2bthomr13.btconnect.com with ESMTP id FBW78586; Wed, 09 Nov 2011 16:14:09 +0000 (GMT) Cc: gcc-patches Patches , DJ Delorie , Alexandre Oliva Message-Id: From: Iain Sandoe To: Richard Henderson In-Reply-To: <4EB99F2A.9020601@redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Disable libitm if unsupported Date: Wed, 09 Nov 2011 17:01:00 -0000 References: <4EB959F0.60301@redhat.com> <201111081726.24103.pedro@codesourcery.com> <4EB96781.4030409@redhat.com> <201111081756.04563.pedro@codesourcery.com> <4EB97355.70704@redhat.com> <4EB99F2A.9020601@redhat.com> X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.4EBAA6CF.00E9, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2011.11.9.153914:17:7.944, ip=81.138.1.83, rules=__MULTIPLE_RCPTS_CC_X2, __HAS_MSGID, __SANE_MSGID, __MSGID_APPLEMAIL, __TO_MALFORMED_2, __CT, __CT_TEXT_PLAIN, __CTE, __MIME_VERSION, __MIME_VERSION_APPLEMAIL, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __HAS_X_MAILER, __X_MAILER_APPLEMAIL, BODY_SIZE_3000_3999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, __USER_AGENT_APPLEMAIL, RDNS_SUSP, BODY_SIZE_7000_LESS, NO_URI_FOUND, MULTIPLE_RCPTS X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0206.4EBAA6D1.0197,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg01314.txt.bz2 Hi Richard, On 8 Nov 2011, at 21:29, Richard Henderson wrote: > On 11/08/2011 01:20 PM, Iain Sandoe wrote: >> is it expected for libitm to work on x86 darwin? > > Yes. hmmm... powerpc-darwin is not affected (doesn't auto configure because there's no powerpc directory under libitm/config). However ... On i686-darwin9 it fails with "target only supports weak alias" (I need to understand better where that comes from - but the machine is tied up right now). On x86_64-darwin10 it fails to build sjlj.S because that file makes use of assembler constructs not available on the system as (I think Rainer perhaps already observed this for some solaris versions). I had a quick look at config/x86/target.h and observe that the jmpbuf layout in that header is different from the system definition... .. so I'm thinking that maybe some porting work is needed ... Unless I've missed sth ... >> /bin/sh ./libtool --tag=CXX --mode=compile -B/GCC/gcc-4-7- >> install/i686-apple-darwin9/bin/ -B/GCC/gcc-4-7-install/i686-apple- >> darwin9/lib/ -isystem /GCC/gcc-4-7-install/i686-apple-darwin9/ >> include -isystem /GCC/gcc-4-7-install/i686-apple-darwin9/sys- >> include -DHAVE_CONFIG_H -I. -I/GCC/gcc-live-trunk/libitm -I/GCC/ >> gcc-live-trunk/libitm/config/posix -I/GCC/gcc-live-trunk/libitm/ >> config/generic -I/GCC/gcc-live-trunk/libitm -std=gnu++0x -funwind- >> tables -fno-exceptions -fno-rtti -march=i486 -mtune=i686 -fomit- >> frame-pointer -Wall -Werror -Wc,-pthread -fabi-version=4 -g -O2 - >> MT cacheline.lo -MD -MP -MF .deps/cacheline.Tpo -c -o cacheline.lo / >> GCC/gcc-live-trunk/libitm/config/generic/cacheline.cc >> libtool: compile: unrecognized option `-B/GCC/gcc-4-7-install/i686- >> apple-darwin9/bin/' >> libtool: compile: Try `libtool --help' for more information. >> make[3]: *** [barrier.lo] Error 1 > > That's ... odd. > > Top-level makefile has passed down the empty string instead of the g+ > + executable. > I have zero idea how to fix this. It sounds similar to the horror > that I eventually > bypassed wrt the include paths. this happens when, in an attempt to debug things, one deletes the failed build and tries to do make all-target-libitm. so .. perhaps we should disable darwin for now so that at least it bootstraps ... unless this is only affecting me :-) cheers Iain Index: libitm/configure.tgt =================================================================== --- libitm/configure.tgt (revision 181206) +++ libitm/configure.tgt (working copy) @@ -93,10 +93,14 @@ case "${target}" in *-*-gnu* | *-*-k*bsd*-gnu \ | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \ | *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \ - | *-*-darwin* | *-*-aix*) + | *-*-aix*) # POSIX system. The OS is supported. ;; + *-*-darwin*) # POSIX, but needs some work. + UNSUPPORTED=1 + ;; + *) # Non-POSIX, or embedded system UNSUPPORTED=1 ;;