[opensuse-buildservice] autoconf when cross compiling for mingw32
In OBS I am cross-compiling (target is mingw32) a package that wants to run autoconf. I see that when it starts autoconf, it seems to be detecting the target correctly. However, as autoconf continues, I get: [ 81s] configure: error: cannot run test program while cross compiling [ 81s] See `config.log' for more details [ 81s] error: Bad exit status from /var/tmp/rpm-tmp.3JPOqP (%build) Hmm. What to do? I realize that this is not really a limitation of OBS. But surely someone has come across this issue earlier? Any suggestions? -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thursday 2014-01-09 17:52, Roger Oberholtzer wrote:
[ 81s] configure: error: cannot run test program while cross compiling [ 81s] See `config.log' for more details [ 81s] error: Bad exit status from /var/tmp/rpm-tmp.3JPOqP (%build)
Hmm. What to do?
What package are we talking about? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thursday, January 09, 2014 05:59:50 PM Jan Engelhardt wrote:
On Thursday 2014-01-09 17:52, Roger Oberholtzer wrote:
[ 81s] configure: error: cannot run test program while cross compiling [ 81s] See `config.log' for more details [ 81s] error: Bad exit status from /var/tmp/rpm-tmp.3JPOqP (%build)
Hmm. What to do?
What package are we talking about?
It is a Tcl/Tk extension called TkImg. -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thursday 2014-01-09 18:03, Roger Oberholtzer wrote:
On Thursday, January 09, 2014 05:59:50 PM Jan Engelhardt wrote:
On Thursday 2014-01-09 17:52, Roger Oberholtzer wrote:
[ 81s] configure: error: cannot run test program while cross compiling [ 81s] See `config.log' for more details [ 81s] error: Bad exit status from /var/tmp/rpm-tmp.3JPOqP (%build)
Hmm. What to do?
What package are we talking about?
It is a Tcl/Tk extension called TkImg.
AC_TRY_COMPILE(,[__int64 value = (__int64) 0;], tcl_cv_type_64bit=__int64,tcl_cv_type_64bit=none AC_TRY_RUN([#include <unistd.h> int main() {exit(!(sizeof(long long) > sizeof(long)));} ], tcl_cv_type_64bit="long long"))]) *sigh* someone (whoever wrote tcl.m4) did not knew autoconf well enough. The AC_TRY_RUN call is, as you saw, an impediment to cross-compilation and not really necessary. It should be replaceble by: AC_CHECK_SIZEOF([long long]) AC_CHECK_SIZEOF([long]) AS_IF([test "$ac_cv_sizeof_long_long" -ne 0 && test "$ac_cv_sizeof_long" -ne 0 && test "$ac_cv_sizeof_long_long" -gt "$ac_cv_sizeof_long"], [tcl_cv_type_64bit="long long"]) (And in the same go, for cosmetics, __int64 could also be AC_CHECK_SIZEOF'ed instead.) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Jan Engelhardt
-
Roger Oberholtzer