-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 fails with autoconf master #5126
Comments
Isn't that then rather a sign that autoconf master is broken? |
Not definitely: flex broke too but it was abusing how m4 works, so arguably this is something in curl that shouldn't have worked. Filed as a headsup, I'll do some more digging shortly to see if its anything obvious. |
Can you figure out which function it runs into that error in? |
I filed https://savannah.gnu.org/support/?110213 to get support from the autoconf side. Pasting the digging I've done so far: It fails like this:
Yes, I'm cross-compiling, but the invocation of Adding some echos, CURL_CHECK_COMPILER[1] succeeds but it never actually calls into the body of CURL_SET_COMPILER_BASIC_OPTS[2]. The generated code looks like this:
Which is the beginning of CURL_SET_COMPILER_BASIC_OPTS [3]. That eventually calls CURL_COMPILER_WORKS_IFELSE which has a AC_RUN_IFELSE wrapper without the cross-compiling fallback, but it is guarded with a $cross_compiling test[4]. Does autoconf now detect calls to AC_RUN_IFELSE without an if-cross-compiling option and abort ahead of time? If so, this breaks people who guard AC_RUN_IFELSE themselves, correct? [1] https://github.com/curl/curl/blob/master/configure.ac#L258 |
Solved! From that bug report:
I can confirm that removing that |
Sure, but...
|
When cross-compiling curl 7.69.0 with autoconf master, the build fails:
The build works fine with autoconf 2.69. This is OpenEmbedded, cross-compiling using gcc to a Linux platform.
The text was updated successfully, but these errors were encountered: