Opened 3 years ago

Closed 3 years ago

#64574 closed defect (fixed)

vecLibFort: error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory

Reported by: barracuda156 Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: leopard snowleopard lion mountainlion mavericks haspatch Cc:
Port: vecLibFort

Description

In file included from vecLibFort.c:22:
In file included from vecLibFort.c:22vecLib-760.100.h:48:91::
 vecLib-760.100.h:48:91:error:  Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directoryerror: 
Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
vecLib-760.100.h:52:77: error: vecLib-760.100.h:52:77: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
vecLib-760.100.h:53:76: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directoryvecLib-760.100.h:53:76:
 error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directory
vecLib-760.100.h:57:85: error: Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
vecLib-760.100.h:57:85: error: Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
In file included from vecLibFort.c:22:
vecLib-760.100.h:48:91: error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
vecLib-760.100.h:52:77: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
vecLib-760.100.h:53:76: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directory
vecLib-760.100.h:57:85: error: Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
In file included from vecLibFort.c:22:
vecLib-760.100.h:48:91: error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
vecLib-760.100.h:52:77: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
vecLib-760.100.h:53:76: error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directory
vecLib-760.100.h:57:85: error: Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
fatal error: lipo: can't figure out the architecture type of: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/.tmp/ccuo67o8.out
make: *** [libvecLibFortI.dylib] Error 1
make: *** Waiting for unfinished jobs....
fatal error: lipo: can't figure out the architecture type of: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/.tmp/ccP3wcdc.out
make: *** [vecLibFort.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/mcg1969-vecLibFort-4e39a68'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/make -j4 -w all CC=/usr/bin/gcc-4.2 CFLAGS="-Os -arch ppc -arch ppc64" PREFIX=/opt/local LD=/usr/bin/gcc-4.2 LDFLAGS="-arch ppc -arch ppc64" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/destroot/opt/local 
Exit code: 2
Error: Failed to build vecLibFort: command execution failed

Attachments (3)

main.log (15.8 KB) - added by barracuda156 3 years ago.
main_10.6.8.log (61.8 KB) - added by barracuda156 3 years ago.
patch-vecLibFort.diff (583 bytes) - added by ryandesign (Ryan Carsten Schmidt) 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by barracuda156

It also fails to build for ppc on 10.6.8 Rosetta:

Sergey-Fedorovs-Mac-mini:~ svacchanda$ sudo port -v install vecLibFort
Password:
--->  Fetching distfiles for vecLibFort
--->  vecLibFort-0.4.2.tar.gz does not exist in /opt/local/var/macports/distfiles/vecLibFort
--->  Attempting to fetch vecLibFort-0.4.2.tar.gz from https://codeload.github.com/mcg1969/vecLibFort/legacy.tar.gz/0.4.2?dummy=
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10265    0 10265    0     0   5597      0 --:--:--  0:00:01 --:--:--  5603
--->  Verifying checksums for vecLibFort
--->  Checksumming vecLibFort-0.4.2.tar.gz
--->  Extracting vecLibFort
--->  Extracting vecLibFort-0.4.2.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/vecLibFort/vecLibFort-0.4.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to vecLibFort
--->  Applying patch-Makefile.diff
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/vecLibFort/files/patch-Makefile.diff'
patching file Makefile
--->  Applying patch-add-local-vecLib-760.100-header.diff
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/vecLibFort/files/patch-add-local-vecLib-760.100-header.diff'
patching file vecLib-760.100.h
--->  Applying patch-vecLibFort.diff
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/vecLibFort/files/patch-vecLibFort.diff'
patching file vecLibFort.c
--->  Configuring vecLibFort
--->  Building vecLibFort
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/make -j4 -w all CC=/usr/bin/gcc-4.2 CFLAGS="-Os -arch ppc" PREFIX=/opt/local LD=/usr/bin/gcc-4.2 LDFLAGS="-arch ppc" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/destroot/opt/local 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/mcg1969-vecLibFort-4e39a68'
/usr/bin/gcc-4.2 -Os -arch ppc   -c -o vecLibFort.o vecLibFort.c
/usr/bin/gcc-4.2 -shared -arch ppc -DVECLIBFORT_INTERPOSE -o libvecLibFortI.dylib -O vecLibFort.c \
		-Wl,-reexport_framework -Wl,Accelerate \
		-install_name /opt/local/lib/libvecLibFortI.dylib
In file included from vecLibFort.c:22:
vecLib-760.100.h:48:91:In file included from vecLibFort.c:22 :
vecLib-760.100.h:48:91: error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directoryerror: 
Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
vecLib-760.100.h:52:77: error: vecLib-760.100.h:52:77: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Sparse.h: No such file or directory
vecLib-760.100.h:53:76: error: vecLib-760.100.h:53:76:Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directory 
error: Accelerate/../Frameworks/vecLib.framework/Headers/Sparse/Solve.h: No such file or directory
vecLib-760.100.h:57:85: vecLib-760.100.h:57:85: error: error: Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
Accelerate/../Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
vecLib-760.100.h:61:73: error: Accelerate/../Frameworks/vecLib.framework/Headers/BNNS/bnns.h: No such file or directory
make: *** [libvecLibFortI.dylib] Error 1
make: *** Waiting for unfinished jobs....
vecLibFort.c: In function ‘loadlib’:
vecLibFort.c:206: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘void *’
make: *** [vecLibFort.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/mcg1969-vecLibFort-4e39a68'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/make -j4 -w all CC=/usr/bin/gcc-4.2 CFLAGS="-Os -arch ppc" PREFIX=/opt/local LD=/usr/bin/gcc-4.2 LDFLAGS="-arch ppc" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/destroot/opt/local 
Exit code: 2
Error: Failed to build vecLibFort: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port vecLibFort failed
Sergey-Fedorovs-Mac-mini:~ svacchanda$ sudo port -v install vecLibFort configure.compiler=macports-gcc-7
--->  Computing dependencies for vecLibFort.
--->  Building vecLibFort
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/make -j4 -w all CC=/opt/local/bin/gcc-mp-7 CFLAGS="-Os -arch ppc" PREFIX=/opt/local LD=/opt/local/bin/gcc-mp-7 LDFLAGS="-arch ppc" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/destroot/opt/local 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/mcg1969-vecLibFort-4e39a68'
/opt/local/bin/gcc-mp-7 -Os -arch ppc   -c -o vecLibFort.o vecLibFort.c
/opt/local/bin/gcc-mp-7 -shared -arch ppc -DVECLIBFORT_INTERPOSE -o libvecLibFortI.dylib -O vecLibFort.c \
		-Wl,-reexport_framework -Wl,Accelerate \
		-install_name /opt/local/lib/libvecLibFortI.dylib
In file included from vecLibFort.c:22:0:
vecLib-760.100.h:48:10: fatal error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
 #include <Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from vecLibFort.c:22:0:
vecLib-760.100.h:48:10: fatal error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory
 #include <Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make: *** [libvecLibFortI.dylib] Error 1
make: *** Waiting for unfinished jobs....
make: *** [vecLibFort.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/mcg1969-vecLibFort-4e39a68'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/vecLibFort-0.4.2" && /usr/bin/make -j4 -w all CC=/opt/local/bin/gcc-mp-7 CFLAGS="-Os -arch ppc" PREFIX=/opt/local LD=/opt/local/bin/gcc-mp-7 LDFLAGS="-arch ppc" DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/work/destroot/opt/local 
Exit code: 2
Error: Failed to build vecLibFort: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_vecLibFort/vecLibFort/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port vecLibFort failed

Changed 3 years ago by barracuda156

Attachment: main_10.6.8.log added

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to tenomoto
Status: newassigned

I suspect this was caused by the fix for #63717. (The build failed with the version of vecLib.h in the macOS 12 SDK therefore vecLibFort now includes a copy of the macOS 11 SDK's vecLib.h, but this copy of vecLib.h is quite different from the one that is needed for systems as old as 10.6.)

Try replacing patch-vecLibFort.diff in the port's files directory with the attached version. If that works, we can send a PR to the developers.

Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: patch-vecLibFort.diff added

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: leopard snowleopard haspatch added; PowerPC Leopard ppc64 removed
Summary: vecLibFort fails to build for ppc+ppc64 on 10.5.8: fatal error: lipo: can't figure out the architecture type of: /opt/local/var/macports/buildvecLibFort: error: Accelerate/../Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h: No such file or directory

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: lion mountainlion mavericks added

I confirmed the bug on Mac OS X 10.7 and that my fix works.

I reported it to the developers: https://github.com/mcg1969/vecLibFort/issues/14

I sent them the fix: https://github.com/mcg1969/vecLibFort/pull/15

I sent a PR to update the port to 0.4.3 and include this fix: https://github.com/macports/macports-ports/pull/13955

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 69bf3ea117e3ebc5304976ee6ad11e5e311e04ab/macports-ports (master):

vecLibFort: Update to 0.4.3

Updated to 0.4.3, switched to archive tarball, and removed patchfiles
now incorporated upstream.

Added new patch to fix build failure on OS X 10.9 and earlier.

Closes: #64574

Switched to makefile 1.0 portgroup. Removed now-unnecessary directives.

Changed Makefile patch slightly. Submitted upstream pull requests for
some of our improvements; noted these URLs at the top of the patch.

Escaped quotes in long description so that they show up and changed Mac
OS X to macOS.

Note: See TracTickets for help on using tickets.