public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jay dot krell at cornell dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/37079] cannot find -lgcc_s
Date: Sun, 17 Aug 2008 08:52:00 -0000	[thread overview]
Message-ID: <20080817085138.3850.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37079-16543@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from jay dot krell at cornell dot edu  2008-08-17 08:51 -------
Subject: RE:  cannot find -lgcc_s


  Let's dissect the output a bit:
  Word wrap plus laziness => I didn't look closely before.


  -Wl,-rpath -Wl,/usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1  
  -Wl,-rpath  
  -Wl,/usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1   
  -L/obj/gcc.1/sparc64-sun-solaris2.10/sparc64-sun-solaris2.10/./ld 
  -L/usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1 
 
-L/usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1/../../../../sparc64-sunsolaris2.10/lib/sparcv9 
  -L/usr/local/sparc64-sun-solaris2.10/sys-root/lib/sparcv9  
  -L/usr/local/sparc64-sun-solaris2.10/sys-root/usr/lib/sparcv9  
 
-L/usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1/../../../../sparc64-sun-solaris2.10/lib 
  -L/usr/local/sparc64-sun-solaris2.10/sys-root/lib  
  -L/usr/local/sparc64-sun-solaris2.10/sys-root/usr/lib  


  vs. the workaround: 


    Directory = Prefix + "/lib/gcc/sparc64-sun-solaris2.10/" + GccVersion  
    Run(".", "mkdir -p " + Directory)  
    Run(Directory, "-ln -s sparcv9/libgcc_s.so libgcc_s.so")  
    Run(Directory, "-ln -s sparcv9/libgcc_s.so.1 libgcc_s.so.1")  


 Therefore:  



 The "biarch" paths are not being applied to the "gcc .libs" paths.
    /usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1
  but not
    /usr/local/lib/gcc/sparc64-sun-solaris2.10/4.3.1/sparcv9


 both for -Wl,-rpath and -L.
 This IS reasonable, since the tools were built with -disable-multilib, BUT
   the .libs were in fact put in sparcv9 -- at least the .so files.


(I find all the dot-dots a pain to read! I understand relocatable, and
symlinks, but still..) 

 They are being applied to the "system .libs" paths.
   sys-root/lib/sparcv9 and sys-root/usr/lib/sparcv9.


 Could be that .so file placement is not so flexible? Because they aren't
  really supposed to be placed here anyway? You know, it is very up to me
  where to place .a files, but .so files maybe more important to adhere
  to strict standards, since they are used at runtime?


 Also not shown is -enable-version-specific-runtimes or such, whatever
  I saw Cygwin using.


It SEEMS the fix is now almost obvious.
That multilib suffixes need to be applied to more prefixes.
Or alter the directory structure otherwise, via configure.


I should also try without -enable-rpath I guess.


Thank you for attention to the bug,
 - Jay




> Date: Sat, 16 Aug 2008 22:36:55 +0000
> Subject: [Bug bootstrap/37079] cannot find -lgcc_s
> To: jay.krell@cornell.edu
> From: gcc-bugzilla@gcc.gnu.org
>
>
>
> ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-08-16 22:36 -------
> What happens if you just use --with-build-sysroot= ? without saying the
> --with-sysroot?
>
>
> --
>
> pinskia at gcc dot gnu dot org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Component|c |bootstrap
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37079
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37079


  parent reply	other threads:[~2008-08-17  8:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11  9:29 [Bug c/37079] New: " jayk123 at hotmail dot com
2008-08-14 11:57 ` [Bug c/37079] " jay dot krell at cornell dot edu
2008-08-14 12:06 ` jay dot krell at cornell dot edu
2008-08-16 22:38 ` [Bug bootstrap/37079] " pinskia at gcc dot gnu dot org
2008-08-17  8:52 ` jay dot krell at cornell dot edu [this message]
2008-08-17  8:53 ` jay dot krell at cornell dot edu
2009-12-09  2:00 ` 3dw4rd at verizon dot net
2009-12-09  4:22 ` howarth at nitro dot med dot uc dot edu
2009-12-09 13:22 ` 3dw4rd at verizon dot net
     [not found] <bug-37079-4@http.gcc.gnu.org/bugzilla/>
2011-12-23 16:32 ` kai.extern at gmail dot com
2011-12-23 17:42 ` redi at gcc dot gnu.org

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=20080817085138.3850.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).