cabal copy failed

90 views
Skip to first unread message

Steve

unread,
Dec 3, 2019, 1:21:50 PM12/3/19
to haskell-stack
I was moving my -X language extensions (ie -XTupleSections) from the library section of package.yaml to the extensions section as suggested in the compile messages.  Finally figured out that the it is really called the default-extensions section.  Once I got that all straighten out, I now get the following on all my projects, including a new stack project with zero code changes (ie stack new junk; cd junk; stack build).

Any ideas on how to clean this up without reinstalling everything?

Linking .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1/build/junk-exe/junk-exe ...
junk> copy/register
Installing library in /home/steve/src/haskell/junk/.stack-work/install/x86_64-linux-tinfo6/95e6484feca8fe6bbbcd540e791e4c40d0c5494a26647a7c5bcaa21d90d24eb8/8.6.5/lib/x86_64-linux-ghc-8.6.5/junk-0.1.0.0-794nNikifWA7WHaqgf0yKf
/usr/bin/strip:/home/steve/src/haskell/junk/.stack-work/install/x86_64-linux-tinfo6/95e6484feca8fe6bbbcd540e791e4c40d0c5494a26647a7c5bcaa21d90d24eb8/8.6.5/lib/x86_64-linux-ghc-8.6.5/libHSjunk-0.1.0.0-794nNikifWA7WHaqgf0yKf-ghc8.6.5.so[.gnu.build.attributes]: corrupt GNU build attribute note: wrong note type: bad value
'cabal copy' failed.  Error message:

--  While building package junk-0.1.0.0 using:
      /home/steve/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 copy
    Process exited with code: ExitFailure 1


Steve

unread,
Dec 3, 2019, 7:05:33 PM12/3/19
to haskell-stack
After poking around a bit, it turns out to be a bad version of /usr/bin/strip (see https://stackoverflow.com/questions/58990841/ive-got-this-error-message-from-strip-gnu-build-attributes-corrupt-gnu-bui). 


Reply all
Reply to author
Forward
0 new messages