Solved Need help with building ponyc on FreeBSD 10.4-STABLE

Hi,

I tried to built the Pony programming language on FreeBSD using its instructions:
https://github.com/ponylang/ponyc#building-ponyc-from-source

I got a compiler error any clue or hint why this does happen on FreeBSD 10.4-STABLE?



Here is the output:

Code:
vagrant@freebsd:~/pony-bsd/ponyc % gmake
actor.c
messageq.c
asio.c
event.c
kqueue.c
fun.c
hash.c
list.c
stack.c
actormap.c
cycle.c
delta.c
gc.c
objectmap.c
serialise.c
trace.c
directory.c
io.c
lsda.c
paths.c
posix_except.c
socket.c
ssl.c
stat.c
stdfd.c
time.c
alloc.c
heap.c
pagemap.c
pool.c
options.c
ponyassert.c
threads.c
cpu.c
mpmcq.c
mutemap.c
scheduler.c
start.c
Linking libponyrt
blake2b-ref.c
Linking libblake2
ast.c
bnfprint.c
error.c
frame.c
id.c
lexer.c
lexint.c
parser.c
parserapi.c
printbuf.c
source.c
stringtab.c
symtab.c
token.c
treecheck.c
codegen.c
genbox.c
gencall.c
gencontrol.c
gendebug.cc
gendesc.c
genexe.c
genexpr.c
genfun.c
genheader.c
genident.c
genjit.c
genlib.c
genmatch.c
genname.c
genobj.c
genoperator.c
genopt.cc
genprim.c
genreference.c
genserialise.c
gentrace.c
gentype.c
host.cc
array.c
call.c
control.c
ffi.c
lambda.c
literal.c
match.c
operator.c
postfix.c
reference.c
casemethod.c
docgen.c
expr.c
finalisers.c
flatten.c
import.c
names.c
pass.c
refer.c
scope.c
serialisers.c
sugar.c
syntax.c
traits.c
verify.c
buildflagset.c
ifdef.c
package.c
platformfuns.c
program.c
use.c
paths.c
ponyc.c
paint.c
reach.c
subtype.c
alias.c
assemble.c
cap.c
compattype.c
lookup.c
matchtype.c
reify.c
safeto.c
sanitise.c
subtype.c
typeparam.c
viewpoint.c
call.c
control.c
fun.c
Linking libponyc
gtest-all.cc
Linking libgtest
gbenchmark_main.cc
gbenchmark-all.cc
Linking libgbenchmark
main.c
Linking ponyc
build/release/libponyrt.a(pool.o): In function `pool_get':
src/libponyrt/mem/pool.c:(.text+0xbb): undefined reference to `__atomic_compare_exchange'
build/release/libponyrt.a(pool.o): In function `ponyint_pool_free':
src/libponyrt/mem/pool.c:(.text+0x221): undefined reference to `__atomic_compare_exchange'
src/libponyrt/mem/pool.c:(.text+0x26f): undefined reference to `__atomic_compare_exchange'
build/release/libponyrt.a(pool.o): In function `ponyint_pool_thread_cleanup':
src/libponyrt/mem/pool.c:(.text+0x82f): undefined reference to `__atomic_compare_exchange'
src/libponyrt/mem/pool.c:(.text+0x901): undefined reference to `__atomic_compare_exchange'
build/release/libponyrt.a(pool.o):src/libponyrt/mem/pool.c:(.text+0x942): more undefined references to `__atomic_compare_exchange' follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:770: build/release/ponyc] Error 1

Any help or advice woould really help me. If you need more information to help me with this please let me know!
 
Back
Top