Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

cmake 3.31.7 bootstrap illegal instruction on Sparc32 (qemu) ?



So, I am still trying to build things from slightly older pkgsrc tree,
and Cmake 3.31.7 fails witch attached gzipped log, ending with illegal
instruction.

Qemu line:
qemu-system-sparc -hda sparc-netbsd-15g-compressed.qcow2 -m 1536 -g
1024x768x24 -M SS-20 -smp 3 -accel tcg,thread=multi,tb-size=256

qemu --version:
qemu-system-sparc --version
QEMU emulator version 9.1.50 (v9.1.0-1687-gf0cfd06786-dirty)
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Note that this configuration survived gnutls , libbluray,
libtheora-1.2.0  builds
so generally it works ?

end of the log reads like this:

===

Try: gcc
Line: gcc -O2 -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/libxml2 -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -lexecinfo -latomic -std=gnu89
cmake_bootstrap_832_test.c -o cmake_bootstrap_832_test
----------  file   -----------------------

#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
#error "On AIX with GNU we need the -pthread flag."
#endif

#if defined(__sun) && __STDC_VERSION__ < 199901L
#error "On Solaris we need C99."
#endif

#if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
__GNUC_MINOR__) >= 409)
#error "On HP-UX we need GCC 4.9 or higher."
#endif

#include <stdio.h>

int main(int argc, char* argv[])
{
  printf("%d%c", (argv != 0), (char)0x0a);
  return argc - 1;
}

------------------------------------------
[1]   Illegal instruction     ./${TMPFILE}
Test produced non-zero return code

=====

I am not sure how to test pkgsrc tree version ...

Attachment: cmake_bootstrap.log.gz
Description: application/gzip



Home | Main Index | Thread Index | Old Index