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

Issue building frontend on ARM64 Linux. #776

Closed
Sintrastes opened this issue Mar 26, 2022 · 3 comments
Closed

Issue building frontend on ARM64 Linux. #776

Sintrastes opened this issue Mar 26, 2022 · 3 comments

Comments

@Sintrastes
Copy link

Running nix-build -A ghcjs.frontend -o result-frontend in my reflex project on ARM64 Ubuntu 20.04.4 LTS, I get the following error:

(Note: Similarly to my remarks in this issue -- if this ends up being an obelisk-specific issue, I'm happy moving this issue there).

Preprocessing library for Diff-0.4.0..
Building library for Diff-0.4.0..
[1 of 3] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.o )
[2 of 3] Compiling Data.Algorithm.DiffContext ( src/Data/Algorithm/DiffContext.hs, dist/build/Data/Algorithm/DiffContext.o )

src/Data/Algorithm/DiffContext.hs:20:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
20 | import Data.Monoid (mappend)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[3 of 3] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/build/Data/Algorithm/DiffOutput.o )

src/Data/Algorithm/DiffOutput.hs:18:1: warning: [-Wunused-imports]
    The import of ‘Data.Monoid’ is redundant
      except perhaps to import instances from ‘Data.Monoid’
    To import instances alone, use: import Data.Monoid()
   |
18 | import Data.Monoid (mappend)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[1 of 3] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.p_o )

src/Data/Algorithm/Diff.hs:27:1: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.13.0.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
27 | import Prelude hiding (pi)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Algorithm/Diff.hs:29:1: error:
    Could not find module ‘Data.Array’
    Perhaps you haven't installed the profiling libraries for package ‘array-0.5.4.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
29 | import Data.Array (listArray, (!))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: builder for '/nix/store/5xz4ddsk3sir7i4d5sf64q9q906lnl03-Diff-0.4.0.drv' failed with exit code 1;
       last 10 log lines:
       >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
       > 
       > src/Data/Algorithm/Diff.hs:29:1: error:
       >     Could not find module ‘Data.Array’
       >     Perhaps you haven't installed the profiling libraries for package ‘array-0.5.4.0’?
       >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
       >    |
       > 29 | import Data.Array (listArray, (!))
       >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       > 
       For full logs, run 'nix log /nix/store/5xz4ddsk3sir7i4d5sf64q9q906lnl03-Diff-0.4.0.drv'.
error: 1 dependencies of derivation '/nix/store/vqja4jifhg8ywnp87j72m0y93mbwrnxp-aeson-1.4.7.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5yf1pbmpn6f46iirpbps8xkyhykx191z-cabal2nix-2.15.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mgs07lcx7xzk9bixa0ikqw1amxdsl0f1-cabal2nix-frontend.drv' failed to build

@danwdart
Copy link

Same here for monad-par this time:

[1 of 2] Compiling Control.Monad.Par.Class ( Control/Monad/Par/Class.hs, dist/build/Control/Monad/Par/Class.p_o )

Control/Monad/Par/Class.hs:26:8: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14.1.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
26 | module Control.Monad.Par.Class
   |        ^^^^^^^^^^^^^^^^^^^^^^^

Control/Monad/Par/Class.hs:41:1: error:
    Could not find module ‘Control.DeepSeq’
    Perhaps you haven't installed the profiling libraries for package ‘deepseq-1.4.4.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
41 | import Control.DeepSeq
   | ^^^^^^^^^^^^^^^^^^^^^^
[2 of 2] Compiling Control.Monad.Par.Unsafe ( Control/Monad/Par/Unsafe.hs, dist/build/Control/Monad/Par/Unsafe.p_o )

Control/Monad/Par/Unsafe.hs:13:8: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14.1.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
13 | module Control.Monad.Par.Unsafe 
   |        ^^^^^^^^^^^^^^^^^^^^^^^^

error: builder for '/nix/store/f16kn07iifjgiiwsx5vxmn686rwgr4g1-abstract-par-0.3.3.drv' failed with exit code 1;
       last 10 log lines:
       > [2 of 2] Compiling Control.Monad.Par.Unsafe ( Control/Monad/Par/Unsafe.hs, dist/build/Control/Monad/Par/Unsafe.p_o )
       >
       > Control/Monad/Par/Unsafe.hs:13:8: error:
       >     Could not find module ‘Prelude’
       >     Perhaps you haven't installed the profiling libraries for package ‘base-4.14.1.0’?
       >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
       >    |
       > 13 | module Control.Monad.Par.Unsafe
       >    |        ^^^^^^^^^^^^^^^^^^^^^^^^
       > 
       For full logs, run 'nix log /nix/store/f16kn07iifjgiiwsx5vxmn686rwgr4g1-abstract-par-0.3.3.drv'.
error: 1 dependencies of derivation '/nix/store/fsqplz97cwjdsdfwj3k2yzswdqk8xjd2-monad-par-0.3.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4nsyxijvymvgl3krbwqccha6a77p9r71-cabal2nix-2.18.0.drv' failed to build

@ali-abrar
Copy link
Member

In progress here #804

@ali-abrar
Copy link
Member

Fixed in 1.2.0.0

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

3 participants