Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created February 26, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/4cf83615eea3e6435f0bc59dcba0b987 to your computer and use it in GitHub Desktop.
Save cemerick/4cf83615eea3e6435f0bc59dcba0b987 to your computer and use it in GitHub Desktop.
-- While building custom Setup.hs for package clash-prelude-0.99 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.0.0.2_ghc-8.2.1.exe --builddir=.stack-work\dist\e53504d9 build lib:clash-prelude --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: D:\code\clash-compiler\.stack-work\logs\clash-prelude-0.99.log
Configuring clash-prelude-0.99...
Warning:
This package indirectly depends on multiple versions of the same package. This is very likely to cause a compile failure.
package time (time-1.8.0.2-6D7zA6hvj7J2L4fRhEphEi) requires Win32-2.4.0.0-6h2GtvaqnjAGgAinwN44RU
package time (time-1.8.0.2) requires Win32-2.5.4.1
package process (process-1.6.1.0) requires Win32-2.5.4.1
package ghc (ghc-8.2.1) requires Win32-2.5.4.1
package directory (directory-1.3.0.2) requires Win32-2.5.4.1
package hpc (hpc-0.6.0.3) requires time-1.8.0.2
package ghc (ghc-8.2.1) requires time-1.8.0.2
package directory (directory-1.3.0.2) requires time-1.8.0.2
package tf-random (tf-random-0.5-2v9OFXZFfIM5uAmIRwm1Q5) requires time-1.8.0.2-6D7zA6hvj7J2L4fRhEphEi
package random (random-1.1-LcJhSx4EclfFKdBgn3vAoi) requires time-1.8.0.2-6D7zA6hvj7J2L4fRhEphEi
Preprocessing library for clash-prelude-0.99..
Building library for clash-prelude-0.99..
[ 1 of 63] Compiling Clash.Annotations.Primitive ( src\Clash\Annotations\Primitive.hs, .stack-work\dist\e53504d9\build\Clash\Annotations\Primitive.o )
[ 2 of 63] Compiling Clash.Annotations.TopEntity ( src\Clash\Annotations\TopEntity.hs, .stack-work\dist\e53504d9\build\Clash\Annotations\TopEntity.o )
[ 3 of 63] Compiling Clash.Class.Num ( src\Clash\Class\Num.hs, .stack-work\dist\e53504d9\build\Clash\Class\Num.o )
[ 4 of 63] Compiling Clash.Class.Resize ( src\Clash\Class\Resize.hs, .stack-work\dist\e53504d9\build\Clash\Class\Resize.o )
GHC runtime linker: fatal error: I found a duplicate definition for symbol
rgb
whilst processing object file
C:\sr\snapshots\b8803698\lib\x86_64-windows-ghc-8.2.1\Win32-2.4.0.0-6h2GtvaqnjAGgAinwN44RU\HSWin32-2.4.0.0-6h2GtvaqnjAGgAinwN44RU.o
The symbol was previously defined in
C:\Users\chas\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.1\lib\Win32-2.5.4.1\HSWin32-2.5.4.1.o
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
ghc.EXE: panic! (the 'impossible' happened)
(GHC version 8.2.1 for x86_64-unknown-mingw32):
loadObj "C:\\sr\\snapshots\\b8803698\\lib\\x86_64-windows-ghc-8.2.1\\Win32-2.4.0.0-6h2GtvaqnjAGgAinwN44RU\\HSWin32-2.4.0.0-6h2GtvaqnjAGgAinwN44RU.o": failed
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment