Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cross-compiling IOR #4
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.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
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.