Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker and CC flags are incompatible on OSX #662

Open
abouteiller opened this issue Jun 11, 2024 · 0 comments
Open

Linker and CC flags are incompatible on OSX #662

abouteiller opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working low priority Nice to have at some point

Comments

@abouteiller
Copy link
Contributor

Describe the bug

Some flags that are valid for CC are not valid for the linker on OSX (this may also impact other platforms, although not seen in the wild).

To Reproduce

Steps to reproduce the behavior:

  1. Checkout version a5f49ab2a (HEAD -> master, origin/master) Merge pull request #644 from abouteiller/bugfix/no-gpu-found..Bouteiller
  2. ../dplasma/configure --prefix=/Users/bouteill/Devel/parsec/dplasma.openblas-gnu.debug --enable-debug=paranoid\,noisier --with-blas=OpenBLAS --with-platform=macosx --enable-prof-trace --with-python=python3 M4=gm4
  3. code compiles, but loads of warnings spat out [2892/3249] Building C object tests/CMakeFiles/testing_zlange.dir/testing_zlange.c.o cc1: note: '-g3' is not supported by the debug linker in use (set to 2)

Expected behavior

No warnings

Solution

The CC_FLAGS and LINK_FLAGS need to be separated, just like we separated the FC_FLAGS and CXX_FLAGS.

@abouteiller abouteiller added bug Something isn't working low priority Nice to have at some point labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority Nice to have at some point
Projects
None yet
Development

No branches or pull requests

1 participant