This repository has been archived by the owner on Feb 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
cross-compiling IOR #4
Comments
It looks like removing AC_FUNC_MALLOC from configure.in would work as well. I don't think that I made a conscious decision to include AC_FUNC_MALLOC; it probably just was part of what autoscan produced when I started the configure.in file. So I think I'll likely just back out that line as the quick solution. IOR should work as well as it always has without it. You could try it out by removing that line, and then running "bootstrap" to regenerate the configure script. FYI, I did not see this on BG/Q. Likely because the architectures are more similar on the compilation and compute nodes with Q. |
stakizawa
added a commit
to stakizawa/kmrnext
that referenced
this issue
Jan 4, 2016
I removed AC_FUNC_MALLOC from configure.ac, to allow compilation on K Computer. For detail, see the following link. LLNL/ior#4
sdt
added a commit
to axel-download-accelerator/axel
that referenced
this issue
Jun 20, 2016
AC_FUNC_MALLOC & AC_FUNC_REALLOC cause link errors when cross-compiling. It seems the preferred solution is to just remove them, and optionally adding them to the AC_CHECK_FUNCS section. eg. LLNL/ior#4 http://rickfoosusa.blogspot.com.au/2011/11/howto-fix-undefined-reference-to.html
BenWiederhake
added a commit
to majn/tgl
that referenced
this issue
Jun 17, 2017
AC_FUNC_MALLOC & AC_FUNC_REALLOC cause link errors when cross-compiling. It seems the preferred solution is to just remove them, and optionally adding them to the AC_CHECK_FUNCS section. Examples: - LLNL/ior#4 - stakizawa/kmrnext@4733172 - axel-download-accelerator/axel@6667e4c (used as template for this commit message; thanks!) - https://rickfoosusa.blogspot.de/2011/11/howto-fix-undefined-reference-to.html
BenWiederhake
added a commit
to BenWiederhake/telegram-purple
that referenced
this issue
Jun 17, 2017
AC_FUNC_MALLOC & AC_FUNC_REALLOC cause link errors when cross-compiling. It seems the preferred solution is to just remove them, and optionally adding them to the AC_CHECK_FUNCS section. Examples: - LLNL/ior#4 - stakizawa/kmrnext@4733172 - axel-download-accelerator/axel@6667e4c (used as template for this commit message; thanks!) - https://rickfoosusa.blogspot.de/2011/11/howto-fix-undefined-reference-to.html - majn/tgl@c58d62b
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue: undefined references to 'rpl_malloc' when cross compiling
Cause: AC_FUNC_MALLOC is based on a run-time test
When cross-compiling, the run-time test cannot run, so autoconf assumes non-gnu-libc behavior
(I found this link helpful: http://wiki.buici.com/xwiki/bin/view/Programing+C+and+C%2B%2B/Autoconf+and+RPL_MALLOC )
Platform: Blue Gene /P (but probably /L and maybe /Q?)
I can work around this with an environment variable but if you could toss a 'rpl_malloc' in IOR to keep cross compilers happy, that would be great.
The text was updated successfully, but these errors were encountered: