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` is "x64_64" #3717

Closed
Armael opened this Issue Dec 27, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@Armael
Copy link
Member

Armael commented Dec 27, 2018

opam var arch returns x64_64, which doesn't seem right, and prevents me from installing ocaml-freestanding (which requires me to have "arch=x86_64 | arch=amd64"). Interestingly, the architecture printed by opam config report is correct...

$ opam config report
# opam config report
# opam-version      2.0.1 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=arch os-version=unknown
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              4
# repositories      4 (http) (default repo at 50da06f4)
# pinned            0
# current-switch    mirage
$ uname -a
Linux wok 4.19.12-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018 x86_64 GNU/Linux
$ opam var arch
x64_64

@Armael Armael changed the title opam var arch is "x64_64" `opam var arch` is "x64_64" Dec 27, 2018

@Armael

This comment has been minimized.

Copy link
Member Author

Armael commented Dec 27, 2018

Workarounds I tried:

$ opam config set arch x86_64

This seemed to do something (running the command a second time told me nothing changed, from which I deduce it did something the first time) -- but didn't change the result of opam var arch...

OPAMVAR_arch=x86_64 opam install ocaml-freestanding

That worked.

@Armael

This comment has been minimized.

Copy link
Member Author

Armael commented Jan 2, 2019

My bad! For some unknown reason, I had export OPAMVAR_arch=x64_64 in my .profile...

@Armael Armael closed this Jan 2, 2019

@avsm

This comment has been minimized.

Copy link
Member

avsm commented Jan 2, 2019

That's quite a funnily specific variable to have you in your .profile? ;-) Any particular reason you needed it in the first place?

@Armael

This comment has been minimized.

Copy link
Member Author

Armael commented Jan 2, 2019

No idea... It's probably been there for a long time, and I can't remember adding it...

@rjbou rjbou added this to the 2.0.4 milestone Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.