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

The warning when building for FreeBSD and OpenBSD #14551

Open
yanecc opened this issue May 1, 2024 · 4 comments
Open

The warning when building for FreeBSD and OpenBSD #14551

yanecc opened this issue May 1, 2024 · 4 comments

Comments

@yanecc
Copy link

yanecc commented May 1, 2024

Bug Report

When I built for FreeBSD with GitHub Actions, I noticed a warning from the compiler.

cc: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]

https://github.com/yanecc/MockGPT/actions/runs/8981357271/job/24666718448#step:3:1628
crystal 1.10.1

@yanecc yanecc added the kind:bug label May 1, 2024
@yanecc yanecc changed the title The warning when building for FreeBSD The warning when building for FreeBSD and OpenBSD May 7, 2024
@yanecc
Copy link
Author

yanecc commented May 7, 2024

The same warnings with OpenBSD
https://github.com/yanecc/MockGPT/actions/runs/8981357271/job/24666719117#step:3:1333
crystal 1.4.1

@ysbaddaden
Copy link
Contributor

This is clang complaining that -rdynamic is unused because of the --static compilation flag. I can't reproduce on Linux (gnu or musl) with CC=clang-17 and passing --link-flags="-Wunused-command-line-argument".

@yanecc
Copy link
Author

yanecc commented May 7, 2024

It seems exclusive to the BSD-like os.

@straight-shoota
Copy link
Member

I suppose we can skip -rdynamic on BSDs when linking statically?
Would still be interesting to figure out the exact conditions for this (like why doesn't it reproduce on linux?).

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

No branches or pull requests

4 participants