Skip to content

Spack ABI check doesn't work properly with Apple gcc 4.2.1 (which is clang) #3529

@kielfriedt

Description

@kielfriedt

libdwarf failure when building it with elfutils for elf. I tried to install 'libdwarf@20130207%[email protected]'
and encountered an issue. I believe this is because of the recent changes @lee218llnl did with elf. Stack trace is below and gave multiple examples of how to cause the issue.

./bin/spack install libdwarf@20130207%[email protected]
==> Error: ProcessError: Command exited with status 1:
    '/Users/friedt2/wip/spack/var/spack/stage/elfutils-0.168-nbsfzimkr72rsdiavgwcbilsg7whg6gw/elfutils-0.168/configure' '--prefix=/Users/friedt2/wip/spack/opt/spack/darwin-elcapitan-x86_64/gcc-4.2.1/elfutils-0.168-nbsfzimkr72rsdiavgwcbilsg7whg6gw' '--enable-maintainer-mode'
/Users/friedt2/wip/spack/lib/spack/spack/build_systems/autotools.py:264, in configure:
     257      def configure(self, spec, prefix):
     258          """Runs configure with the arguments specified in :py:meth:`.configure_args`
     259          and an appropriately set prefix.
     260          """
     261          options = ['--prefix={0}'.format(prefix)] + self.configure_args()
     262  
     263          with working_dir(self.build_directory, create=True):
  >> 264              inspect.getmodule(self).configure(*options)
./bin/spack install libdwarf@20130207%[email protected] ^libelf

spack/lib/spack/spack/abi.py", line 71, in _gcc_get_libstdcxx_version
    libpath = os.readlink(output.strip())
OSError: [Errno 2] No such file or directory: 'libstdc++.dylib'
./bin/spack install libdwarf@20130207%[email protected] ^libelf

KeyError: 'No such spec in database! [email protected]%[email protected] arch=darwin-elcapitan-x86_64'

@lee218llnl Should we set the default elf implementation back to libelf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions