Gentoo Archives: gentoo-amd64

From: David Fellows <fellows@×××.ca>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] GCC 4 CFLAGS
Date: Sun, 24 Sep 2006 14:50:52
Message-Id: 200609241448.k8OEmxUO000881@mailserv.unb.ca
In Reply to: [gentoo-amd64] GCC 4 CFLAGS by Peter Humphrey
1 Peter Humphrey wrote:
2 > I've started a new thread because the old one had drifted.
3 >
4 > While trying Duncan's CFLAGS I found I couldn't emerge imagemagick because
5 > it didn't recognise -combine or -ftree-pre. So I removed those
6 > from /etc/make.conf and reran emerge imagemagick. Weirdness. Here are some
7 > extracts from the compilation log:
8 snip...
9 > x86_64-pc-linux-gnu-gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/includ
10 > e/libxml2 -D_REENTRANT -D_GNU_SOURC
11 > E -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statemen
12 > t -D_LARGEFILE_SOURCE -D_FILE_OFFSE
13 > T_BITS=64 -march=k8 -Os -pipe -frename-registers -fweb -freorder-blocks -freo
14 > rder-blocks-and-partition -funit-at
15 > -a-time -fgcse-sm -fgcse-las -fgcse-after-reload -fmerge-all-constants -Wall
16 > -pthread -march=k8 -O2 -pipe -frena
17 > me-registers -fweb -freorder-blocks -freorder-blocks-and-partition -combine -
18 > funit-at-a-time -ftree-pre -fgcse-s
19 > m -fgcse-las -fgcse-after-reload -fmerge-all-constants -DVERSION=\"6.2.9\"
20 > -DXS_VERSION=\"6.2.9\" -fPIC "-I/us
21 > r/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DHAVE_CONFIG_H
22 > Magick.c
23 > x86_64-pc-linux-gnu-gcc: unrecognized option `-combine'
24 > cc1: error: unrecognized command line option "-ftree-pre"
25 snip...
26 >
27 > So I removed -rf /var/tmp/portage/imagemagick-6.2.9.5-r1 and got exactly
28 > the same result!
29 >
30 > Can anyone see what I'm doing wrong? Perhaps another C flag is pulling those
31 > two in.
32
33 Well -combine is a gcc 4.1.1 option, it is not a gcc 3.x option.
34 I would guess you are not compileing using gcc 4.1.1. Why you aren't is
35 another question....
36
37 Use gcc-select
38 to see what is set for your default gcc and reset it if need be.
39
40 Dave F
41
42 --
43 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] GCC 4 CFLAGS Peter Humphrey <prh@××××××××××.uk>