Ticket #423 (closed bug: fixed)
config/auto/arch.pm can get wrong architecture on solaris/x86
Reported by: | doughera | Owned by: | jkeenan |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | configure | Version: | |
Severity: | low | Keywords: | |
Cc: | rg@… | Language: | |
Patch status: | applied | Platform: | solaris |
Description
As of r36852, config/auto/arch.pm assumes that, on Solaris/x86, if perl 5's $Config{archname} contains the string -64int, then the user must be running on an amd64-type processor.
However, perl 5's archname will contain that string on i386 if perl5's ivtype='long long'. OpenSolaris ships with a perl configured in exactly that way. Consequently, arch.pm incorrectly identifies an i386 machine as amd64.
One reliable way to get the current processor on Solaris is to use the uname -p command. However, that can lead to a different problem: On an i386 machine, uname -p outputs 'i386'. Parrot's configure then ends up setting jitcapable=1, though that configuration (OpenSolaris/i386/JIT) doesn't really work well.