gm2
[Top][All Lists]
Advanced

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

simple compiling/running problem


From: Eric Streit
Subject: simple compiling/running problem
Date: Tue, 10 Oct 2023 12:00:47 +0200
User-agent: Thunderbird Daily

Hi,

I just compiled the last gm2 release.

It went well (well, not so simple at first, as there are no simple instructions about how to do that), but I find out.

So, it runs perfectly (just tried to compile a simple hello program for now), but I got problem when I wanted to execute the resulting a.out

./a.out: error while loading shared libraries: libm2cor.so.18: cannot open shared object file: No such file or directory

I added the corresponding path (/usr/local/lib64 to the ld.so.conf configuration file).

If I launch : ldd a.out, I get this:


*********
eric@aldebaran:~/Devs/Compilation/Test-Modula2$ ldd a.out
        linux-vdso.so.1 (0x00007fff698b0000)
        libm2cor.so.18 => not found
        libm2log.so.18 => not found
        libm2pim.so.18 => not found
        libm2iso.so.18 => not found
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 
(0x00007f7021400000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7021321000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007f7021642000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7021140000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f702168e000)
eric@aldebaran:~/Devs/Compilation/Test-Modula2$
*********

So here are my questions :

1) how can I launch the resulting a.out program ; something is certainly missing. I just tried the first test program from the documentation with the correct parameters (as they were given in the documentation)

2) Why are the correct libraries references not set like they are for the other non-gm2 libraries?

3) What is about this "a.out" resulting program. Why is it not the name of the main module? For a hello.mod -> hello

4) I didn't find test suites for the different dialects implemented in gm2: I'm sure they exist, but couldn't find them.

4) When testing some things in the gcc/m2 directory (the README), they just don't work. They certainly need update (the make doc line in the Readme doesn't work)


Sorry for all of these beginner questions ...


Best regards

Eric







reply via email to

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