public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jack Howarth <howarth.at.gcc@gmail.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Uros Bizjak <ubizjak@gmail.com>
Subject: Re: PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE
Date: Tue, 31 Mar 2015 03:14:00 -0000	[thread overview]
Message-ID: <CAJMcOU9QcnrjGDPnRQeB27u+jq90dnDKskifAEGCRzv6etvAMg@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOqFg7BoY7Kge8dOHCGA=cvtR8TA5rMCW7qjToe1L3_X9w@mail.gmail.com>

On Mon, Mar 30, 2015 at 10:42 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Mon, Mar 30, 2015 at 7:08 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Mon, Mar 30, 2015 at 5:53 PM, Jack Howarth <howarth.at.gcc@gmail.com> 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.
>>
>
> There is no regression on Linux/x86-64.
>
> --
> H.J.

Can this wait for 5.2? Creating new libgcc libraries seems really
invasive for stage4.

  reply	other threads:[~2015-03-31  3:14 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  2:25 H.J. Lu
2015-03-30  2:34 ` H.J. Lu
2015-03-30  2:40   ` H.J. Lu
2015-03-30 22:26     ` H.J. Lu
2015-03-31  0:54       ` Jack Howarth
2015-03-31  2:08         ` H.J. Lu
2015-03-31  2:42           ` H.J. Lu
2015-03-31  3:14             ` Jack Howarth [this message]
2015-03-31  3:09           ` Jack Howarth
2015-03-31  4:04             ` H.J. Lu
2015-03-31  5:39           ` Jakub Jelinek
2015-03-31  6:20             ` Rainer Orth
2015-03-31 10:39             ` H.J. Lu
2015-03-31 14:25               ` Jack Howarth
2015-03-31 15:58                 ` H.J. Lu
2015-03-31 16:10                   ` Jack Howarth
2015-03-31 16:15                     ` H.J. Lu
2015-03-31 16:39                       ` Jack Howarth
2015-03-31 17:00                         ` H.J. Lu
2015-03-31 18:33                           ` Jack Howarth
2015-04-14 15:07                             ` H.J. Lu
2015-04-16 16:29                               ` Mike Stump
2015-04-17  8:05                                 ` Uros Bizjak
2015-04-17 10:36                                   ` H.J. Lu
2015-04-17 11:04                                     ` Uros Bizjak
2015-04-17 11:12                                       ` Uros Bizjak
2015-04-17 11:38                                       ` Jakub Jelinek
2015-04-17 11:48                                         ` H.J. Lu
2015-04-17 12:00                                           ` Jakub Jelinek
2015-04-17 12:36                                             ` H.J. Lu
2015-04-17 12:40                                               ` Jakub Jelinek
2015-05-08 23:00                                               ` Rich Felker
2015-05-08 23:59                                                 ` H.J. Lu
2015-05-09 14:31                                               ` Szabolcs Nagy
2015-05-09 17:41                                                 ` H.J. Lu
2015-05-09 18:57                                                   ` Szabolcs Nagy
2015-05-11 10:20                                                     ` Szabolcs Nagy
2015-05-11 10:32                                                       ` Jakub Jelinek
2015-05-11 12:39                                                         ` Szabolcs Nagy
2015-05-11 13:05                                                           ` Jakub Jelinek
2015-05-11 15:30                                                             ` Szabolcs Nagy
2015-05-11 14:12                                                         ` Rich Felker
2015-05-09 19:36                                                   ` Rich Felker
2015-05-09 19:54                                                     ` Jakub Jelinek
2015-07-22 21:14                                               ` Sriraman Tallam
2015-04-17 12:23                                   ` Mike Stump

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJMcOU9QcnrjGDPnRQeB27u+jq90dnDKskifAEGCRzv6etvAMg@mail.gmail.com \
    --to=howarth.at.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=ubizjak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).