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

Roland Illig roland.illig at gmx.de
Thu Jan 1 05:18:47 CET 2009


Jay schrieb:
> In your config file, make sure to put -m32 on the cm3cg invocation, and
> perhaps -32 or --32 on the as/gas invocation. They may or may not help.

Thanks for the suggestion. I tried it (SYSTEM_CC="gcc -m32",
SYSTEM_ASM="as --32"), and the program builds fine now. When running it,
I get the following:

Program received signal SIGSEGV, Segmentation fault.
0xdc1ca000 in ?? ()
(gdb) where
#0  0xdc1ca000 in ?? ()
#1  0xf75dee30 in RTThread__FlushStackCache () at RTThread.m3:65
#2  0xf75e49ce in ThreadPosix__DetermineContext
    (M3_AJWxb1_oldSP=0xffb59250) at ThreadPosix.m3:1101
#3  0xf75e4932 in ThreadPosix__InitTopContext (M3_A8sSUp_c=0xf73b203c,
    M3_AJWxb1_stackbase=0xffb5935c) at ThreadPosix.m3:1076
#4  0xf75e5fe5 in ThreadF__Init () at ThreadPosix.m3:1498
#5  0xf75cdfcd in RTLinker__InitRuntime (M3_AcxOUs_p_argc=1,
    M3_AJWxb1_p_argv=0xffb59424, M3_AJWxb1_p_envp=0xffb5942c,
    M3_AJWxb1_p_instance=0x0) at RTLinker.m3:59
#6  0x08048901 in main (argc=1, argv=0xffb59424, envp=0xffb5942c)
    at _m3main.mc:3

The address 0xdc1ca000 does not appear in /proc/self/maps, so I don't
know where to look further.

Roland



More information about the M3devel mailing list