clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c prior.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c tophits.c clang -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c trace.c prior.c:102:12: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (strcmp(sptr, "DIRICHLET") == 0) pri->strategy = PRI_DCHLET; ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j4-20221201-030004 ------------------------------------------------------------------- CC=clang CXX=clang++ gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.6 Python 3.10.8 Available Ruby profiles: [1] ruby27 (with Rubygems) [2] ruby31 (with Rubygems) * Available Rust versions: [1] rust-bin-1.65.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17] 2) Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 system-vm php cli (if any): HEAD of ::gentoo commit 2b007bc611f36f22d5d5d1f5bb44ddab181d4d8f Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Dec 1 09:46:49 2022 +0000 2022-12-01 09:46:48 UTC emerge -qpvO sci-biology/wise [ebuild N ] sci-biology/wise-2.4.0_alpha-r1 USE="-doc"
Created attachment 838815 [details] emerge-info.txt
Created attachment 838817 [details] emerge-history.txt
Created attachment 838819 [details] environment
Created attachment 838821 [details] etc.clang.tar.bz2
Created attachment 838823 [details] etc.portage.tar.bz2
Created attachment 838825 [details] sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log
Created attachment 838827 [details] temp.tar.bz2
Created attachment 889363 [details, diff] partial patch for C99 problems Due to being a mess of generated C code with weird re-definitions and dependencies, solving latest error uncovered is beyond my capacity. clang -O2 -pipe -march=native -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-deprecated-declarations -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../base/ -I../dynlibsrc/ genome_evidence.c genome_evidence.dy:61:1: warning: non-void function does not return a value [-Wreturn-type] 61 | } | ^ 1 warning generated. clang -O2 -pipe -march=native -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-deprecated-declarations -c -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../base/ -I../dynlibsrc/ est_evidence.c est_evidence.dy:142:16: error: incompatible function pointer types assigning to 'int (*)(void *)' from 'Wise2_EstEvidence *(Wise2_EstEvidence *)' (aka 'struct Wise2_EstEvidence *(struct Wise2_EstEvidence *)') [-Wincompatible-function-pointer-types] 142 | in->geu_free = free_EstEvidence; | ^ ~~~~~~~~~~~~~~~~ 1 error generated. Attached patch solves missing includes, wrong int sizes and one cast around sockaddr. I hope that people with more care than me would solve remaining problem of this software (with long-dead upstream site)
On that note, source bundles dyc compiler and if you edit .dy files, it expects to have it to rebuild .h and .c files; errors in source code point to .dy files.