terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

Test problems on 1.0.0.-beta2 #451

Closed hissssst closed 4 years ago

hissssst commented 4 years ago

Distro: Arch Terra: 1.0.0.-beta2 linux .zip

result.txt

elliottslaughter commented 4 years ago

It's a failure in dynlib.t and seems to be failing to link ncurses. If you go to dynlib.t and modify line 46 to include "-lncurses" in flags, does it go away?

hissssst commented 4 years ago
local flags = terralib.newlist {"-Wl,-rpath,"..libpath,libpath.."/"..libname,"-lncurses"}
local flags = terralib.newlist {"-lncurses,-Wl,-rpath,"..libpath,libpath.."/"..libname}

Did it both ways and test is still failing

elliottslaughter commented 4 years ago

This is a typo:

local flags = terralib.newlist {"-lncurses,-Wl,-rpath,"..libpath,libpath.."/"..libname}

Should be:

local flags = terralib.newlist {"-lncurses","-Wl,-rpath,"..libpath,libpath.."/"..libname}
hissssst commented 4 years ago
local flags = terralib.newlist {"-lncurses","-Wl,-rpath,"..libpath,libpath.."/"..libname}

Did it this way, still fails

elliottslaughter commented 4 years ago

Ok, can you attach repro instructions? Ideally something I can run in a fresh Docker container so that I can see the exact steps to get to the error you're hitting.

hissssst commented 4 years ago

Fixed this bug. Problem was with different versions of these two packages

$ pacman -Qs ncurses
local/ncurses 6.2-1
    System V Release 4.0 curses emulation library
local/ncurses5-compat-libs 6.2-1
    System V Release 4.0 curses emulation library, ABI 5

Closing