[M3devel] Is Modula-3 available on x86_64-unknown-linux-gnu?

Roland Illig roland.illig at gmx.de
Thu Jan 1 13:19:36 CET 2009


Jay schrieb:
> Can you please try a newer build?
> ie: one that uses pthreads?

I first used cm3-5.4.0, which had the problems you mentioned with the
user threads.

Then I tried cm3-5.5.0, which always produces an internal compiler error
(Segmentation Fault) in cm3cg, which unfortunately has all debugging
symbols stripped:

    $ /home/roland/usr.local/packages/cm3-5.5.0/bin/cm3
    --- building in LINUXLIBC6 ---

    new source -> compiling Hello.m3
    Hello.m3: In function 'Hello_M3':
    Hello.m3:25: internal compiler error: Segmentation fault

At last I tried today's daily snapshot (5.7.0-2009-01-01-03). I was
confused about the installer, which isn't interactive anymore. And if I
run "./cminstall --help" or "./cminstall -?", like probably every Unix
user would do, I don't even get a useful error message. Most programs
print a single line that looks like:

    usage: ./cminstall [-verbose] [-interactive] directory

That message would have been very helpful. Finally I got around this
usability issue, and managed to install it. Since the installation was
completely non-interactive, I edited the cm3.cfg file manually. I set
SYSTEM_CC="/usr/bin/gcc -m32" and SYSTEM_AS="/usr/bin/as --32", and
changed all "-L/usr/lib" into "-L/usr/lib32". Then I tried to build the
hello world program, and this is what I got:

    $ /home/roland/usr.local/packages/cm3-5.7.0.2009.01.01/bin/cm3
    --- building in LINUXLIBC6 ---

    new source -> compiling Hello.m3
     -> linking hello
    $ ./LINUXLIBC6/hello
    Hello World!

Yippieeeeh.

Roland



More information about the M3devel mailing list