Skip to content

Remove stale x86_64 to i686 downgrade in configure#57

Open
noafroboy wants to merge 1 commit intoopen64-compiler:developfrom
noafroboy:fix/remove-x86_64-downgrade
Open

Remove stale x86_64 to i686 downgrade in configure#57
noafroboy wants to merge 1 commit intoopen64-compiler:developfrom
noafroboy:fix/remove-x86_64-downgrade

Conversation

@noafroboy
Copy link

Summary

  • Remove the workaround in configure.ac (and generated configure) that silently rewrote host_cpu and target_cpu from x86_64 to i686 when --host/--target were not explicitly passed
  • This caused ./configure on a 64-bit host to silently build a 32-bit compiler

Context

The removed code had the comment:

"There are known bugs when building the compiler in 64 bit mode on x86 so, unless the user specifies otherwise, we default to 32 bit mode"

These bugs have long been fixed. The compiler builds and runs correctly as a native 64-bit binary (verified with full end-to-end build + runtime library compilation on x86_64).

Without this workaround, ./configure on an x86_64 host correctly detects the platform and builds a 64-bit compiler. Users who need a 32-bit compiler can still pass --host=i686-linux-gnu --target=i686-linux-gnu.

Test plan

  • Run ./configure && make build on x86_64 Linux without --host/--target flags
  • Verify the resulting compiler is 64-bit: file osprey/targdir/driver/driver
  • Verify ./configure --host=i686-linux-gnu --target=i686-linux-gnu still produces a 32-bit build

🤖 Generated with Claude Code

The configure script contained a workaround that silently rewrote
host_cpu and target_cpu from x86_64 to i686 when --host/--target
were not explicitly specified. This caused a 32-bit compiler to be
built on 64-bit hosts by default.

The comment said "There are known bugs when building the compiler
in 64 bit mode on x86" — these bugs have long been fixed, and the
compiler builds and runs correctly as a native 64-bit binary.

Without this workaround, ./configure on an x86_64 host correctly
detects the 64-bit platform and builds a 64-bit compiler. Users
who need a 32-bit compiler can still pass --host=i686-linux-gnu.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant