[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NRQ-166824]: compiling issue __divdi3

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #NRQ-166824]: compiling issue __divdi3
  • Date: Fri, 02 May 2008 09:50:49 -0600

Brian,

> Is there an option in the make install to link to a non-standard
> location for libgcc.a?

No, and I don't think user applications or libraries should
explicitly link to libgcc.a or its shared version.  The gcc
compiler should be built to know where libgcc, its runtime
library, is installed.  If it's installed in a nonstandard
place that gcc doesn't know about, you may have to set the
LD_LIBRARY_PATH environment variable before compiling, but
that's undesirable for various reasons.

I don't undersatnd how a properly configured and installed
gcc would have libgcc installed somewhere it couldn't find.
Maybe someone built gcc from source, but forgot the "make install"
step, choosing instead to just move gcc to /bin, or something
similar.

Anyway, I'm glad you got it to work, but you should not have
had to find out and use the location of libgcc.a.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: NRQ-166824
Department: Support netCDF
Priority: Normal
Status: Closed