[nem-bug] [Nemerle 0000677]: Assembly loading problem (prevents ncc
from working, ncc r6281, mono 1.1.15, PowerPC/OSX)
feedback at nemerle.org
feedback at nemerle.org
Thu Nov 23 18:15:23 CET 2006
The following issue has been CLOSED
======================================================================
<http://nemerle.org/bugs/view.php?id=677>
======================================================================
Reported By: d
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 677
Category: Compiler
Reproducibility: always
Severity: block
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 05-14-2006 22:21 CEST
Last Modified: 11-23-2006 18:15 CET
======================================================================
Summary: Assembly loading problem (prevents ncc from working,
ncc r6281, mono 1.1.15, PowerPC/OSX)
Description:
# I used mono 1.1.13 from the binary package for OSX from mono-project.com,
today
# I upgraded to 1.1.15 (same kind of package) and the following errors
occured (same
# after uninstallation and a clean install of mono 1.1.15):
nemerle$ make clean && svn up && ./configure --prefix=/opt/local && make
&& make install
# everything works fine
nemerle$ ncc
** (/opt/local/bin/ncc.exe:7557): WARNING **: The following assembly
referenced from /opt/local/bin/ncc.exe could not be loaded:
Assembly: Nemerle (assemblyref_index=3)
Version: 0.9.3.0
Public Key: e080a9c724e2bfcd
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (/opt/local/bin).
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Stacktrace:
/opt/local/bin/ncc: line 2: 7557 Abort trap mono
/opt/local/bin/ncc.exe "$@"
# With MONO_PATH set:
nemerle$ MONO_PATH=/usr/lib/mono ncc
** (/opt/local/bin/ncc.exe:7560): WARNING **: The following assembly
referenced from /opt/local/bin/ncc.exe could not be loaded:
Assembly: Nemerle.Compiler (assemblyref_index=2)
Version: 0.9.3.0
Public Key: 5291d186334f6101
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (/opt/local/bin).
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Stacktrace:
in Nemerle.CommandlineCompiler.MainClass:Main () <0xffffffff>
in Nemerle.CommandlineCompiler.MainClass:Main () <0x24>
in Nemerle.CommandlineCompiler.MainClass:Main () <0x20>
in (wrapper runtime-invoke) System.Object:runtime_invoke_void
(object,intptr,intptr,intptr) <0x5c>
/opt/local/bin/ncc: line 2: 7560 Abort trap mono
/opt/local/bin/ncc.exe "$@"
nemerle$
# Previously everything worked without any additional effort (like setting
the MONO_PATH and such).
======================================================================
----------------------------------------------------------------------
malekith - 05-15-06 11:33
----------------------------------------------------------------------
Could you check if there is Nemerle directory in /usr/lib/mono/gac and
what's inside?
Also please check if /usr/lib/mono/gac is the location used by the mono
gac (for example with strace or whatever OS X has).
----------------------------------------------------------------------
d - 05-15-06 12:54
----------------------------------------------------------------------
nemerle d$ ls -al /usr/lib/mono/gac
total 0
drwxr-xr-x 6 root wheel 204 May 15 00:13 .
drwxr-xr-x 4 root wheel 136 May 15 00:13 ..
drwxr-xr-x 3 root wheel 102 May 15 00:13 Nemerle
drwxr-xr-x 3 root wheel 102 May 15 00:13 Nemerle.Compiler
drwxr-xr-x 3 root wheel 102 May 15 00:13 Nemerle.Evaluation
drwxr-xr-x 3 root wheel 102 May 15 00:13 Nemerle.Macros
nemerle d$
# strace is not available in the ports collection and not in the system
itself, I don't know of any equivalents
----------------------------------------------------------------------
malekith - 05-15-06 13:11
----------------------------------------------------------------------
It seems that mono uses GAC in same other location. Try a find / -name
System.dll. Nemerle* should sit in the same directory System is.
----------------------------------------------------------------------
d - 05-15-06 14:14
----------------------------------------------------------------------
Ok, I figured this out. The OSX package installs everything under
/Library/Frameworks/Mono.framework and adds some links in /usr/bin to
executables. I figure it's best to stick with system-specific conventions,
so the best solution for now would be using:
./configure --prefix=/Library/Frameworks/Mono.framework/Home \
--libdir=/Library/Frameworks/Mono.framework/Libraries;
ln -s /Library/Frameworks/Mono.framework/Commands/ncc /usr/bin/ncc;
ln -s /Library/Frameworks/Mono.framework/Commands/ncc.exe
/usr/bin/ncc.exe;
ln -s /Library/Frameworks/Mono.framework/Commands/nemish /usr/bin/nemish;
ln -s /Library/Frameworks/Mono.framework/Commands/nemish.exe
/usr/bin/nemish.exe;
That works, but obviously the configure script should be changed.
I guess knowing the directory structure would help in making these
changes:
$ ls -l /Library/Frameworks/Mono.framework/
total 48
lrwxr-xr-x 1 root wheel 20 May 14 21:40 Commands ->
Versions/Current/bin
lrwxr-xr-x 1 root wheel 24 May 14 21:40 Headers ->
Versions/Current/include
lrwxr-xr-x 1 root wheel 16 May 14 21:40 Home -> Versions/Current
lrwxr-xr-x 1 root wheel 20 May 14 21:40 Libraries ->
Versions/Current/lib
lrwxr-xr-x 1 root wheel 23 May 14 21:40 Mono ->
Libraries/libmono.dylib
lrwxr-xr-x 1 root wheel 26 May 14 21:40 Resources ->
Versions/Current/Resources
drwxr-xr-x 4 502 wheel 136 May 15 14:03 Versions
$ ls -l /Library/Frameworks/Mono.framework/Versions/
total 8
drwxr-xr-x 12 502 wheel 408 Apr 26 02:32 1.1.15
lrwxr-xr-x 1 root wheel 6 May 14 21:40 Current -> 1.1.15
$ ls -l /Library/Frameworks/Mono.framework/Versions/Current/
total 16
drwxr-xr-x 5 502 wheel 170 Apr 26 02:32 Resources
drwxr-xr-x 129 502 wheel 4386 May 15 14:04 bin
-rwxr-xr-x 1 502 wheel 562 Apr 26 02:32 env.csh
-rwxr-xr-x 1 502 wheel 589 Apr 26 02:32 env.sh
drwxr-xr-x 3 502 wheel 102 Apr 14 20:32 etc
drwxr-xr-x 22 502 wheel 748 Apr 26 02:32 include
drwxr-xr-x 5 502 wheel 170 Feb 16 23:24 info
drwxr-xr-x 70 502 wheel 2380 May 14 21:40 lib
drwxr-xr-x 5 502 wheel 170 Apr 26 02:32 man
drwxr-xr-x 14 502 wheel 476 Apr 26 02:32 share
----------------------------------------------------------------------
nazgul - 11-23-06 18:15
----------------------------------------------------------------------
Mono configuration problem, so, closing.
Issue History
Date Modified Username Field Change
======================================================================
05-14-06 22:21 d New Issue
05-15-06 11:33 malekith Note Added: 0001292
05-15-06 11:33 malekith Status new => feedback
05-15-06 11:33 malekith Description Updated
05-15-06 12:54 d Note Added: 0001293
05-15-06 13:11 malekith Note Added: 0001294
05-15-06 14:14 d Note Added: 0001295
05-16-06 21:37 d Issue Monitored: d
11-23-06 18:15 nazgul Status feedback => closed
11-23-06 18:15 nazgul Note Added: 0001516
======================================================================
More information about the bugs
mailing list