gm2
[Top][All Lists]
Advanced

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

Re: Error when using EXPORT UNQUALIFIED in an FFI def. module


From: Alice Osako
Subject: Re: Error when using EXPORT UNQUALIFIED in an FFI def. module
Date: Tue, 2 Apr 2024 22:28:55 -0400
User-agent: Mozilla Thunderbird

Gaius Mulley:
Alice Osako <alicetrillianosako@gmail.com> writes:

Sorry to bring yet more things up here.
all valuable feedback thanks!

I set up the source dir via:

$ mkdir build
$ cd build
$ cp ../src/posix/stdio.gm2.pim.def stdio.def
$ cp ../src/Size.longint.def Size.def
$ cp ../src/imp/BasicFileSys.mod .
$ gm2 -g -I../src/ -fsources -c BasicFileSys.mod 
Compiling: BasicFileSys.mod
Pass 0: lexical analysis, parsing, modules and associated filenames
   Module SYSTEM               : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2cor/SYSTEM.def [m2cor]
   Module M2RTS                : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2pim/M2RTS.def [m2pim]
   Module RTExceptions         : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2pim/RTExceptions.def [m2pim]
   Module BasicFileSys         : ../src/BasicFileSys.def
   Module BasicFileSys         : BasicFileSys.mod
   Module COROUTINES           : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2pim/COROUTINES.def [m2pim] (for C)
   Module Size                 : ./Size.def
   Module FileSystem           : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2log/FileSystem.def [m2log]
   Module FIO                  : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2pim/FIO.def [m2pim]
   Module DynamicStrings       : /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2pim/DynamicStrings.def [m2pim]
Pass 1: scopes, enumerated types, imports and exports
Pass 2: constants and types
Pass C: aggregate constants
Pass 3: quadruple generation
Pass 4: gcc tree generation
        symbols to gcc trees
        statements to gcc trees
terminate called after throwing an instance of 'unsigned int'
cc1gm2: internal compiler error: Aborted

and the error is the relop in the const _expression_ as reported before.

I had to fix a couple of bugs in BasicFileSys.mod

Thank you!

reply via email to

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