public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: fortran/7096: g77 cant find libs at run time
@ 2002-06-21 13:56 toon
  0 siblings, 0 replies; 2+ messages in thread
From: toon @ 2002-06-21 13:56 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rc, toon

Synopsis: g77 cant find libs at run time

Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-By: toon
Responsible-Changed-When: Fri Jun 21 13:27:53 2002
Responsible-Changed-Why:
    Fortran maintainer
State-Changed-From-To: open->closed
State-Changed-By: toon
State-Changed-When: Fri Jun 21 13:27:53 2002
State-Changed-Why:
    Thanks for this complete bug report.  At first I thought
    I had to ask someone with access to Solaris to figure out
    what the problem was, but your bug report is complete
    enough for me to deduce what's going on.
    
    Because you configured with --prefix=/nerc/packages/gcc/3.1
    all the run-time libraries for various frontends (i.e.
    langauges) will reside in a subdirectory of that place.
    
    This is also true of the Fortran run-time library libg2c.so,
    but not of the C run-time library libc.so, because that
    one is distributed with your (Solaris) system.
    
    Because libc.so resides in a standard place (/lib or
    /usr/lib) it can be found, but libg2c.s cannot, because
    it isn't living in a standard library directory.
    
    This would be the same if you build C++, which then wouldn't
    be able to find _its_ runtime library libstdc++v3.
    
    If you really hate setting LD_LIBRARY_PATH, you could
    instruct g77 to use the non-shared library, by specifying
    g77 -static ....
    
    Hope this helps.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7096


^ permalink raw reply	[flat|nested] 2+ messages in thread

* fortran/7096: g77 cant find libs at run time
@ 2002-06-21  6:18 rc
  0 siblings, 0 replies; 2+ messages in thread
From: rc @ 2002-06-21  6:18 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7096
>Category:       fortran
>Synopsis:       g77 cant find libs at run time
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 21 06:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ron Campbell
>Release:        3.1
>Organization:
Natural Environment Research Council
>Environment:
System: SunOS slioch 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Blade-1000
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.1/configure --prefix=/nerc/packages/gcc/3.1
>Description:
	 Have to set LD_LIBRARY_PATH appropriately for -m32 and -m64 when
running fortran programs compiled with g77

        gcc (C compiler) picks up the correct libraries automatically. g77
should do the same. 

        Having users define LD_LIBRARY_PATH is not a satisfactory solution.
>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-21 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-21 13:56 fortran/7096: g77 cant find libs at run time toon
  -- strict thread matches above, loose matches on Subject: below --
2002-06-21  6:18 rc

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).