gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker errors - gm2 on Ubuntu Jammy


From: Nelson H. F. Beebe
Subject: Re: Linker errors - gm2 on Ubuntu Jammy
Date: Thu, 29 Feb 2024 12:32:33 -0700

I tried this experiment on my system with gm2 (GCC) 14.0.1 20240225 
(experimental):

% cat foo.mod
MODULE foo;
BEGIN END foo.

% gm2    -o foo -e foo foo.mod

% ./foo
./foo: error while loading shared libraries: libm2cor.so.19: cannot open shared 
object file: No
such file or directory

% setenv LD_LIBRARY_PATH /usr/uumath/ashare/gcc/gcc-14-20240225/lib64

% ./foo
[no output]

I may have forgotten to report that problem on the gm2 list earlier this
month: the location of the Modula-2 libraries is not being automatically
recorded in the executable produced by gm2.  Setting LD_LIBRARY_PATH
resolves the problem, and I have a large suite for more than 50 test
programs in Modula-2 that successfully compile, link, run, and pass
validation checks, once that variable is set.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                                                          -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]