Opened 10 years ago

Closed 10 years ago

Last modified 3 years ago

#42997 closed defect (worksforme)

llvm-3.3: dyld: Library not loaded: /opt/local/lib/libffi.5.dylib Referenced from: /opt/local/libexec/llvm-3.3/bin/llvm-config

Reported by: gysungrad@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: mascguy (Christopher Nielsen)
Port: llvm-3.3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I ran "sudo port selfupdate" and "sudo port upgrade outdated", and get "upgrade outdated" failed.

--->  Computing dependencies for ld64
--->  Building ld64
Error: org.macports.build for port ld64 returned: command execution failed

Here is what main.log said.

:info:build dyld: Library not loaded: /opt/local/lib/libffi.5.dylib
:info:build   Referenced from: /opt/local/libexec/llvm-3.3/bin/llvm-config
:info:build   Reason: image not found

I know libffi was updated to a newer version which now provides libffi version 6 that I have now.

I attached main.log.

Any idea? Thanks.

Attachments (1)

main.log (15.6 KB) - added by gysungrad@… 10 years ago.
Here is the main.log

Download all attachments as: .zip

Change History (11)

Changed 10 years ago by gysungrad@…

Attachment: main.log added

Here is the main.log

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

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: llvm-3.3 added
Summary: dyld: Library not loaded: /opt/local/lib/libffi.5.dylib Referenced from: /opt/local/libexec/llvm-3.3/bin/llvm-configllvm-3.3: dyld: Library not loaded: /opt/local/lib/libffi.5.dylib Referenced from: /opt/local/libexec/llvm-3.3/bin/llvm-config

comment:2 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

libffi was updated a year ago. llvm-3.3 also had a revbump in that time period.

What is the output of:

port installed llvm-3.3

comment:3 in reply to:  2 Changed 10 years ago by gysungrad@…

Replying to jeremyhu@…:

libffi was updated a year ago. llvm-3.3 also had a revbump in that time period.

What is the output of:

port installed llvm-3.3

Here is the output

The following ports are currently installed:
  llvm-3.3 @3.3_1 (active)

comment:4 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

That makes no sense to me. How did you build 3.3_1 against a year old version of libffi?

I first thought there was a dependency cycle, but libffi has no dependencies.

What are the timestamps of your libffi and llvm-3.3 builds?

comment:5 in reply to:  4 Changed 10 years ago by gysungrad@…

Replying to jeremyhu@…:

That makes no sense to me. How did you build 3.3_1 against a year old version of libffi?

I first thought there was a dependency cycle, but libffi has no dependencies.

What are the timestamps of your libffi and llvm-3.3 builds?

I am not sure how to check that...

But this is for libffi:

The following ports are currently installed:
  libffi @3.0.10_2
  libffi @3.0.13_0 (active)

comment:6 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

There might be a way with port, but I just look at the timestamp on the archive:

$ ls -l /opt/local/var/macports/software/libffi*
total 56
-rw-r--r-- 1 root admin 54114 Jul 17  2013 libffi-3.0.13_0+universal.darwin_13.i386-x86_64.tbz2

comment:7 in reply to:  6 Changed 10 years ago by gysungrad@…

Replying to jeremyhu@…:

There might be a way with port, but I just look at the timestamp on the archive:

$ ls -l /opt/local/var/macports/software/libffi*
total 56
-rw-r--r-- 1 root admin 54114 Jul 17  2013 libffi-3.0.13_0+universal.darwin_13.i386-x86_64.tbz2

Okay, this is what I got.

$ ls -l /opt/local/var/macports/software/libffi/
total 208
-rw-r--r--  1 macports  admin    64K May 23  2012 libffi-3.0.10_2.darwin_10.x86_64.tbz2
-rw-r--r--  1 macports  admin    36K Mar 21 16:21 libffi-3.0.13_0.darwin_10.x86_64.tbz2


$ ls -l /opt/local/var/macports/software/llvm-3.3/
total 420776
-rw-r--r--  1 root  admin   205M Sep 20  2013 llvm-3.3-3.3_1.darwin_10.x86_64.tbz2

comment:8 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

Yeah, so ... somehow you avoided updating libffi for the past year?

Please just rebuild llvm-3.3

comment:9 in reply to:  8 Changed 10 years ago by gysungrad@…

Replying to jeremyhu@…:

Yeah, so ... somehow you avoided updating libffi for the past year?

Please just rebuild llvm-3.3

Thanks for your help. I really appreciate that.

But I got error when I rebuilt llvm-3.3. I have no idea what happened...

$ sudo port clean llvm-3.3
--->  Cleaning llvm-3.3

Then

$ sudo port upgrade -s -n --force llvm-3.3
--->  Computing dependencies for llvm-3.3
--->  Fetching distfiles for llvm-3.3
--->  Verifying checksums for llvm-3.3
--->  Extracting llvm-3.3
--->  Applying patches to llvm-3.3
--->  Configuring llvm-3.3
--->  Building llvm-3.3
--->  Staging llvm-3.3 into destroot
--->  Unable to uninstall llvm-3.3 @3.3_1, the following ports depend on it:
--->  	cctools @839_2+llvm33
--->  	ld64 @127.2_6+llvm33
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating llvm-3.3 @3.3_1
--->  Unable to deactivate llvm-3.3 @3.3_1, the following ports depend on it:
--->  	cctools @839_2+llvm33
--->  	ld64 @127.2_6+llvm33
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning llvm-3.3
--->  Uninstalling llvm-3.3 @3.3_1
--->  Cleaning llvm-3.3
--->  Computing dependencies for llvm-3.3
--->  Installing llvm-3.3 @3.3_1
--->  Activating llvm-3.3 @3.3_1
--->  Cleaning llvm-3.3
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  Found 77 broken file(s), matching files to ports
--->  Found 9 broken port(s), determining rebuild order
--->  Rebuilding in order
     jasper @1.900.1 
     lcms2 @2.5 
     ghostscript @9.01 
     gd2 @2.1.0 +x11
     cairo @1.12.16 +x11
     pango @1.30.0 +x11
     GraphicsMagick @1.3.19 +q8
     gnuplot @4.6.0 +luaterm+pangocairo
     octave @3.2.4 +atlas+gcc44
--->  Computing dependencies for jasper
--->  Cleaning jasper
--->  Computing dependencies for lcms2
--->  Cleaning lcms2
--->  Computing dependencies for ghostscript
--->  Building ghostscript
Error: org.macports.build for port ghostscript returned: command execution failed
Please see the log file for port ghostscript for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/ghostscript/main.log
Error: Unable to upgrade port: 1
Error rebuilding ghostscript
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 382)
    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 93)
    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 4857)

comment:10 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.