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

cpu type error with Mac m1 #184

Open
pmd3d opened this issue Feb 20, 2022 · 1 comment
Open

cpu type error with Mac m1 #184

pmd3d opened this issue Feb 20, 2022 · 1 comment

Comments

@pmd3d
Copy link

pmd3d commented Feb 20, 2022

on Mac m1 mini, I git cloned the repo, then ran
nix-shell ./ci.nix

appear to be getting bad cpu type with names mentioning Mac OS x86 on m1 chip

building '/nix/store/y8v3hq9adc1fkhciv2p5m83796bzmmkm-dhall-1.32.0-x86_64-macos.tar.bz2.drv'...

trying https://github.com/dhall-lang/dhall-haskell/releases/download/1.32.0/dhall-1.32.0-x86_64-macos.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 670 100 670 0 0 1969 0 --:--:-- --:--:-- --:--:-- 1970
100 3002k 100 3002k 0 0 2314k 0 0:00:01 0:00:01 --:--:-- 4370k
building '/nix/store/njv5nxypaqm45pd14f0rsqlmaw75w8lw-dhall-json-1.4.1-x86_64-macos.tar.bz2.drv'...

trying https://github.com/dhall-lang/dhall-haskell/releases/download/1.26.1/dhall-json-1.4.1-x86_64-macos.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 674 100 674 0 0 2168 0 --:--:-- --:--:-- --:--:-- 2174
100 10.0M 100 10.0M 0 0 9.9M 0 0:00:01 0:00:01 --:--:-- 25.2M
building '/nix/store/byw97gmvd1h3lcwdiwxp1jmdixrf0z2j-dhall-simple.drv'...
unpacking sources
unpacking source archive /nix/store/cpnkcr7drghx8il4iwxdllvak8ak51ha-dhall-1.32.0-x86_64-macos.tar.bz2
source root is bin
setting SOURCE_DATE_EPOCH to timestamp 1589062082 of file bin/dhall
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
/nix/store/0qlq4s175mzlx9g0aqcdk95j92g1z7mf-stdenv-darwin/setup: line 1367: /nix/store/hql0mdgjbiax4qhm3i6hk8371c9fs2af-dhall-simple/bin/dhall: Bad CPU type in executable
error: builder for '/nix/store/byw97gmvd1h3lcwdiwxp1jmdixrf0z2j-dhall-simple.drv' failed with exit code 126;
last 10 log lines:
> source root is bin
> setting SOURCE_DATE_EPOCH to timestamp 1589062082 of file bin/dhall
> patching sources
> updateAutotoolsGnuConfigScriptsPhase
> configuring
> no configure script, doing nothing
> building
> no Makefile, doing nothing
> installing
> /nix/store/0qlq4s175mzlx9g0aqcdk95j92g1z7mf-stdenv-darwin/setup: line 1367: /nix/store/hql0mdgjbiax4qhm3i6hk8371c9fs2af-dhall-simple/bin/dhall: Bad CPU type in executable

I'm new to nix and macOS dev am not sure what to do. I will use a different computer for now.

@toastal
Copy link
Contributor

toastal commented Mar 2, 2022

The switch in the code is very rudimentary with isDarwin and doesn't takes CPU arch into consideration. This said, a lot of the upstream repositories still aren't building binaries for ARM currently either (this includes all OSs--not just a macOS issue) so it's not like easy-purescript-nix could fetch them anyhow. Anything doing with building from source is not in this repo because it ventures outside of the "easy" part in the repository's namesake.

I'm sure we would all love to see better ARM support, but it's still not here yet.

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

2 participants