Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 882443

Summary: sci-mathematics/jags: configure breakage with Clang 16 (uses outdated dev-lang/R R.m4 macro)
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: CONFIRMED ---    
Severity: normal CC: ago
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/p/mcmc-jags/bugs/58/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906027    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-22 07:17:11 UTC
Reported upstream at https://sourceforge.net/p/mcmc-jags/bugs/58/.

```
configure:21871: checking for working isfinite
configure:21893: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type     -ggdb3 -Werror=implicit-function-declaration -Werror=implicit-int  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs conftest.c  >&5
conftest.c: In function 'main':
conftest.c:64:3: error: implicit declaration of function 'exit' [-Werror=implicit-function-declaration]
   64 |   exit(isfinite(1./0.) | isfinite(0./0.) | isfinite(-1./0.));
      |   ^~~~
conftest.c:62:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   61 | #include "confdefs.h"
  +++ |+#include <stdlib.h>
   62 | int main () {
conftest.c:64:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   64 |   exit(isfinite(1./0.) | isfinite(0./0.) | isfinite(-1./0.));
      |   ^~~~
conftest.c:64:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
cc1: some warnings being treated as errors
configure:21893: $? = 1
configure: program exited with status 1
configure: failed program was:
```
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-28 23:47:39 UTC
*** Bug 898268 has been marked as a duplicate of this bug. ***