Opened 9 years ago

Closed 4 years ago

#49658 closed defect (fixed)

atlas: build fails to due to incorrectly named directory in path to libgfortran.dylib

Reported by: robballantyne3@… Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: seanfarley (Sean Farley), dstrubbe (David Strubbe), astrofitz (Michael Fitzgerald), EJFielding (Eric Fielding), kpreid (Kevin Reid)
Port: atlas

Description (last modified by dstrubbe (David Strubbe))

The log file showed the following error:

:info:build cd RCW_tMp ; /usr/bin/clang -O3 -fomit-frame-pointer -fPIC -march=native -mfma  -dynamiclib -o ../libsatlas.dylib \
:info:build         -install_name /opt/local/lib/libsatlas.dylib -current_version 3.10.2 \
:info:build         -compatibility_version 3.10.2 *.o -lpthread -lm /opt/local/lib/gcc4.9/libgfortran.dylib
:info:build clang: error: no such file or directory: '/opt/local/lib/gcc4.9/libgfortran.dylib'
:info:build make[1]: *** [dylib] Error 1
:info:build make: *** [shared_all] Error 2

The library was available as /opt/local/lib/gcc49/libgfortran.dylib.

I was able to build by use of a simple symlink (cd /opt/local/lib; ln -s gcc49 gcc4.9)

Change History (11)

comment:1 Changed 9 years ago by dstrubbe (David Strubbe)

Cc: sean@… added
Owner: changed from macports-tickets@… to vince@…
Port: atlas added
Summary: atlas fails to due to incorrectly named directory in path to libgfortran.dylibatlas: build fails to due to incorrectly named directory in path to libgfortran.dylib

comment:2 Changed 9 years ago by dstrubbe (David Strubbe)

Please set the port field and CC the maintainer in future, and in the title specify the version and variants you were using. Refer to the guidelines at https://guide.macports.org/#project.tickets.

comment:3 Changed 9 years ago by dstrubbe (David Strubbe)

Description: modified (diff)

comment:4 Changed 9 years ago by dstrubbe (David Strubbe)

I believe these are the lines at fault in the Portfile that introduced the dot, if you were using the +clang variant:

                set gcc_version   \
                [string replace ${configure.f77} 0 [string length ${prefix}]+[string length bin/gfortran-mp-]]

comment:5 Changed 9 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added

Cc Me!

comment:6 Changed 9 years ago by astrofitz (Michael Fitzgerald)

Cc: astrofitz@… added

Cc Me!

comment:7 Changed 9 years ago by EJFielding (Eric Fielding)

Cc: Eric.J.Fielding@… added

Cc Me!

comment:8 Changed 9 years ago by macports@…

CC me!

comment:9 Changed 9 years ago by kpreid (Kevin Reid)

Cc: kpreid@… added

Cc Me!

comment:10 Changed 9 years ago by chanmhy@…

I can confirm I run into this bug on El Capitan, +mpclang37 variant.

comment:11 Changed 4 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed
  • Not relevant anymore -
Note: See TracTickets for help on using tickets.