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

[BUG]: EDG does not link to libfmt #6343

Open
dangelog opened this issue Apr 11, 2024 · 4 comments
Open

[BUG]: EDG does not link to libfmt #6343

dangelog opened this issue Apr 11, 2024 · 4 comments
Labels

Comments

@dangelog
Copy link

Describe the bug

When using libfmt on CE with the EDG frontend, the program compiles, but the linker complains about the library not being found:

Could not execute the program
Compiler returned: 2
Compiler stderr

library "fmtd" does not exist in the specified library directories
C++ prelinker: error: command line error
/opt/compiler-explorer/gcc-13.2.0/bin/../lib/gcc/x86_64-linux-gnu/13.2.0/../../../../x86_64-linux-gnu/bin/ld: cannot find -lfmtd: No such file or directory
collect2: error: ld returned 1 exit status

Related issues: #5970 , #966

Steps to reproduce

  1. Visit CE
  2. Select an EDG-GNU compiler
  3. Add libfmt 10.2.1 to the libraries
  4. Add an executor for the compiler
  5. Build anything

Expected behavior

It should be able to link+run when using libfmt.

Reproduction link

https://gcc.godbolt.org/z/jEj46YW5h

Screenshots

Not applicable

Operating System

No response

Browser version

No response

@dangelog dangelog added the bug label Apr 11, 2024
@dangelog
Copy link
Author

Clang (reflection) also seems to have the same problem, while Clang 18 / GCC 13 are fine. Is it just a stale cache somewhere?

@partouf
Copy link
Contributor

partouf commented Apr 11, 2024

No, the EDG is not recognized as a working compiler by cmake https://conan.compiler-explorer.com/getlogging/20240331133436

@partouf
Copy link
Contributor

partouf commented Apr 11, 2024

The compiler seems to not support -Wl,rpath

override getSharedLibraryPathsAsArguments() {

We can probably work around that

@partouf
Copy link
Contributor

partouf commented Apr 14, 2024

I have fixed the rpath issue, but a new issue has popped up that I can't fix.
https://conan.compiler-explorer.com/getlogging/20240412030928

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

No branches or pull requests

2 participants