question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OSX linker errors trying to update 2 different python/C++ feedstocks

See original GitHub issue

Issue: see https://github.com/conda-forge/humanleague-feedstock/pull/7 and https://github.com/conda-forge/neworder-feedstock/pull/7

The errors seem identical in both, e.g. from the humanleague PR

I’m trying to update the version of this package and 2 of the builds (both OSX) are failing with:

2020-11-07T14:03:44.4972520Z   clang-10: error: -Wl,-export_dynamic: 'linker' input unused [-Werror,-Wunused-command-line-argument]
2020-11-07T14:03:44.4996480Z   error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
2020-11-07T14:03:44.5178070Z   Building wheel for humanleague (setup.py): finished with status 'error'

I could silence this by adding -Wno-unused-command-line-argument (if I knew where to put it, which I don’t) but it’s probably not the best solution anyway. The other OSX build is fine (despite using the same version of clang), but does emit this warning:

2020-11-07T14:01:19.6837930Z   ld: warning: -pie being ignored. It is only used when linking a main executable

which I’m assuming is relevant. I’ve no idea where the -fPIE flag has come from, it’s not in my setup.py and its not appropriate here as the target is a library? So I’m stumped, can anybody help please?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
virgesmithcommented, Nov 21, 2020

all done now, thanks @isuruf

0reactions
isurufcommented, Nov 20, 2020

then you just have -fPIE -Wno-unused-command-line-argument in your CFLAGS and everyone is happy?

That’d make autoconf scripts go crazy.

But fair enough, if neworder 0.0.8 had the warning but not the 2 failures, then I wonder if its a red herring that the failures are due to the same warning being promoted to an error? It could be another unused link arg?, sadly clang’s error message isn’t expliciit. Anyway I’ll update one of the packages over the weekend and see if that fixes it…

The only error is the -Wl,-export_dynamic being unused. -fPIE is a harmless warning. You should remove https://github.com/virgesmith/neworder/blob/master/setup.py#L36 as compiler warnings increase in every new compiler version and then you’ll have to have workarounds. You should only add them in your CI scripts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clang linking error MacOS Big Sur
Hi All, I am trying to build my helloworld.cpp, but I am having problem since I updated to Big Sur. Below a verbose...
Read more >
Linker error when compiling from head of master on MacOS
I am running into this issue as well while building with the master branch on MacOS High Sierra and Python 3.6. bazel version:...
Read more >
Linker errors when compiling C++ application - macos
Okay! I managed to fix this. Turns out my compiler was picking up some other OpenSSL libs that were not compatible.
Read more >
Anaconda compiler tools
Conda-build automatically tries to use the latest Python version available in the currently configured channels, which normally gets the latest from the default ......
Read more >
Understanding and fixing compiler and linker errors
First, let's distinguish between the types of errors: most compilers will give three types of compile-time alerts: compiler warnings, compiler errors, and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found