[M3devel] atomic operations in cm3 (also fails on AMD64_LINUX)

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Tue Feb 28 19:09:01 CET 2012


Hi all:
I don't understand it, what is breaking, the compiler front end, the backend or both or what else? Besides platform feature instability, means that you are doing UNSAFE MODULEs? Question, is your machine SMP? I have one 32 and 64 UP LINUXLIBC6 capable, does it matter if is in one or in the other?
Thanks in advance

--- El mar, 28/2/12, Dragiša Durić <dragisha at m3w.org> escribió:

De: Dragiša Durić <dragisha at m3w.org>
Asunto: Re: [M3devel] atomic operations in cm3 (also fails on AMD64_LINUX)
Para: "Antony Hosking" <antony.hosking at gmail.com>
CC: "m3devel" <m3devel at elegosoft.com>, "Jay K" <jay.krell at cornell.edu>
Fecha: martes, 28 de febrero, 2012 09:08

% cm3--- building in ../AMD64_LINUX ---
new source -> compiling AtomicAddress.m3"../AMD64_LINUX/AtomicAddress.m3", line 3:  18 code generation errors1 error encounterednew exporters -> recompiling AtomicAddress.i3compilation failed => not building program "test"Fatal Error: package build failed
% cat m3makefile import("libm3")
...
Generic_module("Atomic")template("atomic")Atomic("Address")
program ("test")
On Feb 28, 2012, at 2:25 PM, Antony Hosking wrote:
Yes, this is a known bug.
On Feb 28, 2012, at 8:15 AM, Dragiša Durić wrote:
% cm3--- building in ../AMD64_DARWIN ---
new source -> compiling Proxy.m3"../src/Proxy.m3", line 13: warning: not used (JobHandler)1 warning encounterednew source -> compiling AtomicAddress.i3new source -> compiling AtomicAddress.m3"../AMD64_DARWIN/AtomicAddress.m3 => ../src/Atomic.mg", line 52: ********* M3CG_Check ERROR *********** bad stack:  expected [ Int64    ] got [ Addr  Int64   ]

****** runtime error:***    Segmentation violation - possible attempt to dereference NIL***    pc = 0x1002f0838 = Concat + 0x8a in ../src/text/TextCat.m3***
zsh: abort      cm3
On Feb 27, 2012, at 8:15 AM, Dragiša Durić wrote:
m3-libs/m3core/src/atomic/Atomic.ig is well commented, also.

On Feb 27, 2012, at 1:37 AM, Jay K wrote:
Shows how to use it all.
 
It is disabled. Let's try it..



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120228/2b29d53b/attachment-0002.html>


More information about the M3devel mailing list