Opened 8 years ago

Closed 8 years ago

#52834 closed defect (duplicate)

OpenBLAS-devel @20161018 +clang+lapack-universal fails to build

Reported by: gaming-hacker (G Alexander) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: michaelld (Michael Dickens)
Port: OpenBLAS-devel

Description

Please see the log file for port OpenBLAS-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_OpenBLAS/OpenBLAS-devel/main.log
Error: Unable to upgrade port: 1
Error rebuilding OpenBLAS-devel
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_upgrade" line 25)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

Attachments (1)

broken_port.log.zip (182.3 KB) - added by gaming-hacker (G Alexander) 8 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: michaelld added
Owner: changed from macports-tickets@… to NicosPavlov
Port: py27-cryptography removed
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers OpenBLAS-devel), if any.

comment:2 Changed 8 years ago by michaelld (Michael Dickens)

Can you please attach the log file to this ticket? That might help in debugging the issue ...

Changed 8 years ago by gaming-hacker (G Alexander)

Attachment: broken_port.log.zip added

comment:3 Changed 8 years ago by gaming-hacker (G Alexander)

have attached the latest log.

comment:4 Changed 8 years ago by NicosPavlov

I can't reproduce the error, but it seems similar (if not identical?) to #50950, which seemed to be a rather erratic problem. Did you try to clean and build again?

comment:5 Changed 8 years ago by gaming-hacker (G Alexander)

Yes, i did a clean, i'll try it again now.

sudo port clean --all
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in $HOME").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.
sudo port clean Openblas-devel
--->  Cleaning OpenBLAS-devel
sudo port upgrade OpenBLAS-devel
--->  Scanning binaries for linking errors
--->  Found 1 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     OpenBLAS-devel @20161018 +clang+lapack-universal
--->  Cleaning OpenBLAS-devel
--->  Scanning binaries for linking errors
--->  Found 1 broken file(s), matching files to ports
--->  Found 1 broken port(s), determining rebuild order
--->  Rebuilding in order
     OpenBLAS-devel @20161018 +clang+lapack-universal
--->  Computing dependencies for OpenBLAS-devel
--->  Fetching distfiles for OpenBLAS-devel
--->  Verifying checksums for OpenBLAS-devel
--->  Extracting OpenBLAS-devel
--->  Applying patches to OpenBLAS-devel
--->  Configuring OpenBLAS-devel
--->  Building OpenBLAS-devel
Error: org.macports.build for port OpenBLAS-devel returned: command execution failed
Please see the log file for port OpenBLAS-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_OpenBLAS/OpenBLAS-devel/main.log
Error: Unable to upgrade port: 1
Error rebuilding OpenBLAS-devel
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_upgrade" line 25)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

comment:6 Changed 8 years ago by michaelld (Michael Dickens)

What does "port installed libgcc*" return?

comment:7 Changed 8 years ago by gaming-hacker (G Alexander)

thanks for the help.

here is result.

i am using xcode 7.3.1

port installed libgcc*
The following ports are currently installed:
  libgcc-devel @7-20161106_0 (active)

does the port need libgcc 6.2.0?

Last edited 8 years ago by gaming-hacker (G Alexander) (previous) (diff)

comment:8 Changed 8 years ago by michaelld (Michael Dickens)

OK. What does "port contents libgcc-devel" return?

comment:9 Changed 8 years ago by gaming-hacker (G Alexander)

Port libgcc-devel contains:
  /opt/local/lib/libgcc/libatomic.1.dylib
  /opt/local/lib/libgcc/libgcc_ext.10.4.dylib
  /opt/local/lib/libgcc/libgcc_ext.10.5.dylib
  /opt/local/lib/libgcc/libgcc_s.1.dylib
  /opt/local/lib/libgcc/libgomp.1.dylib
  /opt/local/lib/libgcc/libitm.1.dylib
  /opt/local/lib/libgcc/libobjc-gnu.4.dylib
  /opt/local/lib/libgcc/libquadmath.0.dylib
  /opt/local/lib/libgcc/libssp.0.dylib
  /opt/local/lib/libgcc/libstdc++.6.dylib
  /opt/local/lib/libstdc++.6.dylib

comment:10 Changed 8 years ago by michaelld (Michael Dickens)

OK. And, therein lies the problem: no libgfortran.3.dylib! See also ticket #52852. When I install the libgcc port, copy its libgfortran.3.dylib, activate libgcc-devel, copy the libgfortran.3.dylib into position, then clean and build openblas-devel, the build succeeds. I've no idea why libgcc-devel isn't building/installing libgfortran.3.dylib; I do feel better that it's not just me ;)

If you want to fix this issue, the following should work (it does for me):

sudo port -f deact libgcc-devel
sudo port install libgcc
sudo port clean openblas-devel
sudo port install openblas-devel

comment:11 Changed 8 years ago by michaelld (Michael Dickens)

I think this ticket is different than #50950. The error logs show very different missing symbols. I can easily replicate this ticket's issue, with the libgfortran.3.dylib either in place or not. I can't replicate the other ticket's issue.

comment:12 Changed 8 years ago by gaming-hacker (G Alexander)

the variant i used before was +clang+lapack-universal.

this variant is +clang+lapack

and solution worked for me.

--->  Computing dependencies for OpenBLAS-devel
--->  Fetching distfiles for OpenBLAS-devel
--->  Verifying checksums for OpenBLAS-devel
--->  Extracting OpenBLAS-devel
--->  Applying patches to OpenBLAS-devel
--->  Configuring OpenBLAS-devel
--->  Building OpenBLAS-devel
--->  Staging OpenBLAS-devel into destroot
--->  Installing OpenBLAS-devel @20161018_0+clang+lapack
--->  Activating OpenBLAS-devel @20161018_0+clang+lapack
--->  Cleaning OpenBLAS-devel
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found. 
Last edited 8 years ago by gaming-hacker (G Alexander) (previous) (diff)

comment:13 Changed 8 years ago by michaelld (Michael Dickens)

Great; thanks for the feedback!

comment:14 Changed 8 years ago by michaelld (Michael Dickens)

Resolution: duplicate
Status: assignedclosed

Closing as duplicate since the issue is really that being addressed in ticket #52852.

Note: See TracTickets for help on using tickets.