Summary: | [haskell overlay] dev-haskell/accelerate-cuda passes CFLAGS into non-gcc compiler | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maciej Piechotka <uzytkownik2> |
Component: | New packages | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Maciej Piechotka
2012-11-24 11:46:42 UTC
(In reply to comment #0) > If CFLAGS contains unsanitized CFLAGS which are not understood by nvcc then > dev-haskell/accelerate-cuda fails to build as it tries to pass it directly. > Strangely it works with -ggdb but not -Wa. I guess it's due to some sanitizing there is already in-place: src_configure() { # It assumes that configure is run, but does not run it (Andres has # patched upstream to fix this). So need to run configure. But its # difficult to make the configure works as it wants to use # /opt/cuda/bin/nvcc which does not understand lots # of g++ flags. strip-flags filter-flags -march* -ggdb -pipe -Wl* haskell-cabal_src_configure } What are your options? (In reply to comment #1) > (In reply to comment #0) > > If CFLAGS contains unsanitized CFLAGS which are not understood by nvcc then > > dev-haskell/accelerate-cuda fails to build as it tries to pass it directly. > > Strangely it works with -ggdb but not -Wa. > > I guess it's due to some sanitizing there is already in-place: > > src_configure() { > # It assumes that configure is run, but does not run it (Andres has > # patched upstream to fix this). So need to run configure. But its > # difficult to make the configure works as it wants to use > # /opt/cuda/bin/nvcc which does not understand lots > # of g++ flags. > strip-flags > filter-flags -march* -ggdb -pipe -Wl* > haskell-cabal_src_configure > } > > What are your options? -Wa,--compress-debug-sections (Yes - I understend that it is technically not safe flag but it prevents webkit-gtk build from crashing during compilation when ar tries to create archive bigger then 4G). pushed fix in the gentoo-haskell overlay in dev-haskell/accelerate-cuda-0.13.0.3-r1. |