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
On armv7hl, OCaml 4.08.0 beta 3 FTBFS with "warning: implicit declaration of function 'Saved_return_address'" #8647
Comments
That's the problem. Autoconfiguration did not recognize your platform as supported by the native-code compiler (ocamlopt). I agree it should have failed earlier, at the beginning of
reports? (Paging @shindere .) |
I chucked out all my ARM servers when I moved to RISC-V, so now I've got to do all this by submitting scratch builds to the Fedora build system :-( It took a bit of time but here's the answer:
(For aarch64 it prints: Anyway while I was investigating this I found out something interesting: The Fedora build system searches over the tree and replaces any The full build logs are here: |
Sorry ignore all that, I understand why the configure test is failing. It's because I'm using:
Now the reason I have to do that is because I had an earlier problem on x86_64. Normally Fedora sets
So I'll stop setting |
Let's close this, I'll investigate the host/GCC thing separately. |
OK I see the problem. The |
Sorry for the late response here.
rwmjones (2019/04/26 08:16 -0700):
OK I see the problem. The `configure.ac` file assumes that if
`--host` was set then you must be cross-compiling, but that's not
actually a correct assumption. It only applies I think if build !=
host, but even better is to use the autoconf `AC_CHECK_TOOL` macros
which already take into account the correct rules for cross-compiling.
So where exactly in configure.ac do you think `AC_CHECK_TOOL` should be
used?
|
Anywhere you need to check for a "tool" (eg. ‘as’). Probably best to read the autoconf documentation on this as it will explain it better than I can. https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Generic-Programs.html |
This bug is back again in 4.09: https://kojipkgs.fedoraproject.org//work/tasks/546/39440546/build.log |
I'm carrying this patch which removes the incorrect use of |
OK I fixed my workaround and got it to compile again. I need the patch in the previous comment, plus:
|
@rwmjones: in OK I see the problem. The Well, that's not completely true. Cross-compiling is assumed only if the One tricky thing, though, is that autoconf's documentation says: If you mean to override the result of 'config.guess', use '--build', not '--host', since the latter enables cross-compilation. For historical reasons, whenever you specify '--host', be sure to specify '--build' too; this will be fixed in the future. I am not sure this has ever been fixed, so it may be a good idea to make |
I just opened PR #9315 to try to fix this problem.
|
I think I was referring to this code:
Anyway I'll try out your patch in the other PR. |
BTW using
It will produce configure output like:
|
rwmjones (2020/02/18 07:59 -0800):
I think I was referring to this code:
```
AS_IF(
[test x"$host" = x"$target"],
[cross_compiler=false],
[cross_compiler=true])
```
Ah. It turns out there are I think two notions of cross-compiler around.
The autoconf one takes into account build and host and that one takes
into acocunt host and target. It was introduced to enable a behaviour
from the pre-autoconf configure script but so far I never ported this
feature and nobody complained that it was missing. I think that code you
mention is not relevant for your problem. *
Anyway I'll try out your patch in the other PR.
Thanks.
|
The full log is here:
https://kojipkgs.fedoraproject.org//work/tasks/23/34470023/build.log
The text was updated successfully, but these errors were encountered: