From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55729 invoked by alias); 31 Mar 2015 03:09:39 -0000 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 Received: (qmail 55713 invoked by uid 89); 31 Mar 2015 03:09:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ob0-f177.google.com Received: from mail-ob0-f177.google.com (HELO mail-ob0-f177.google.com) (209.85.214.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 31 Mar 2015 03:09:36 +0000 Received: by obbec2 with SMTP id ec2so7150583obb.3 for ; Mon, 30 Mar 2015 20:09:34 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.16.233 with SMTP id j9mr30999672obd.24.1427771374238; Mon, 30 Mar 2015 20:09:34 -0700 (PDT) Received: by 10.76.129.71 with HTTP; Mon, 30 Mar 2015 20:09:34 -0700 (PDT) In-Reply-To: References: <20150330022527.GA4148@gmail.com> Date: Tue, 31 Mar 2015 03:09:00 -0000 Message-ID: Subject: Re: PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE From: Jack Howarth To: "H.J. Lu" Cc: GCC Patches , Uros Bizjak Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg01603.txt.bz2 H.J., This still breaks the darwin bootstrap but differently. ar rc libgcc_eh.a $objects /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libgcc_eh.a(unwind-sjlj.o) has no symbols ranlib libgcc_eh.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libgcc_eh.a(unwind-sjlj.o) has no symbols /sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/./gcc/ -B/sw/lib/gcc5/x86_64-apple-darwin14.3.0/bin/ -B/sw/lib/gcc5/x86_64-apple-darwin14.3.0/lib/ -isystem /sw/lib/gcc5/x86_64-apple-darwin14.3.0/include -isystem /sw/lib/gcc5/x86_64-apple-darwin14.3.0/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -pipe -fno-common -I. -I. -I../../.././gcc -I../../../../gcc-5-20150330/libgcc -I../../../../gcc-5-20150330/libgcc/. -I../../../../gcc-5-20150330/libgcc/../gcc -I../../../../gcc-5-20150330/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o cpuinfo_s.o -MT cpuinfo_s.o -MD -MP -MF cpuinfo_s.dep -DSHARED -c ../../../../gcc-5-20150330/libgcc/config/i386/cpuinfo.c {standard input}:3:Unknown pseudo-op: .symver {standard input}:3:Rest of line ignored. 1st junk character valued 95 (_). {standard input}:4:Unknown pseudo-op: .symver {standard input}:4:Rest of line ignored. 1st junk character valued 95 (_). ../../../../gcc-5-20150330/libgcc/shared-object.mk:18: recipe for target 'cpuinfo_s.o' failed make[5]: *** [cpuinfo_s.o] Error 1 make[5]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/i386/libgcc' Makefile:1174: recipe for target 'multi-do' failed make[4]: *** [multi-do] Error 1 make[4]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/libgcc' Makefile:117: recipe for target 'all-multi' failed make[3]: *** [all-multi] Error 2 make[3]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/libgcc' Makefile:14820: recipe for target 'all-stage1-target-libgcc' failed make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir' Makefile:20760: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir' Makefile:21064: recipe for target 'bootstrap' failed make: *** [bootstrap] Error 2 Jack On Mon, Mar 30, 2015 at 10:08 PM, H.J. Lu wrote: > On Mon, Mar 30, 2015 at 5:53 PM, Jack Howarth wrote: >> HJ, >> This patch breaks the bootstrap on targets like darwin which >> don't build libgcc_nonshared.a... >> >> if test -z "$objects"; then \ >> echo 'int __libgcc_eh_dummy;' > eh_dummy.c; \ >> /sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/./gcc/xgcc >> -B/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/./gcc/ >> -B/sw/lib/gcc5/x86_64-apple-darwin14.3.0/bin/ >> -B/sw/lib/gcc5/x86_64-apple-darwin14.3.0/lib/ -isystem >> /sw/lib/gcc5/x86_64-apple-darwin14.3.0/include -isystem >> /sw/lib/gcc5/x86_64-apple-darwin14.3.0/sys-include -g -O2 -m32 -O2 >> -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual >> -Wno-format -Wstrict-prototypes -Wmissing-prototypes >> -Wold-style-definition -isystem ./include -pipe -fno-common -g >> -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -pipe >> -fno-common -I. -I. -I../../.././gcc >> -I../../../../gcc-5-20150330/libgcc >> -I../../../../gcc-5-20150330/libgcc/. >> -I../../../../gcc-5-20150330/libgcc/../gcc >> -I../../../../gcc-5-20150330/libgcc/../include -DHAVE_CC_TLS >> -DUSE_EMUTLS -fvisibility=hidden -DHIDE_EXPORTS -c eh_dummy.c \ >> -o eh_dummy.o; \ >> objects=eh_dummy.o; \ >> fi; \ >> ar rc libgcc_nonshared.a $objects >> ar: cpuinfo.o: No such file or directory >> Makefile:905: recipe for target 'libgcc_nonshared.a' failed >> make[5]: *** [libgcc_nonshared.a] Error 1 >> make[5]: Leaving directory >> '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/i386/libgcc' >> Makefile:1168: recipe for target 'multi-do' failed >> make[4]: *** [multi-do] Error 1 >> make[4]: Leaving directory >> '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/libgcc' >> Makefile:117: recipe for target 'all-multi' failed >> make[3]: *** [all-multi] Error 2 >> make[3]: Leaving directory >> '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir/x86_64-apple-darwin14.3.0/libgcc' >> Makefile:14820: recipe for target 'all-stage1-target-libgcc' failed >> make[2]: *** [all-stage1-target-libgcc] Error 2 >> make[2]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir' >> Makefile:20760: recipe for target 'stage1-bubble' failed >> make[1]: *** [stage1-bubble] Error 2 >> make[1]: Leaving directory '/sw/src/fink.build/gcc5-5.0.0-1/darwin_objdir' >> Makefile:21064: recipe for target 'bootstrap' failed >> make: *** [bootstrap] Error 2 >> >> Jack >> > > This one works. I need to add $(LIB2ADDNONSHARED) $(LIB2ADDSHARED) > to iter-items and handle duplicated items in them. > > -- > H.J.