Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874936 - app-arch/lha-114i_p20201004 - header.c: error: type of len defaults to int [-Werror=implicit-int]
Summary: app-arch/lha-114i_p20201004 - header.c: error: type of len defaults to int [-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard: fixed in 114i_p20210328
Keywords: InVCS
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:27 UTC by Toralf Förster
Modified: 2024-10-28 13:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.40 KB, text/plain)
2022-10-04 16:27 UTC, Toralf Förster
Details
app-arch:lha-114i_p20201004:20221004-050103.log (app-arch:lha-114i_p20201004:20221004-050103.log,18.31 KB, text/plain)
2022-10-04 16:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,187.14 KB, text/plain)
2022-10-04 16:27 UTC, Toralf Förster
Details
environment (environment,76.15 KB, text/plain)
2022-10-04 16:27 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.61 KB, application/x-bzip)
2022-10-04 16:27 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.48 KB, application/x-bzip)
2022-10-04 16:27 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.81 KB, application/x-bzip)
2022-10-04 16:27 UTC, Toralf Förster
Details
Patch to fix implicit int (fix-implicit-int.patch,250 bytes, patch)
2023-06-14 07:01 UTC, David Carlos Manuelda
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-10-04 16:27:03 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DEUC -DSUPPORT_LH7   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o header.o header.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DEUC -DSUPPORT_LH7   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o huf.o huf.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DEUC -DSUPPORT_LH7   -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o indicator.o indicator.c
header.c: In function _skip_bytes:
header.c:71:1: error: type of len defaults to int [-Werror=implicit-int]
   71 | _skip_bytes(len)
      | ^~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221002-192609

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
4)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit c599bbe73cde8695547d97c33c9e7da684e68216
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 04:02:35 2022 +0000

    2022-10-04 04:02:35 UTC

emerge -qpvO app-arch/lha
[ebuild  N    ] app-arch/lha-114i_p20201004
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:27:04 UTC
Created attachment 818800 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:27:05 UTC
Created attachment 818803 [details]
app-arch:lha-114i_p20201004:20221004-050103.log
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:27:07 UTC
Created attachment 818806 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:27:08 UTC
Created attachment 818809 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:27:09 UTC
Created attachment 818812 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:27:10 UTC
Created attachment 818815 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:27:12 UTC
Created attachment 818818 [details]
temp.tar.bz2
Comment 8 David Carlos Manuelda 2023-06-14 07:01:22 UTC
Created attachment 863807 [details, diff]
Patch to fix implicit int

If the problem is assumming an implicit int then let's make it explicit and then it compiles.
Comment 9 Larry the Git Cow gentoo-dev 2023-06-17 12:57:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a62477d3c80ecad9164103a27b6ee8dfb7785bc

commit 2a62477d3c80ecad9164103a27b6ee8dfb7785bc
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-06-17 12:56:41 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-06-17 12:56:41 +0000

    app-arch/lha: Bump to 20210328 snapshot
    
    Fixes building with Clang 16.
    
    Bug: https://bugs.gentoo.org/874936
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 app-arch/lha/Manifest                  |  1 +
 app-arch/lha/lha-114i_p20210328.ebuild | 32 ++++++++++++++++++++++++++++++++
 app-arch/lha/metadata.xml              |  1 +
 3 files changed, 34 insertions(+)
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2024-10-20 16:15:08 UTC
Now stable.