Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

GHC linking fails due to comma in "#default,static" #906

Closed
ghost opened this issue Sep 28, 2016 · 1 comment
Closed

GHC linking fails due to comma in "#default,static" #906

ghost opened this issue Sep 28, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 28, 2016

Having a dependant haskell library will generate a linker command line that contains
-Wl,-rpath '-Wl,/path/to/buck-out/gen/some-library/some-library#default,static'

This causes the clang linker to interpret 'static' as a separate path and to fail with:
ld: file not found: static

I've fixed this for now by changing the comma to a plus: '#default+static'. Would
it be feasible to change this?

@Coneko
Copy link

Coneko commented Sep 28, 2016

cc @andrewjcg

According to https://github.com/facebook/buck/blob/master/src/com/facebook/buck/cxx/Linkers.java#L40 we should be using -Wlinker when the argument contains ,, not -Wl.

Can you add instructions on how to repro this?

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

No branches or pull requests

2 participants