compiler-explorer / compiler-explorer/compiler-explorer

[BUG]: EDG does not link to libfmt

Open
#6,343 4 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.