Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12575 closed defect (fixed)

mzscheme [Portfile rev. 28205] link(loader) failure

Reported by: cameron@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: mzscheme @executable_path library link Cc: raimue (Rainer Müller), cameron@…
Port:

Description

mzscheme builds okay, but error upon running.

$ sudo port install -v mzscheme
--->  Fetching mzscheme
--->  Verifying checksum(s) for mzscheme
--->  Extracting mzscheme
--->  Configuring mzscheme
--->  Building mzscheme with target all
--->  Staging mzscheme into destroot
--->  Packaging tgz archive for mzscheme 371_0
--->  Installing mzscheme 371_0
--->  Activating mzscheme 371_0
--->  Cleaning mzscheme
$ mzscheme 
dyld: Library not loaded: @executable_path/PLT_MzScheme.framework/Versions/371_3m/PLT_MzScheme
  Referenced from: /opt/local/bin/mzscheme
  Reason: image not found
Trace/BPT trap

This seems to be a recurrence of ticket #11943. I have tried the fix, but it resulted in other problems.

Will keep trying, but when it comes to Ports, I'm stumbling in the dark for the meantime.

Change History (5)

comment:1 Changed 17 years ago by raimue (Rainer Müller)

Cc: raimue@… cameron@… added

Sorry, this was me introducing this regression in r28205. But if I remember correctly it didn't build with this replace as mzschemecgc is used internally as bootstrapper. if you haven't got any mzscheme yet. And I am sure it ran fine on my machine after install, otherwise I wouldn't have committed it... I will investigate the issue.

comment:2 Changed 17 years ago by raimue (Rainer Müller)

Owner: changed from macports-dev@… to raimue@…
Status: newassigned

Oh yes, could reproduce it... Here's the make log:

gcc -o mzschemecgc  main.o -Wl,-headerpad_max_install_names -F. -framework PLT_MzScheme
/usr/bin/install_name_tool -change "PLT_MzScheme.framework/Versions/371/PLT_MzScheme" "/opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/371/PLT_MzScheme" "mzschemecgc"
cd gc2; make all
mkdir xsrc
make xobjects
env XFORM_PRECOMP=yes ../mzschemecgc -rq ./xform.ss --setup --cpp "gcc -E -I/opt/local/include -DOS_X  -fno-common  -DNEWGC_BTC_ACCOUNT  -I./.. -I./../include" -o xsrc/precomp.h ./precomp.c
dyld: Library not loaded: /opt/local/Library/Frameworks/PLT_MzScheme.framework/Versions/371/PLT_MzScheme
  Referenced from: /opt/local/var/macports/build/_Users_Raim_Dev_macports_trunk_dports_lang_mzscheme/work/mz-371/src/mzscheme/gc2/../mzschemecgc
  Reason: image not found
make[4]: *** [xsrc/precomp.h] Trace/BPT trap

So one solution would be to use install_name_tool to correct this path after destrooting.

comment:3 Changed 17 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

Fixed in r28925.

comment:4 Changed 17 years ago by raimue (Rainer Müller)

I reported this problem upstream and it will be fixed in the next release.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.