Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"opam var arch" gives x86_64 after switching to 4.02.3+32bit : how to fix that? #26767

Open
Naereen opened this issue Oct 21, 2024 · 0 comments

Comments

@Naereen
Copy link

Naereen commented Oct 21, 2024

Hi there.
I'm trying to reproduce use the (old) project https://github.com/dbuenzli/rpi-boot-ocaml/ to install a compiler of OCaml for ARM 32 bits.
I can't proceed, as I described in dbuenzli/rpi-boot-ocaml#12, because when I install then switch to 4.02.3+32bit, the opam var arch outputs x86_64 instead of x86_32 :

$ opam switch 4.02.3+32bit
# Run eval $(opam env) to update the current shell environment
$ eval $(opam env)
$ opam var arch
x86_64

Could someone please help me?

I tried my switch and it works: if I compile with ocamlopt a test OCaml file, it produces a binary for 32 bits (Intel).

Thanks in advance, kind regards 😃, @Naereen.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant