However, while trying to compile the “twice.dats” example using the
command “patscc twice.dats”, I get a compilation error that says “undefined
reference to `atsruntime_malloc_undef’” (several times).
Am I missing something? Should I be using another command (a similar
command has been working on previous examples)? Is there a problem with
my installation of ATS?
However, while trying to compile the “twice.dats” example using the
command “patscc twice.dats”, I get a compilation error that says
“undefined
reference to `atsruntime_malloc_undef’” (several times).
Here is the link to “twice.dats” that I have been using:
And, here’s the output of running “patscc --version”:
exec(patsopt --version)
Hello from ATS2(ATS/Postiats)!
ATS/Postiats version 0.0.5 with Copyright (c) 2011-2013 Hongwei Xi
exec(patsopt --version) = 0
exec(gcc -std=c99 -D_XOPEN_SOURCE -I${PATSHOME} -I${PATSHOME}/ccomp/runtime
-L${PATSHOME}/ccomp/atslib/lib -L${PATSHOME}/ccomp/atslib/lib64 –
version)
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There isNO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Am I missing something? Should I be using another command (a similar
command has been working on previous examples)? Is there a problem with
my installation of ATS?
If you want to run garbage collection, you can use -DATS_MEMALLOC_GCBDW.
If you do, you need libgc by Hans Bohem.On Wednesday, February 12, 2014 3:08:52 PM UTC-5, Brandon Barker wrote:
I just ran in to this one yesterday, you need the -DATS_MEMALLOC_LIBC flag.
However, while trying to compile the “twice.dats” example using the
command “patscc twice.dats”, I get a compilation error that says
“undefined
reference to `atsruntime_malloc_undef’” (several times).
Here is the link to “twice.dats” that I have been using:
And, here’s the output of running “patscc --version”:
exec(patsopt --version)
Hello from ATS2(ATS/Postiats)!
ATS/Postiats version 0.0.5 with Copyright (c) 2011-2013 Hongwei Xi
exec(patsopt --version) = 0
exec(gcc -std=c99 -D_XOPEN_SOURCE -I${PATSHOME} -I${PATSHOME}/ccomp/runtime
-L${PATSHOME}/ccomp/atslib/lib -L${PATSHOME}/ccomp/atslib/lib64 --version
)
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Am I missing something? Should I be using another command (a similar
command has been working on previous examples)? Is there a problem with
my installation of ATS?
However, while trying to compile the “twice.dats” example using the
command “patscc twice.dats”, I get a compilation error that says “undefined
reference to `atsruntime_malloc_undef’” (several times).
Here is the link to “twice.dats” that I have been using:
And, here’s the output of running “patscc --version”:
exec(patsopt --version)
Hello from ATS2(ATS/Postiats)!
ATS/Postiats version 0.0.5 with Copyright (c) 2011-2013 Hongwei Xi
exec(patsopt --version) = 0
exec(gcc -std=c99 -D_XOPEN_SOURCE -I${PATSHOME} -I${PATSHOME}/ccomp/runtime
-L${PATSHOME}/ccomp/atslib/lib -L${PATSHOME}/ccomp/atslib/lib64 --version)
gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
.
Am I missing something? Should I be using another command (a similar
command has been working on previous examples)? Is there a problem with
my installation of ATS?