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

Failed to build the clock package with lts-9.10 #3507

Closed
haskellinfrance opened this issue Oct 23, 2017 · 4 comments
Closed

Failed to build the clock package with lts-9.10 #3507

haskellinfrance opened this issue Oct 23, 2017 · 4 comments

Comments

@haskellinfrance
Copy link

me:~/ $ stack install clock [10:04:58]
clock-0.7.2: configure
clock-0.7.2: build

-- While building package clock-0.7.2 using:
/home/me/.stack/setup-exe-cache/x86_64-linux-tinfo6-nopie/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/me/.stack/global-project/.stack-work/logs/clock-0.7.2.log

Configuring clock-0.7.2...
Building clock-0.7.2...
Preprocessing library clock-0.7.2...
/tmp/stack20342/clock-0.7.2/Clock.hsc:44:0: warning: "hsc_alignment" redefined
/tmp/stack20342/clock-0.7.2/In file included from .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_make.c:1:0:
/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/template-hsc.h:88:0: note: this is the location of the previous definition
 #define hsc_alignment(t...) \
 
/usr/bin/ld: .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_make.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
linking .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_make.o failed (exit code 1)
command was: /usr/bin/gcc .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_make.o .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_utils.o -o .stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-1.24.2.0/build/System/Clock_hsc_make -fno-PIE -fno-stack-protector -L/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/base-4.9.1.0 -Wl,-R,/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/base-4.9.1.0 -L/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/integer-gmp-1.0.0.1 -Wl,-R,/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/integer-gmp-1.0.0.1 -lgmp -L/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/ghc-prim-0.5.0.0 -Wl,-R,/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/ghc-prim-0.5.0.0 -L/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/rts -Wl,-R,/home/me/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/rts -lm -lrt -ldl -lpthread
@mgsloan mgsloan added this to the Support milestone Oct 23, 2017
@mgsloan
Copy link
Contributor

mgsloan commented Oct 23, 2017

Please search the issue tracker before posting! It seems this is biting a lot of arch users lately, though may affect others. Perhaps report it upstream to arch? Seems something changed in arch that is breaking things.

Workaround here: #3448 (comment)
Another recent report of the same issue #3466
Older report of same issue: #3459

@mgsloan mgsloan closed this as completed Oct 23, 2017
@zpalmtree
Copy link

While it appears to be the same error, the previous fix didn't work for me. What did work however, is installing ncurses-full from the AUR.

@mgsloan
Copy link
Contributor

mgsloan commented Oct 23, 2017

Ah, good to know that workaround too, glad it's resolved.

@mgsloan
Copy link
Contributor

mgsloan commented Dec 18, 2017

One route would be to make an Arch issue about not making the haskell setup so atypical. Seems like in the last couple months issues with Arch have been the top OS-specific / distro-specific issues

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

No branches or pull requests

3 participants