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

build: fix -Winline error when building with DEBUG #15815

Closed
wants to merge 1 commit into from

Conversation

heitbaum
Copy link

When building debug image avoid:

./lib/easy_lock.h:72:20: error: inlining failed in call to 'curl_simple_lock_lock': function not considered for inlining [-Werror=inline]

issues when building against DEBUG glibc

When building debug image avoid:

 ./lib/easy_lock.h:72:20: error: inlining failed in call to 'curl_simple_lock_lock': function not considered for inlining [-Werror=inline]

Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
-Winline # clang 1.0 gcc 1.0
)
endif()

Copy link
Member

@bagder bagder Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vszakats we have discussed this option before. It is not used when configure sets picky options. Its value and use is questionable. Should we just never use it?

Copy link
Member

@vszakats vszakats Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building with curl debug functionality + memory tracing + picky warnings
and CURL_WERROR explicitly enabled looks like an atypical build case
to me. ENABLE_DEBUG is meant to debug curl itself and basically removes
security.

Was this intented? If not, this might be a legit (though somewhat accidental)
warning sign, and possible replace ENABLE_DEBUG=ON with
-DCMAKE_BUILD_TYPE=Debug, which creates a secure/production curl
with debug info enabled.

In case it was intented and we want to make it pass, it's better to delete
this flag completely, rather then adding more conditionals.

PR → #15819

@testclutch
Copy link

Analysis of PR #15815 at 7ce821cb:

Test 285 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Test 2003 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Test 1501 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Test 1190 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

vszakats added a commit to vszakats/curl that referenced this pull request Dec 23, 2024
To avoid this in certain debug build cases:
```
./lib/easy_lock.h:72:20: error: inlining failed in call to 'curl_simple_lock_lock': function not considered for inlining [-Werror=inline]
```

Ref: curl#13596
Reported-by: Rudi Heitbaum
Closes curl#15815
@vszakats vszakats closed this in c80c399 Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants