pschachte / wybe

A programming language supporting most of both declarative and imperative programming
MIT License
43 stars 6 forks source link

Subresource #426

Closed pschachte closed 9 months ago

pschachte commented 10 months ago

Fix #415

pschachte commented 9 months ago

Unfortunately, with these changes, building executables fails utterly under Linux (though it still passes all final-dump tests), so merging this PR is going to have to wait until I can fix that.

jimbxb commented 9 months ago

It could be the -no-pie change. Maybe we need that on non-macos builds?

pschachte commented 9 months ago

It could be the -no-pie change. Maybe we need that on non-macos builds?

Ooo, didn't think of that! I'll try backing that out and see if that fixes it.

pschachte commented 9 months ago

Nope, unfortunately, it wasn't the lack of --no-pie switch.

jimbxb commented 9 months ago

Trudging through the build errors, it seems it's the linker not being able to find the Boehm GC lib functions. Bummer

pschachte commented 9 months ago

Thanks for that; I couldn't find the linker error messages in the log.

Really weird, though, that it links fine under MacOS, but not Linux.

jimbxb commented 9 months ago

Actually, it seems that it can't see any of the C lib's functions, not specifically Boehm GC

pschachte commented 9 months ago

Somehow the change moved the list of libraries in front of the object files. I'm trying to figure out how. It seems the Linux cc is sensitive to the command line order and the MacOS one isn't.