-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix Compiling on FreeBSD + gcc #11069
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
Conversation
There's something up with the current form of the patch on llvm, because amusingly it implements cmn_err as a format argument. I'll update the pull request tonight. |
Codecov Report
@@ Coverage Diff @@
## master #11069 +/- ##
==========================================
+ Coverage 79.46% 79.72% +0.25%
==========================================
Files 398 397 -1
Lines 125766 125754 -12
==========================================
+ Hits 99945 100257 +312
+ Misses 25821 25497 -324
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
cc: @mjguzik you may be interested in this. |
i'll push a simpler update soon - itturns out that the openzfs codebase is peppered with format check failures that don't get picked up in Linux builds with llvm because llvm just completely ignores printf format flags for the given format attribute. They trip on freebsd because freebsd's printf target is being checked for format attributes correctly. So, I'll push the ioctl fixes and then a separate fix that just simply disables all of the format checks on freebsd until we can figure out a plan to fix them for both linux/freebsd. |
@erikarn when do you think you can get that update in? |
Hi!
Tomorrow? I have this week off of work and i'm just working down my TODO
list right now.
…-adrian
|
@erikarn that'd be great, thanks. |
e4cce39
to
f4a42d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you rebase this on the latest commits in the master branch it should resolve the FreeBSD CI build failures.
Whoops! I will do that in a couple hours.
…-adrian
On Mon, 9 Nov 2020 at 18:44, Brian Behlendorf ***@***.***> wrote:
***@***.**** approved this pull request.
If you rebase this on the latest commits in the master branch it should
resolve the FreeBSD CI build failures.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11069 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2L3NPZCMWP5FLLKG3DD3SPCSJDANCNFSM4SSOIEOA>
.
|
This shows up when compiling freebsd-head on amd64 using gcc-6.4. The lib32 compat build ends up tripping over this assumption. Signed-off-by: adrian chadd <[email protected]>
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger at all. Add in the format flags but keep them behind #if 0 for now; there are too many format issues that trigger when one does format checking in the shared code. Signed-off-by: adrian chadd <[email protected]>
f4a42d9
to
38e6b43
Compare
hi! I did rebase them but the freebsd failures still occur. Is that because of my diff? It looks like a variety of out of space and crashes happened? |
The compress_003_pos failure on FreeBSD head is a known failure, don't worry about it. |
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger at all. Add in the format flags but keep them behind #if 0 for now; there are too many format issues that trigger when one does format checking in the shared code. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes #11068 Closes #11069
This shows up when compiling freebsd-head on amd64 using gcc-6.4. The lib32 compat build ends up tripping over this assumption. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes #11068 Closes #11069
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger at all. Add in the format flags but keep them behind #if 0 for now; there are too many format issues that trigger when one does format checking in the shared code. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes #11068 Closes #11069
This shows up when compiling freebsd-head on amd64 using gcc-6.4. The lib32 compat build ends up tripping over this assumption. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes openzfs#11068 Closes openzfs#11069
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger at all. Add in the format flags but keep them behind #if 0 for now; there are too many format issues that trigger when one does format checking in the shared code. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes openzfs#11068 Closes openzfs#11069
This shows up when compiling freebsd-head on amd64 using gcc-6.4. The lib32 compat build ends up tripping over this assumption. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes openzfs#11068 Closes openzfs#11069
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger at all. Add in the format flags but keep them behind #if 0 for now; there are too many format issues that trigger when one does format checking in the shared code. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: adrian chadd <[email protected]> Closes openzfs#11068 Closes openzfs#11069
Fix compile issues on FreeBSD/amd64 with gcc
Motivation and Context
This fixes issue #11068 .
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.