public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bruce Hoglund <bhoglund@mac.com>
To: Ian Lance Taylor <iant@google.com>
Cc: Jonathan Wakely <jwakely.gcc@gmail.com>, gcc-help@gcc.gnu.org
Subject: Re: long long size compute failure during make of gcc-4.6.1 on OS X 10.7 Lion
Date: Wed, 07 Sep 2011 22:11:00 -0000	[thread overview]
Message-ID: <48CE1D2E-DFAA-4D30-96A6-5C3EC6ED0B9B@mac.com> (raw)
In-Reply-To: <mcrd3fcs480.fsf@coign.corp.google.com>


On Sep 7, 2011, at 12:32 PM, Ian Lance Taylor wrote:

> Bruce Hoglund <bhoglund@mac.com> writes:
> 
>> configure:5790: gcc -o conftest -g -fkeep-inline-functions    conftest.c  >&5
>> Undefined symbols for architecture x86_64:
>> "___builtin___stpncpy_chk", referenced from:
>>     ___inline_stpncpy_chk in ccL1VweA.o
>> ld: symbol(s) not found for architecture x86_64
> 
> There is some sort of mismatch between the compiler being run as "gcc"
> and your system header files.  Your system header files appear to assume
> that the compiler defines ___builtin___stpncpy_chk.  Your compiler
> appears to not define that function.
> 
> gcc as normally distributed does not define any sort of
> ___builtin___stpncpy_chk function.  However, evidently the OS X 10.7
> header files expect it to.
> 
> What program are you running as "gcc"?  Is it possible that it is out of
> date with respect to the header files?
> 
> For any other ideas, you are going to have to ask somebody familiar with
> Darwin.
> 
> Ian

I installed gcc via MacPorts (port), which installs in /opt/local/bin. I created a Symbolic Link from gcc to:
/opt/local/bin/x86_64-apple-darwin11-gcc-mp-4.5

It reports this version:
gcc --version
gcc (GCC) 4.5.3

Where does it get the system's header files from? My real goal for all of this is to be able to complile a Fortran program (MCNPX) using either g95 or gfortran, which is also failing for what seem to me similar reasons:


"	Snipped of Terminal output prior to compiling failure:

ar: creating archive hexs.a
Build of hexs.a complete
f90 -l gfortran -lcrt1.10.5.o -L/usr/local/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1 -L/usr/local/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../.. -lgfortran -lSystem -lgcc_ext.10.5 -lquadmath -lm -lm  -o mcnpx f77main/f77main.o mcnpf.a mcnpf/GLOBAL1_zc.o mcnpf/GLOBAL2_vv.o mcnpf/GLOBAL3_st.o mcnpf/GLOBAL4_cg.o mcnpf/GLOBAL4_mb.o mcnpf/GLOBAL4_lk.o mcnpf/GLOBAL5_cm.o mcnpf/GLOBAL6_ht.o mcnpf/IMCN_jc.o mcnpf/GKSSIM_gs.o mcnpf/LAMBDA_lm.o mcnpf/LAMBDA_lt.o mcnpf/MCPLOT_mp.o mcnpf/PLOT_pc.o mcnpf/GLOBAL6_mc.o mcnpf/cemmod.o mcnpf/laqmod31.o mcnpc.a gvaviv.a lcs.a lcs/btbd.o lcs/cabd.o lcs/e0bd.o lcs/elbd.o lcs/h1bd.o lcs/hebd.o lcs/inbd.o lcs/isbd.o lcs/phbd.o lcs/pqbd.o dedx.a dedx/atmdat.o meshtal.a histp.a spabi.a spabi/bdincl1.o spabi/bdincl2.o fluka89.a fluka89/bdnopt.o fluka89/blkdt1.o fluka89/blkdt2.o fluka89/blkdt3.o fluka89/blkdt4.o fluka89/blkdt5.o fluka89/blkdt6.o fluka89/blkdt7.o fluka89/f2bd.o hexs.a hexs/nebd.o hexs/xsbd.o -L/usr/X11/lib -lX11  
Undefined symbols for architecture x86_64:
  "_iargc_", referenced from:
      _getexm_ in mcnpf.a(getexm.o)
  "operator delete(void*)", referenced from:
      _genspfissevt_ in mcnpc.a(LLNLFission.o)
      _genfissevt_ in mcnpc.a(LLNLFission.o)
      _genphotofissevt_ in mcnpc.a(LLNLFission.o)
  "operator new(unsigned long)", referenced from:
      _genspfissevt_ in mcnpc.a(LLNLFission.o)
      _genfissevt_ in mcnpc.a(LLNLFission.o)
      _genphotofissevt_ in mcnpc.a(LLNLFission.o)
  "std::allocator<char>::allocator()", referenced from:
      fissionEvent::SmpSpWatt(int)   in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpTerrell(double) in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpWatt(double, int) in mcnpc.a(LLNLFission.o)
      itoa(int const&) in mcnpc.a(LLNLFission.o)
      fissionEvent::getNSepEng(int)    in mcnpc.a(LLNLFission.o)
      fissionEvent::getNubarg(int, double, double, bool) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)", referenced from:
      fissionEvent::SmpSpWatt(int)   in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpTerrell(double) in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpWatt(double, int) in mcnpc.a(LLNLFission.o)
      itoa(int const&) in mcnpc.a(LLNLFission.o)
      fissionEvent::getNSepEng(int)    in mcnpc.a(LLNLFission.o)
      fissionEvent::getNubarg(int, double, double, bool) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      ...
  "std::allocator<char>::~allocator()", referenced from:
      fissionEvent::SmpSpWatt(int)   in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpTerrell(double) in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpWatt(double, int) in mcnpc.a(LLNLFission.o)
      itoa(int const&) in mcnpc.a(LLNLFission.o)
      fissionEvent::getNSepEng(int)    in mcnpc.a(LLNLFission.o)
      fissionEvent::getNubarg(int, double, double, bool) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      fissionEvent::SmpSpWatt(int)   in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpWatt(double, int) in mcnpc.a(LLNLFission.o)
      fissionEvent::getNSepEng(int)    in mcnpc.a(LLNLFission.o)
      fissionEvent::getNubarg(int, double, double, bool) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyConsAllActinides(double, int) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngPEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()", referenced from:
      fissionEvent::SmpSpWatt(int)   in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpTerrell(double) in mcnpc.a(LLNLFission.o)
      fissionEvent::SmpWatt(double, int) in mcnpc.a(LLNLFission.o)
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
      fissionEvent::getNSepEng(int)    in mcnpc.a(LLNLFission.o)
      fissionEvent::getNubarg(int, double, double, bool) in mcnpc.a(LLNLFission.o)
      fissionEvent::getTotEngNEnergyCons(double, int) in mcnpc.a(LLNLFission.o)
      ...
  "operator new[](unsigned long)", referenced from:
      fissionEvent::allocateMem(int, int) in mcnpc.a(LLNLFission.o)
  "operator delete[](void*)", referenced from:
      fissionEvent::~fissionEvent() in mcnpc.a(LLNLFission.o)
      fissionEvent::~fissionEvent() in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::cerr", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))", referenced from:
      fissionEvent::fissionerr(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) in mcnpc.a(LLNLFission.o)
  "std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from:
      itoa(int const&) in mcnpc.a(LLNLFission.o)
  "std::basic_ostream<char, std::char_traits<char> >::operator<<(int)", referenced from:
      itoa(int const&) in mcnpc.a(LLNLFission.o)
  "std::basic_ios<char, std::char_traits<char> >::operator!() const", referenced from:
      itoa(int const&) in mcnpc.a(LLNLFission.o)
  "std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str() const", referenced from:
      itoa(int const&) in mcnpc.a(LLNLFission.o)
  "std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()", referenced from:
      itoa(int const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long)", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in mcnpc.a(LLNLFission.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*) in mcnpc.a(LLNLFission.o)
  "std::ios_base::Init::Init()", referenced from:
      __static_initialization_and_destruction_0(int, int) in mcnpc.a(LLNLFission.o)
  "std::ios_base::Init::~Init()", referenced from:
      __static_initialization_and_destruction_0(int, int) in mcnpc.a(LLNLFission.o)
  "___gxx_personality_v0", referenced from:
      Dwarf Exception Unwind Info (__eh_frame) in mcnpc.a(LLNLFission.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [mcnpx] Error 1

"

Bruce

  reply	other threads:[~2011-09-07 22:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 21:22 Bruce Hoglund
2011-09-06 21:52 ` Jonathan Wakely
2011-09-07  1:48   ` Bruce Hoglund
2011-09-07  5:06     ` Ian Lance Taylor
2011-09-07  8:28       ` Jonathan Wakely
2011-09-07 13:53         ` Bruce Hoglund
2011-09-07 14:02           ` Jonathan Wakely
2011-09-07 15:26             ` Bruce Hoglund
2011-09-07 15:42               ` Jonathan Wakely
2011-09-07 15:50                 ` Jonathan Wakely
2011-09-07 13:49       ` Bruce Hoglund
2011-09-07 14:07         ` Jonathan Wakely
2011-09-07 15:35           ` Bruce Hoglund
2011-09-07 16:32             ` Ian Lance Taylor
2011-09-07 22:11               ` Bruce Hoglund [this message]
2011-09-09 16:18                 ` Jonathan Wakely
2011-09-09 20:40                   ` Bruce Hoglund
2011-09-07 15:48         ` Ian Lance Taylor
2011-09-07  8:30     ` Jonathan Wakely
     [not found]       ` <37D86901-9803-45C7-B143-CC9A7D3E8814@mac.com>
2011-09-07 15:45         ` Jonathan Wakely

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=48CE1D2E-DFAA-4D30-96A6-5C3EC6ED0B9B@mac.com \
    --to=bhoglund@mac.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=iant@google.com \
    --cc=jwakely.gcc@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).