Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883891 - sci-biology/wise-2.4.0_alpha-r1 - int (const char , const char ); ISO C99 and later do not support
Summary: sci-biology/wise-2.4.0_alpha-r1 - int (const char , const char ); ISO C99 and...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard: ~arch only
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-01 20:15 UTC by Toralf Förster
Modified: 2024-10-21 21:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.67 KB, text/plain)
2022-12-01 20:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,59.02 KB, text/plain)
2022-12-01 20:15 UTC, Toralf Förster
Details
environment (environment,66.90 KB, text/plain)
2022-12-01 20:15 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,703 bytes, application/x-bzip)
2022-12-01 20:15 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.10 KB, application/x-bzip)
2022-12-01 20:15 UTC, Toralf Förster
Details
sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log (sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log,9.98 KB, text/plain)
2022-12-01 20:15 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,18.86 KB, application/x-bzip)
2022-12-01 20:15 UTC, Toralf Förster
Details
partial patch for C99 problems (wise-2.4.0_alpha-missing-includes.patch,3.71 KB, patch)
2024-04-03 15:50 UTC, NHO
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-01 20:15:33 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-12-01 20:15:34 UTC
Created attachment 838815 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-01 20:15:35 UTC
Created attachment 838817 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-12-01 20:15:37 UTC
Created attachment 838819 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-01 20:15:38 UTC
Created attachment 838821 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-01 20:15:39 UTC
Created attachment 838823 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-01 20:15:40 UTC
Created attachment 838825 [details]
sci-biology:wise-2.4.0_alpha-r1:20221201-104434.log
Comment 7 Toralf Förster gentoo-dev 2022-12-01 20:15:40 UTC
Created attachment 838827 [details]
temp.tar.bz2
Comment 8 NHO 2024-04-03 15:50:44 UTC
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)
Comment 9 NHO 2024-04-03 15:52:02 UTC
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.