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

Bug 713988

Summary: net-misc/openr2-1.3.0 : r2chan.c: error: overflow in conversion from long unsigned int to int changes value from 2147801634 to -21
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED OBSOLETE    
Severity: normal CC: chainsaw, maintainer-needed
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 914477    
Bug Blocks:    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-misc:openr2-1.3.0:20200322-132218.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-22 13:36:42 UTC
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -Iopenr2 -std=c99 -pedantic -Werror -Wwrite-strings -Wunused-variable -Wstrict-prototypes -Wmissing-prototypes -DREVISION=\0\ -D__OR2_COMPILING_LIBRARY__ -fvisibility=hidden -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c r2chan.c  -fPIC -DPIC -o .libs/libopenr2_la-r2chan.o
r2chan.c: In function __openr2_chan_new_from_fd:
r2chan.c:53:22: error: overflow in conversion from long unsigned int to int changes value from 2147801634 to -2147165662 [-Werror=overflow]
   53 |  res = ioctl(chanfd, OR2_HW_OP_CHANNO, &channo);
      |                      ^~~~~~~~~~~~~~~~
r2chan.c:63:22: error: overflow in conversion from long unsigned int to int changes value from 3230194181 to -1064773115 [-Werror=overflow]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 22 12:18:34 UTC 2020
/var/db/repos/musl	Sun Mar 22 03:12:57 UTC 2020

emerge -qpvO net-misc/openr2
[ebuild  N    ] net-misc/openr2-1.3.0
Comment 1 Toralf Förster gentoo-dev 2020-03-22 13:36:45 UTC
Created attachment 624450 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-22 13:36:48 UTC
Created attachment 624452 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-22 13:36:50 UTC
Created attachment 624454 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-22 13:36:53 UTC
Created attachment 624456 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-22 13:36:56 UTC
Created attachment 624458 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-22 13:36:58 UTC
Created attachment 624460 [details]
net-misc:openr2-1.3.0:20200322-132218.log
Comment 7 Toralf Förster gentoo-dev 2020-03-22 13:37:01 UTC
Created attachment 624462 [details]
temp.tbz2
Comment 8 Joonas Niilola gentoo-dev 2023-09-21 08:19:35 UTC
Last-rited, please see bug #914477.