I have the most minimal experience with Linux as well, but I have seen a remark recently about Linux compilation issues. This may not be your problem, but according to the comment, compiling with some version of openSSL causes issues for some people. And that changing a compiler flag may fix it.
scons platform=x11 use_llvm=yes builtin_openssl=yes
Since this is outside my wheel house and can't help you beyond that, I leave this as a comment, in case it is helpful.