[Yt-svn] New issue 319 in yt: Cannot link stdio `getline` with Apple GCC

Bitbucket issues-reply at bitbucket.org
Mon Nov 7 11:07:52 PST 2011


--- you can reply above this line ---

New issue 319: Cannot link stdio `getline` with Apple GCC
https://bitbucket.org/yt_analysis/yt/issue/319/cannot-link-stdio-getline-with-apple-gcc

Casey Stark / caseywstark on Mon, 7 Nov 2011 20:07:52 +0100:

Description:
  In the new fortran_reader.pyx, we import the getline function from stdio.h. This works great on any sane linux system, but does not work for Macs. This code works fine on NERSC machines, but I tried updating and running locally, and got this trace:

{{{
File "/Users/caseywstark/Development/Science/yt/yt-yt/lib/python2.7/site-packages/yt-2.3dev-py2.7-macosx-10.4-x86_64.egg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 39, in <module>
    from yt.utilities.amr_utils import \
ImportError: dlopen(/Users/caseywstark/Development/Science/yt/yt-yt/lib/python2.7/site-packages/yt-2.3dev-py2.7-macosx-10.4-x86_64.egg/yt/utilities/amr_utils.so, 2): Symbol not found: _getline
  Referenced from: /Users/caseywstark/Development/Science/yt/yt-yt/lib/python2.7/site-packages/yt-2.3dev-py2.7-macosx-10.4-x86_64.egg/yt/utilities/amr_utils.so
  Expected in: dynamic lookup
}}}

I looked into this more, and found that Apple's stdio.h (from FreeBSD, not GNU) does not contain getline. God knows why. Source: http://forums.macrumors.com/showthread.php?t=891660

I'm not sure what the best fix is, but I know a lot of yt users use the Apple shipped gcc, so we should probably fix this. We can grab the GNU getline source, as someone suggests above or we could use another function. Anyone?

Responsible:
  MatthewTurk
--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the yt-svn mailing list