user1902392
user1902392

Reputation: 43

Wxhaskell - wxcore fails due to building phase (g++ error)

I'm trying to build wxhaskell, and it seems there is lots of trouble, I could figure out what to do in some cases, but I'm stuck now.

I'm using wxwidgets-2.8 / wxhaskell-0.11.1.2, and the error that occurs is:

g++: error: unrecognized command line option ‘-Wl’
g++: error: unrecognized command line option ‘--soname=/home/ming/.cabal/lib/libwxc-gtk2.8.12-0.11.1.2.so’
make: *** [dist/wxc/libwxc-gtk2.8.12-0.11.1.2.so] Fehler 1
cabal: Error: some packages failed to install:
wxcore-0.11.1.2 failed during the building phase. The exception was:
ExitFailure 2

Does anyone know how to fix this issue? Thanks in advance.

Edit: The full g++ command is here:

http://pastebin.com/TbrQhWEY

Upvotes: 1

Views: 1010

Answers (1)

Cubic
Cubic

Reputation: 15673

Your g++ invokation has -Wl --soname=<something>. It should be -Wl,--soname=<something>

see here.

Upvotes: 1

Related Questions