Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329719 - sys-devel/prelink-20100106 uses gcc4ism in forced CFLAGS
Summary: sys-devel/prelink-20100106 uses gcc4ism in forced CFLAGS
Status: RESOLVED DUPLICATE of bug 325269
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-24 16:42 UTC by Arthur Hagen
Modified: 2010-07-24 16:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Hagen 2010-07-24 16:42:41 UTC
sys-devel/prelink-20100106 fails to compile with gcc-3.

source='checksum.c' object='checksum.o' libtool=no \
        depfile='.deps/checksum.Po' tmpdepfile='.deps/checksum.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        i686-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -Wno-pointer-sign -I. -I. -I.. -I../gelfx -DSBINDIR='"/usr/sbin"'  -Wall -Wno-pointer-sign -Os -march=pentium3 -momit-leaf-frame-pointer -c `test -f 'checksum.c' || echo './'`checksum.c
cc1: error: unrecognized command line option "-Wno-pointer-sign"
cc1: error: unrecognized command line option "-Wno-pointer-sign"
cc1: error: unrecognized command line option "-Wno-pointer-sign"
cc1: error: unrecognized command line option "-Wno-pointer-sign"
make[2]: *** [checksum.o] Error 1

The problem is that -Wno-pointer-sign is only legal in gcc-4.

This was added upstream - from the Changelog:

2009-06-15  Jakub Jelinek  <jakub@redhat.com>
[...]
        * src/Makefile.am (DEFS, AM_CFLAGS): Add -Wno-pointer-sign.

However, gentoo still supports gcc-3, so should probably either patch it out for gcc < 4, or enforce gcc-4 for prelink.


=== relevant system info:
# gcc-config -c
i686-pc-linux-gnu-3.4.6
# cat /etc/make.conf
CHOST="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -momit-leaf-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l1.2"
USE="X acl acpi apache2 caps fam flac gif gmp icc idn jpeg libnotify logrotate lzo mbox mmap mmx motif ncurses nis nptl offensive pch pcre pic png posix spell sse ssl threads tiff truetype xattr xcb xulrunner zlib -apache2 -apm -arts -audio -bzip2 -emboss -esd -gpm -gstreamer -joystick -kde -ldap -maildir -mailwrapper -mikmod -mysql -oss -qt3 -quicktime -session -spl -tcltk -unicode -video -vorbis -xv"
LINGUAS="en_GB en_US en"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon vesa"
ALSA_CARDS=""
LCD_DEVICES=""
FEATURES="ccache fixpackages noinfo userfetch userpriv usersandbox usersync"
#FEATURES="ccache distcc fixpackages noinfo userfetch userpriv usersandbox"
CCACHE_SIZE="4G"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-8"
PORTAGE_NICENESS=5
PORTAGE_TMPFS="/dev/shm"
http_proxy="localhost:3128"
ftp_proxy="localhost:3128"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net"
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-07-24 16:54:17 UTC
wont be fixed, time to upgrade to gcc-4.3/4.4

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