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

Bug 257049

Summary: cdparanoia-3.10.2-r2 fails when building with GCC 4.3.3
Product: Gentoo Linux Reporter: Guillermo Antonio Amaral Bastidas <gamaral>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes problem by storing arrays in variables and passing that to memcpy

Description Guillermo Antonio Amaral Bastidas 2009-01-31 08:33:23 UTC
Memset inline arrays get passed as parameters and not as pointers.

Reproducible: Always

Steps to Reproduce:
1. Get GCC 4.3.3
2. Try to compile
3. Cry when it fails

Actual Results:  
I cried a bit inside

Expected Results:  
A successful compile install

Portage 2.2_rc23 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.6.1-r0, 2.6.28-gentoo-r1-daedalus i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-daedalus-i686-Intel-R-_Core-TM-2_Duo_CPU_T5850_@_2.16GHz-with-glibc2.0
Timestamp of tree: Sat, 31 Jan 2009 05:30:16 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats
 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi berkdb bzip2 cli cracklib crypt cups dri dts emacs fortran gdbm gif gpm iconv ipv6 isdnlog jbig jpeg 
lcms midi mmx mng mudflap ncurses nls nptl nptlonly openexr opengl openmp pae pam pcre perl png pppd python readline 
reflection session spl sse sse2 ssl ssse3 sysfs tcpd tiff unicode x86 xinerama xorg zlib" ALSA_CARDS="ali5451 als4000
 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 inte
l8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsn
oop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route shar
e shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file au
thz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate d
ir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magi
c negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="e
vdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb n
curses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLA
GS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Guillermo Antonio Amaral Bastidas 2009-01-31 08:35:35 UTC
Created attachment 180383 [details, diff]
Fixes problem by storing arrays in variables and passing that to memcpy
Comment 2 Guillermo Antonio Amaral Bastidas 2009-01-31 08:39:30 UTC
(In reply to comment #0)
> Memset inline arrays get passed as parameters and not as pointers.

Woops not memset, it's memcpy. Sorry :-(
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2009-01-31 08:56:50 UTC

*** This bug has been marked as a duplicate of bug 257047 ***