clash-lang / clash-compiler

Haskell to VHDL/Verilog/SystemVerilog compiler
https://clash-lang.org/
Other
1.44k stars 151 forks source link

clash: unable to load package `primitive-0.6' #67

Closed hoyeunglee closed 9 years ago

hoyeunglee commented 9 years ago

in ubuntu 12.04 after following installation instruction

clash --interactive FIR.hs CLaSHi, version 0.5.10 (using clash-lib, version 0.5.9): http://www.clash-lang.org/ for help [1 of 1] Compiling FIR ( FIR.hs, interpreted ) clash: unable to load package `primitive-0.6'

christiaanb commented 9 years ago

Hi, could you give me the output of the following commands:

ghc --version
ghc-pkg check
christiaanb commented 9 years ago

And could you give me the output of:

clash --interactive -v3 FIR.hs
hoyeunglee commented 9 years ago

martin@ubuntu:~/downloads/mscript$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.1 martin@ubuntu:~/downloads/mscript$ ghc-pkg check Warning: haddock-interfaces: /home/martin/.cabal/share/doc/i386-linux-ghc-7.10.1/nats-1/html/nats.haddock doesn't exist or isn't a file martin@ubuntu:~/downloads/mscript$

martin@ubuntu:~/downloads/mscript$ clash --interactive -v3 FIR.hs CLaSHi, version 0.5.10 (using clash-lib, version 0.5.9): http://www.clash-lang.org/ :? for help Glasgow Haskell Compiler, Version 7.10.1, stage 2 booted by GHC version 7.8.4 Using binary package database: /opt/ghc/7.10.1/lib/ghc-7.10.1/package.conf.d/package.cache Using binary package database: /home/martin/.ghc/i386-linux-7.10.1/package.conf.d/package.cache wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. Hsc static flags: Loading package ghc-prim-0.4.0.0 ... linking ... done. * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/integ_2aU3IZNMF9a7mQ0OzsZ0dS --print-file-name libgmp.so Loading package integer-gmp-1.0.0.0 ... linking ... done. Loading package base-4.8.0.0 ... linking ... done. wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. Loading package transformers-0.4.2.0 ... linking ... done. Loading package array-0.5.1.0 ... linking ... done. Loading package deepseq-1.4.1.1 ... linking ... done. Loading package containers-0.5.6.2 ... linking ... done. Loading package hoopl-3.10.0.2 ... linking ... done. Loading package bytestring-0.10.6.0 ... linking ... done. Loading package binary-0.7.3.0 ... linking ... done. Loading package filepath-1.4.0.0 ... linking ... done. Loading package time-1.5.0.1 ... linking ... done. * gcc: /usr/bin/gcc -Ui686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name librt.so *\ gcc: /usr/bin/gcc -Ui686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libutil.so * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libdl.so * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libpthread.so Loading package unix-2.7.1.0 ... linking ... done. Loading package directory-1.2.2.0 ... linking ... done. Loading package bin-package-db-0.0.0.0 ... linking ... done. Loading package pretty-1.1.2.0 ... linking ... done. Loading package process-1.2.3.0 ... linking ... done. Loading package hpc-0.6.0.2 ... linking ... done. Loading package template-haskell-2.10.0.0 ... linking ... done. Loading package ghc-7.10.1 ... linking ... done. Loading package ghc-tcplugins-extra-0.1 ... linking ... done. Loading package ghc-typelits-natnormalise-0.3 ... linking ... done. Coercing a value in getValueSafely... Successfully evaluated coercion * Chasing dependencies: Chasing modules from: Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [] Upsweep completely successful. * Deleting temp files: Deleting: * Chasing dependencies: Chasing modules from: _FIR.hs Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [NONREC ModSummary { ms_hs_date = 2015-07-11 00:59:01.367425486 UTC ms_mod = FIR, ms_textual_imps = [import CLaSH.Prelude] mssrcimps = [] }] ** Deleting temp files: Deleting: compile: input file FIR.hs Created temporary directory: /tmp/ghc3712_0 * Checking old interface for FIR: [1 of 1] Compiling FIR ( FIR.hs, interpreted ) * Parser: * Renamer/typechecker: Coercing a value in getValueSafely... Successfully evaluated coercion * Simplify: * CorePrep: *\ ByteCodeGen: Loading package primitive-0.6 ... linking ... clash: unable to load package `primitive-0.6'

christiaanb commented 9 years ago

And the output of?:

ghc-pkg list
ghci Fir.hs
hoyeunglee commented 9 years ago

martin@ubuntu:~/Downloads$ ghc-pkg list /opt/ghc/7.10.1/lib/ghc-7.10.1/package.conf.d Cabal-1.22.2.0 array-0.5.1.0 base-4.8.0.0 bin-package-db-0.0.0.0 binary-0.7.3.0 bytestring-0.10.6.0 containers-0.5.6.2 deepseq-1.4.1.1 directory-1.2.2.0 filepath-1.4.0.0 ghc-7.10.1 ghc-prim-0.4.0.0 haskeline-0.7.2.1 hoopl-3.10.0.2 hpc-0.6.0.2 integer-gmp-1.0.0.0 pretty-1.1.2.0 process-1.2.3.0 rts-1.0 template-haskell-2.10.0.0 terminfo-0.4.0.1 time-1.5.0.1 transformers-0.4.2.0 unix-2.7.1.0 xhtml-3000.2.1 /home/martin/.ghc/i386-linux-7.10.1/package.conf.d ListLike-4.2.0 QuickCheck-2.8.1 StateVar-1.1.0.0 adjunctions-4.2.1 aeson-0.9.0.1 attoparsec-0.13.0.1 base-orphans-0.4.0 bifunctors-5 clash-lib-0.5.9 clash-prelude-0.9.1 clash-systemverilog-0.5.7 clash-verilog-0.5.7 clash-vhdl-0.5.8 comonad-4.2.6 concurrent-supply-0.1.7.1 contravariant-1.3.1.1 data-default-0.5.3 data-default-class-0.0.1 data-default-instances-base-0.0.1 data-default-instances-containers-0.0.1 data-default-instances-dlist-0.0.1 data-default-instances-old-locale-0.0.1 distributive-0.4.4 dlist-0.7.1.1 errors-2.0.0 exceptions-0.8.0.2 fgl-5.5.1.0 fmlist-0.9 free-4.12.1 ghc-tcplugins-extra-0.1 ghc-typelits-natnormalise-0.3 hashable-1.2.3.3 kan-extensions-4.2.2 lens-4.12 mtl-2.2.1 nats-1 old-locale-1.0.0.7 parallel-3.2.0.6 prelude-extras-0.4 primitive-0.6 profunctors-5.1.1 random-1.1 reflection-2 safe-0.3.9 scientific-0.3.3.8 semigroupoids-5.0.0.2 semigroups-0.16.2.2 singletons-1.1.2.1 stm-2.4.4 syb-0.5.1 tagged-0.8.1 text-1.2.1.1 tf-random-0.5 th-desugar-1.5.4 th-expand-syns-0.3.0.6 th-lift-0.7.2 th-orphans-0.12.1 th-reify-many-0.1.3 transformers-compat-0.4.0.4 unbound-generics-0.1.2.1 unordered-containers-0.2.5.1 uu-interleaved-0.2.0.0 uu-parsinglib-2.9.1 vector-0.10.12.3 void-0.7 wl-pprint-text-1.1.0.4 martin@ubuntu:~/Downloads$ ghci Fir.hs ^C martin@ubuntu:~/Downloads$ ghci FIR.hs GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling FIR ( FIR.hs, interpreted )

FIR.hs:9:14: Ambiguous occurrence ‘foldl’ It could refer to either ‘Prelude.foldl’, imported from ‘Prelude’ at FIR.hs:1:8-10 (and originally defined in ‘Data.Foldable’) or ‘CLaSH.Prelude.foldl’, imported from ‘CLaSH.Prelude’ at FIR.hs:3:1-20 (and originally defined in ‘CLaSH.Sized.Vector’)

FIR.hs:9:35: Ambiguous occurrence ‘zipWith’ It could refer to either ‘Prelude.zipWith’, imported from ‘Prelude’ at FIR.hs:1:8-10 (and originally defined in ‘GHC.List’) or ‘CLaSH.Prelude.zipWith’, imported from ‘CLaSH.Prelude’ at FIR.hs:3:1-20 (and originally defined in ‘CLaSH.Sized.Vector’)

FIR.hs:12:15: Illegal operator ‘+’ in type ‘n + 1’ Use TypeOperators to allow operators in types

FIR.hs:12:17: Illegal type: ‘1’ Perhaps you intended to use DataKinds

FIR.hs:18:29: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:18:51: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:19:40: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:21:29: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:22:45: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:24:34: Illegal type: ‘16’ Perhaps you intended to use DataKinds

FIR.hs:25:48: Illegal type: ‘16’ Perhaps you intended to use DataKinds Failed, modules loaded: none. Prelude> ghc --version

:2:1: Not in scope: ‘ghc’ Prelude> quit; :3:5: parse error on input ‘;’ Prelude> :quit Leaving GHCi. martin@ubuntu:~/Downloads$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.10.1 martin@ubuntu:~/Downloads$ ghc-pkg check Warning: haddock-interfaces: /home/martin/.cabal/share/doc/i386-linux-ghc-7.10.1/nats-1/html/nats.haddock doesn't exist or isn't a file martin@ubuntu:~/Downloads$ clash --interactive -v3 FIR.hs CLaSHi, version 0.5.10 (using clash-lib, version 0.5.9): http://www.clash-lang.org/ :? for help Glasgow Haskell Compiler, Version 7.10.1, stage 2 booted by GHC version 7.8.4 Using binary package database: /opt/ghc/7.10.1/lib/ghc-7.10.1/package.conf.d/package.cache Using binary package database: /home/martin/.ghc/i386-linux-7.10.1/package.conf.d/package.cache wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. Hsc static flags: Loading package ghc-prim-0.4.0.0 ... linking ... done. **\* gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/integ_2aU3IZNMF9a7mQ0OzsZ0dS --print-file-name libgmp.so Loading package integer-gmp-1.0.0.0 ... linking ... done. Loading package base-4.8.0.0 ... linking ... done. wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. Loading package transformers-0.4.2.0 ... linking ... done. Loading package array-0.5.1.0 ... linking ... done. Loading package deepseq-1.4.1.1 ... linking ... done. Loading package containers-0.5.6.2 ... linking ... done. Loading package hoopl-3.10.0.2 ... linking ... done. Loading package bytestring-0.10.6.0 ... linking ... done. Loading package binary-0.7.3.0 ... linking ... done. Loading package filepath-1.4.0.0 ... linking ... done. Loading package time-1.5.0.1 ... linking ... done. **\* gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name librt.so **\* gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libutil.so **\* gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libdl.so **\* gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libpthread.so Loading package unix-2.7.1.0 ... linking ... done. Loading package directory-1.2.2.0 ... linking ... done. Loading package bin-package-db-0.0.0.0 ... linking ... done. Loading package pretty-1.1.2.0 ... linking ... done. Loading package process-1.2.3.0 ... linking ... done. Loading package hpc-0.6.0.2 ... linking ... done. Loading package template-haskell-2.10.0.0 ... linking ... done. Loading package ghc-7.10.1 ... linking ... done. Loading package ghc-tcplugins-extra-0.1 ... linking ... done. Loading package ghc-typelits-natnormalise-0.3 ... linking ... done. Coercing a value in getValueSafely... Successfully evaluated coercion **\* Chasing dependencies: Chasing modules from: Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [] Upsweep completely successful. **\* Deleting temp files: Deleting: **\* Chasing dependencies: Chasing modules from: _FIR.hs Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [NONREC ModSummary { ms_hs_date = 2015-07-10 11:57:31.718435769 UTC ms_mod = FIR, ms_textual_imps = [import CLaSH.Prelude] ms_srcimps = [] }] *_\* Deleting temp files: Deleting: compile: input file FIR.hs Created temporary directory: /tmp/ghc2902_0 **\* Checking old interface for FIR: [1 of 1] Compiling FIR ( FIR.hs, interpreted ) **\* Parser: **\* Renamer/typechecker: Coercing a value in getValueSafely... Successfully evaluated coercion **\* Simplify: **\* CorePrep: **\* ByteCodeGen: Loading package random-1.1 ... linking ... done. Loading package primitive-0.6 ... linking ... clash: unable to load package `primitive-0.6'
christiaanb commented 9 years ago

Sorry, can you give me the output of one more:

ghci -XDataKinds -XNoImplicitPrelude -XTypeOperators -XTemplateHaskell -v3 FIR.hs

The thing is.... I cannot reproduce the bug on any of my machines.

hoyeunglee commented 9 years ago

martin@ubuntu:~/Downloads$ ghci -XDataKinds -XNoImplicitPrelude -XTypeOperators -XTemplateHaskell -v3 FIR.hs GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help Glasgow Haskell Compiler, Version 7.10.1, stage 2 booted by GHC version 7.8.4 Using binary package database: /opt/ghc/7.10.1/lib/ghc-7.10.1/package.conf.d/package.cache Using binary package database: /home/martin/.ghc/i386-linux-7.10.1/package.conf.d/package.cache wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. Hsc static flags: Loading package ghc-prim-0.4.0.0 ... linking ... done. * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/integ_2aU3IZNMF9a7mQ0OzsZ0dS --print-file-name libgmp.so Loading package integer-gmp-1.0.0.0 ... linking ... done. Loading package base-4.8.0.0 ... linking ... done. wired-in package ghc-prim mapped to ghc-prim-0.4.0.0-361e8e2c9cf389d2a3e7a0e22f6c7443 wired-in package integer-gmp mapped to integer-gmp-1.0.0.0-c95adc98e5a4d89e0ee310717e5e2c43 wired-in package base mapped to base-4.8.0.0-fc683f3bc9a20f2c5e9cfd686d3063fe wired-in package rts mapped to builtin_rts wired-in package template-haskell mapped to template-haskell-2.10.0.0-44fef4903d5ebb1b4f10c81ce80bf2dc wired-in package ghc mapped to ghc-7.10.1-c68fad7c073b01c18711eb22d66d9d8d wired-in package dph-seq not found. wired-in package dph-par not found. * Chasing dependencies: Chasing modules from: Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [] Upsweep completely successful. * Deleting temp files: Deleting: * Chasing dependencies: Chasing modules from: _FIR.hs Stable obj: [] Stable BCO: [] unload: retaining objs [] unload: retaining bcos [] Ready for upsweep [NONREC ModSummary { ms_hs_date = 2015-07-10 11:57:31.718435769 UTC ms_mod = FIR, ms_textual_imps = [import CLaSH.Prelude] mssrcimps = [] }] ** Deleting temp files: Deleting: compile: input file FIR.hs Created temporary directory: /tmp/ghc3489_0 * Checking old interface for FIR: [1 of 1] Compiling FIR ( FIR.hs, interpreted ) * Parser: * Renamer/typechecker: * Simplify: * CorePrep: * ByteCodeGen: Loading package transformers-0.4.2.0 ... linking ... done. Loading package array-0.5.1.0 ... linking ... done. Loading package deepseq-1.4.1.1 ... linking ... done. Loading package bytestring-0.10.6.0 ... linking ... done. Loading package containers-0.5.6.2 ... linking ... done. Loading package binary-0.7.3.0 ... linking ... done. Loading package pretty-1.1.2.0 ... linking ... done. Loading package time-1.5.0.1 ... linking ... done. Loading package random-1.1 ... linking ... done. Loading package template-haskell-2.10.0.0 ... linking ... done. Loading package primitive-0.6 ... linking ... done. Loading package tf-random-0.5 ... linking ... done. Loading package QuickCheck-2.8.1 ... linking ... done. Loading package data-default-class-0.0.1 ... linking ... done. Loading package data-default-instances-base-0.0.1 ... linking ... done. Loading package data-default-instances-containers-0.0.1 ... linking ... done. Loading package dlist-0.7.1.1 ... linking ... done. Loading package data-default-instances-dlist-0.0.1 ... linking ... done. Loading package old-locale-1.0.0.7 ... linking ... done. Loading package data-default-instances-old-locale-0.0.1 ... linking ... done. Loading package data-default-0.5.3 ... linking ... done. Loading package filepath-1.4.0.0 ... linking ... done. * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name librt.so * gcc: /usr/bin/gcc -Ui686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libutil.so *\ gcc: /usr/bin/gcc -Ui686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libdl.so * gcc: /usr/bin/gcc -U__i686 -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/opt/ghc/7.10.1/lib/ghc-7.10.1/unix_G4Yo1pNtYrk8nCq1cx8P9d --print-file-name libpthread.so Loading package unix-2.7.1.0 ... linking ... done. Loading package directory-1.2.2.0 ... linking ... done. Loading package bin-package-db-0.0.0.0 ... linking ... done. Loading package hoopl-3.10.0.2 ... linking ... done. Loading package hpc-0.6.0.2 ... linking ... done. Loading package process-1.2.3.0 ... linking ... done. Loading package ghc-7.10.1 ... linking ... done. Loading package ghc-tcplugins-extra-0.1 ... linking ... done. Loading package ghc-typelits-natnormalise-0.3 ... linking ... done. Loading package base-orphans-0.4.0 ... linking ... done. Loading package text-1.2.1.1 ... linking ... done. Loading package hashable-1.2.3.3 ... linking ... done. Loading package nats-1 ... linking ... done. Loading package unordered-containers-0.2.5.1 ... linking ... done. Loading package semigroups-0.16.2.2 ... linking ... done. Loading package tagged-0.8.1 ... linking ... done. Loading package bifunctors-5 ... linking ... done. Loading package stm-2.4.4 ... linking ... done. Loading package StateVar-1.1.0.0 ... linking ... done. Loading package transformers-compat-0.4.0.4 ... linking ... done. Loading package void-0.7 ... linking ... done. Loading package contravariant-1.3.1.1 ... linking ... done. Loading package distributive-0.4.4 ... linking ... done. Loading package comonad-4.2.6 ... linking ... done. Loading package mtl-2.2.1 ... linking ... done. Loading package exceptions-0.8.0.2 ... linking ... done. Loading package prelude-extras-0.4 ... linking ... done. Loading package profunctors-5.1.1 ... linking ... done. Loading package semigroupoids-5.0.0.2 ... linking ... done. Loading package free-4.12.1 ... linking ... done. Loading package adjunctions-4.2.1 ... linking ... done. Loading package kan-extensions-4.2.2 ... linking ... done. Loading package parallel-3.2.0.6 ... linking ... done. Loading package reflection-2 ... linking ... done. Loading package vector-0.10.12.3 ... linking ... done. Loading package lens-4.12 ... linking ... done. Loading package syb-0.5.1 ... linking ... done. Loading package th-lift-0.7.2 ... linking ... done. Loading package safe-0.3.9 ... linking ... done. Loading package th-expand-syns-0.3.0.6 ... linking ... done. Loading package th-reify-many-0.1.3 ... linking ... done. Loading package th-orphans-0.12.1 ... linking ... done. Loading package th-desugar-1.5.4 ... linking ... done. Loading package singletons-1.1.2.1 ... linking ... done. Loading package clash-prelude-0.9.1 ... linking ... done. * Simplify: * CorePrep: * ByteCodeGen: * Simplify: * CorePrep: * ByteCodeGen: * Desugar: Result size of Desugar (after optimization) = {terms: 150, types: 238, coercions: 111} * Simplifier: Result size of Simplifier iteration=1 = {terms: 160, types: 279, coercions: 296} Result size of Simplifier = {terms: 150, types: 269, coercions: 255} * Tidy Core: Result size of Tidy Core = {terms: 150, types: 269, coercions: 255} * CorePrep: Result size of CorePrep = {terms: 258, types: 382, coercions: 255} * ByteCodeGen: Upsweep completely successful. ** Deleting temp files: Deleting: /tmp/ghc3489_0/ghc3489_2.c /tmp/ghc3489_0/ghc3489_1.o Warning: deleting non-existent /tmp/ghc3489_0/ghc3489_2.c Warning: deleting non-existent /tmp/ghc3489_0/ghc3489_1.o Ok, modules loaded: FIR. FIR>

christiaanb commented 9 years ago

Thanks for all the help. I think I know what might be going on. Can you try the following:

First:

clash -- --info | grep "GHC Dynamic"

If the output of the above is:

 ,("GHC Dynamic","NO")

Can you then try:

cabal install clash-ghc --enable-executable-dynamic
clash --interactive FIR.hs

And if the output of clash -- --info | grep "GHC Dynamic" is:

,("GHC Dynamic","YES")

Can you then try:

cabal install clash-ghc --disable-executable-dynamic
clash --interactive FIR.hs
hoyeunglee commented 9 years ago

run this with no error output cabal install clash-ghc --enable-executable-dynamic clash --interactive FIR.hs

when run this disable, it has primitive 0.6 error cabal install clash-ghc --disable-executable-dynamic clash --interactive FIR.hs

christiaanb commented 9 years ago

Thank you for all the help. I will update the installation instructions so that people install clash using cabal install clash-ghc --enable-executable-dynamic