Skip to content

Instantly share code, notes, and snippets.

@Wizek
Last active March 10, 2016 21:09
Show Gist options
  • Select an option

  • Save Wizek/09f435b53dac0ad5db06 to your computer and use it in GitHub Desktop.

Select an option

Save Wizek/09f435b53dac0ad5db06 to your computer and use it in GitHub Desktop.
[1 of 1] Compiling Main ( app/main.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/exp-proj/exp-proj-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/exp-proj/exp-proj ...
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.text+0x2a201): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.text+0x2b3c9): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.text+0x34f81): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType8_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.text+0x34faf): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType3_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.text+0x20346): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationTypezuzdcfromPersistValue_info'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.data+0x81e0): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationTypezuzdcfromPersistValue_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.data+0x8470): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.data+0x8960): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType3_closure'
/home/wizek/sandbox/exp-proj/exp-proj/.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8.a(Model.o):(.data+0x8968): undefined reference to `firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType8_closure'
collect2: error: ld returned 1 exit status
Completed 3 action(s).
-- While building package exp-proj-0.0.0 using:
/home/wizek/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 build lib:exp-proj exe:exp-proj --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
<command line>: can't load .so/.DLL for: /home/wizek/sandbox/exp-proj/exp-proj/dist/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8-ghc7.10.3.so (/home/wizek/sandbox/exp-proj/exp-proj/dist/build/libHSexp-proj-0.0.0-8sib1y4kizm0SYHSLrPEV8-ghc7.10.3.so: undefined symbol: firstzu8sib1y4kizzm0SYHSLrPEV8_Test_zdfPersistFieldNotificationType_closure)
@Wizek

Wizek commented Mar 10, 2016

Copy link
Copy Markdown
Author

<MarcelineVQ> Wizek_: linking errors like that are usually caused by forgetting to add a module to other-modules or exposed modules, possibly something called first based on this error. http://stackoverflow.com/questions/32041732/haskell-cabal-build-undefined-reference-error-and-duplicate-recompilation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment