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

Bug 870499

Summary: www-client/fetch-1.0-r4:0 - configure:966:1: error: return type defaults to 'int' [-Werror=implicit-int]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Patrice Clement <monsieurp>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
www-client:fetch-1.0-r4:20220916-183050.log

Description Toralf Förster gentoo-dev 2022-09-16 19:33:28 UTC
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! Please attach the following file when seeking support:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220913-110042

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.2.1 *
clang/llvm (if any):
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3.90

  HEAD of ::gentoo
commit e5cd60aa15289f27c42e8230065d3f4c599234a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 16 17:46:46 2022 +0000

    2022-09-16 17:46:45 UTC

emerge -qpvO www-client/fetch
[ebuild  N    ] www-client/fetch-1.0-r4
Comment 1 Toralf Förster gentoo-dev 2022-09-16 19:33:29 UTC
Created attachment 806233 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-16 19:33:30 UTC
Created attachment 806236 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-16 19:33:31 UTC
Created attachment 806239 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-16 19:33:33 UTC
Created attachment 806242 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-16 19:33:34 UTC
Created attachment 806245 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-16 19:33:34 UTC
Created attachment 806248 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-16 19:33:35 UTC
Created attachment 806251 [details]
www-client:fetch-1.0-r4:20220916-183050.log
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-17 00:17:00 UTC
configure:840: checking for gcc
configure:953: checking whether the C compiler (gcc -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0) works
configure:969: gcc -o conftest -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=implicit-int  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 conftest.c  1>&5
configure:966:1: error: return type defaults to 'int' [-Werror=implicit-int]
  966 | main(){return(0);}
      | ^~~~
cc1: some warnings being treated as errors
configure: failed program was:

Legit.
Comment 9 Larry the Git Cow gentoo-dev 2022-09-30 20:32:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31f6cdae30ecc9fec095064bca94aa384ba65980

commit 31f6cdae30ecc9fec095064bca94aa384ba65980
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-30 19:45:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-30 20:32:32 +0000

    www-client/fetch: fix configure w/ clang 16
    
    Old autoconf.
    
    Closes: https://bugs.gentoo.org/870499
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/fetch/fetch-1.0-r4.ebuild | 5 +++++
 1 file changed, 5 insertions(+)