Open fatcerberus opened 6 years ago
@fatcerberus no short/mid term x86 support on *nix. We might add a message warning the user for x86
. Would you like to send a PR?
Oh, it's not supported? That's fine then, I thought it was because the --help
output shows:
--arch[=S] Set target arch (arm, x86, amd64)
Implying it's supported. I agree there should be a warning for it, though.
Implying it's supported. I agree there should be a warning for it, though.
@fatcerberus would you like to send a PR?
@obastemur I would, but what I’m confused about is that build.sh is only for Unix platforms; is x86 relevant to any of them? It seems to only be relevant for Windows nowadays, where build.sh doesn’t apply.
In light of all that, it seems like the --arch=x86 option shouldn’t even exist?
In light of all that, it seems like the --arch=x86 option shouldn’t even exist?
At the moment, yes, there is nothing can keep end-user from using it or there is no even warning. could be nice to have a warning message ? and we could close this issue with that? :)
Yeah, what I was trying to figure out was whether to make a PR that adds the warning, or if I should just completely remove x86 from the list of architectures on the —help
screen (or both).
Simply adding a warning is enough IMHO.
The errors have nothing to do with x86 support per se, -arch
flag is not getting used in that particular compile command, which is normally a warning, but -Werror
turns it into an error and aborts the build, which does sound a bit excessive.
As an extra note, x86 has never been supported on linux - so if it does actually build after the flags are fixed there will likely be some issues to iron out - I think there are few places in the source tree where there's architecture specific stuff that has x86 gated behind #ifdef windows or #ifdef win32 or the like.
This is purely anecdotal I haven't gone through the source tree looking for these (I also don't have a linux machine so cannot easily experiment with this - whilst the linux and macOS builds are similar apple have removed support for running 32bit code from macOS, so I cannot run 32bit binaries on my machine).
Tried to make a 32-bit ChakraCore build for Linux (Ubuntu), but the build failed. I was able to build for x64 without a hitch, but x86 proved futile.
Command line:
Gave me the following output: