public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/46516] gfortran-trunk: error: libgfortran.spec: No such file or directory
Date: Wed, 17 Nov 2010 08:23:00 -0000	[thread overview]
Message-ID: <bug-46516-4-3wct0fLVCI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-46516-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-17 08:20:07 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> > I suppose it's the --disable-multilib, but I don't know why.
> 
> Yes, it is certainly this. The driver seems to search only in the lib directory
> and not in the lib64 directory. If I copy the spec file from lib64 to lib it
> works.

What's the content of the $BUILD/gcc/multilib.h file? In particular the
multilib_raw one? Here, it is (x86-64-linux with multilib):

static const char *const multilib_raw[] = {
". !m64 !m32;",
"64:../lib64 m64 !m32;",
"32:../lib !m64 m32;",
NULL
};


I fear that the current multilib support assumes that the path only has a
suffix if one has multilib enabled; cf. gcc.c's for_each_path which is called
by find_a_file. It seems to search without multilib in, e.g.
 /usr/lib
and with multilib in
 /usr/lib/../lib64  for -m64
 /usr/lib/../lib    for -m32
 /usr/lib/.         for neither -m32 nor -m64 (does this ever happen?)

I think that was a good assumption before the 64bit support on x86-64 was
added; there, old programs (with /usr/lib) should continue to work thus the
64bit libs where placed at a non-default directory: /usr/lib64.
(For all above: Analogously for "/usr/local/lib" and $PREFIX/lib etc.)

Hence, I am interested how a --disable-multilib $BUILD/gcc/multilib.h looks
like.


  parent reply	other threads:[~2010-11-17  8:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17  7:04 [Bug driver/46516] New: " Joost.VandeVondele at pci dot uzh.ch
2010-11-17  7:23 ` [Bug driver/46516] " Joost.VandeVondele at pci dot uzh.ch
2010-11-17  7:25 ` burnus at gcc dot gnu.org
2010-11-17  7:39 ` burnus at gcc dot gnu.org
2010-11-17  8:03 ` fxcoudert at gcc dot gnu.org
2010-11-17  8:20 ` Joost.VandeVondele at pci dot uzh.ch
2010-11-17  8:23 ` burnus at gcc dot gnu.org [this message]
2010-11-17  8:31 ` [Bug driver/46516] Non-multilib search problem in gcc.c / gfortran " burnus at gcc dot gnu.org
2010-11-17  8:46 ` burnus at gcc dot gnu.org
2010-11-17  8:50 ` Joost.VandeVondele at pci dot uzh.ch
2010-11-17  9:27 ` Joost.VandeVondele at pci dot uzh.ch
2010-11-17  9:33 ` burnus at gcc dot gnu.org
2010-11-17  9:45 ` burnus at gcc dot gnu.org
2010-11-17 11:57 ` joseph at codesourcery dot com
2010-11-17 15:33 ` burnus at gcc dot gnu.org
2010-11-17 16:26 ` burnus at gcc dot gnu.org
2010-11-18 10:24 ` burnus at gcc dot gnu.org
2010-11-18 14:40 ` burnus at gcc dot gnu.org
2010-11-21  8:01 ` burnus at gcc dot gnu.org
2010-11-21  8:06 ` burnus 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=bug-46516-4-3wct0fLVCI@http.gcc.gnu.org/bugzilla/ \
    --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).