Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

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

No branches or pull requests

1 participant