Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65127 - gcc flag -fno-common breaks most c++ builds
Summary: gcc flag -fno-common breaks most c++ builds
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 13:04 UTC by Marcin Wojtczuk
Modified: 2004-09-23 13:06 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 Marcin Wojtczuk 2004-09-23 13:04:58 UTC
Using -fno-common flag stops many, many packages from building. For example when wxGTK is build with this, no application that uses this widget will build.

Reproducible: Always
Steps to Reproduce:
1. add -fno-common to CFLAGS/CXXFLAGS
Actual Results:  
It started from aMule build failing (linking to wxGTK wasn't possible). When I
read man gcc section about this flag I screamed. I recommended it to many people :(

Expected Results:  
Portage must reject this flag. Silently strip it or display huge red message.
Please protect users from their stupidity.

Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3_pre20040207-r0,
2.4.25 i686)
=================================================================
System uname: 2.4.25 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.6
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.19
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS=" -march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3                        .1/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /                       
var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=" -march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
ftp://ftp.fu-berlin.                        de/unix/linux/mirrors/gentoo/
http://sunsite.rediris.es/mirror/gentoo/ ftp://ftp.mirror.ac                   
    .uk/sites/www.ibiblio.org/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsit                       
e.dk/mirrors/gentoo/ http://filepile.tiscali.de/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp/portage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.pl/gentoo-portage"
USE="3dnow alsa apm avi berkdb bitmap-fonts bonobo cdr crypt dga foomaticdb gd
gdbm ggi gi                        f guile imlib java jpeg justify libg++ libwww
mad mbox mikmod mmx mozilla mpeg ncurses ogg                        vorbis
opengl oss pdflib png python quicktime readline sdl slang spell sse ssl tcltk
tcpd                         tetex truetype x86 xmms xprint xv zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-23 13:06:37 UTC
no, users need to protect _themselves_ from this.  We're not about to edit thousands of ebuilds scripts to filter this flag, sorry.