1 |
I've started a new thread because the old one had drifted. |
2 |
|
3 |
While trying Duncan's CFLAGS I found I couldn't emerge imagemagick because |
4 |
it didn't recognise -combine or -ftree-pre. So I removed those |
5 |
from /etc/make.conf and reran emerge imagemagick. Weirdness. Here are some |
6 |
extracts from the compilation log: |
7 |
|
8 |
# cat /var/log/portage/media-gfx:imagemagick-6.2.9.5-r1:20060924-120227.log |
9 |
[...] |
10 |
>>> Compiling source |
11 |
in /var/tmp/portage/imagemagick-6.2.9.5-r1/work/ImageMagick-6.2.9 ... |
12 |
* econf: updating ImageMagick-6.2.9/config.guess |
13 |
with /usr/share/gnuconfig/config.guess |
14 |
* econf: updating ImageMagick-6.2.9/config.sub |
15 |
with /usr/share/gnuconfig/config.sub |
16 |
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir |
17 |
=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-threads --with-modules --with-perl --with-gs-font- |
18 |
dir=/usr/share/fonts/default/ghostscript --with-windows-font-dir=/usr/share/fonts/corefonts --with-magick-plus-p |
19 |
lus --with-bzlib --without-fpx --without-gslib --without-gvc --without-jbig --with-jpeg --with-jp2 --with-lcms - |
20 |
-with-mpeg2 --with-png --with-tiff --with-ttf --with-wmf --with-xml --with-zlib --with-x --libdir=/usr/lib64 --b |
21 |
uild=x86_64-pc-linux-gnu |
22 |
configuring ImageMagick 6.2.9 |
23 |
[...] |
24 |
ImageMagick is configured as follows. Please verify that this configuration |
25 |
matches your expectations. |
26 |
[...] |
27 |
Options used to compile and link: |
28 |
PREFIX = /usr |
29 |
EXEC-PREFIX = /usr |
30 |
VERSION = 6.2.9 |
31 |
CC = x86_64-pc-linux-gnu-gcc |
32 |
CFLAGS |
33 |
= -march=k8 -Os -pipe -frename-registers -fweb -freorder-blocks -freorder-blocks-and-partition -fu |
34 |
nit-at-a-time -fgcse-sm -fgcse-las -fgcse-after-reload -fmerge-all-constants -Wall -pthread |
35 |
CPPFLAGS = -I/usr/include |
36 |
PCFLAGS = |
37 |
DEFS = -DHAVE_CONFIG_H |
38 |
LDFLAGS = -L/usr/lib64 -L/usr/lib64 -lfreetype -lz -L/usr/lib |
39 |
LIBS |
40 |
= -lMagick -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lp |
41 |
thread -lm -lpthread |
42 |
CXX = x86_64-pc-linux-gnu-g++ |
43 |
CXXFLAGS |
44 |
= -march=k8 -Os -pipe -frename-registers -fweb -freorder-blocks -funit-at-a-time -fgcse-sm -fgcse- |
45 |
las -fgcse-after-reload -fmerge-all-constants -pthread |
46 |
[...] |
47 |
/bin/install -c 'wand/Wand-config' '/var/tmp/portage/imagemagick-6.2.9.5-r1/image//usr/bin/Wand-config' |
48 |
cd PerlMagick && /usr/bin/perl Makefile.PL |
49 |
Checking if your kit is complete... |
50 |
Looks good |
51 |
Writing Makefile for Image::Magick |
52 |
( cd PerlMagick && make CC='x86_64-pc-linux-gnu-gcc' && \ |
53 |
make CC='x86_64-pc-linux-gnu-gcc' install && \ |
54 |
make clean && rm -f Makefile.old ) |
55 |
make[2]: Entering directory |
56 |
`/var/tmp/portage/imagemagick-6.2.9.5-r1/work/ImageMagick-6.2.9/PerlMagick' |
57 |
cp Magick.pm blib/lib/Image/Magick.pm |
58 |
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick) |
59 |
/usr/bin/perl5.8.8 /usr/lib64/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib64/perl5/5.8.8/ExtUtils/typemap |
60 |
Mag |
61 |
ick.xs > Magick.xsc && mv Magick.xsc Magick.c |
62 |
x86_64-pc-linux-gnu-gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURC |
63 |
E -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSE |
64 |
T_BITS=64 -march=k8 -Os -pipe -frename-registers -fweb -freorder-blocks -freorder-blocks-and-partition -funit-at |
65 |
-a-time -fgcse-sm -fgcse-las -fgcse-after-reload -fmerge-all-constants -Wall -pthread -march=k8 -O2 -pipe -frena |
66 |
me-registers -fweb -freorder-blocks -freorder-blocks-and-partition -combine -funit-at-a-time -ftree-pre -fgcse-s |
67 |
m -fgcse-las -fgcse-after-reload -fmerge-all-constants -DVERSION=\"6.2.9\" -DXS_VERSION=\"6.2.9\" -fPIC "-I/us |
68 |
r/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DHAVE_CONFIG_H |
69 |
Magick.c |
70 |
x86_64-pc-linux-gnu-gcc: unrecognized option `-combine' |
71 |
cc1: error: unrecognized command line option "-ftree-pre" |
72 |
make[2]: *** [Magick.o] Error 1 |
73 |
make[2]: Leaving directory |
74 |
`/var/tmp/portage/imagemagick-6.2.9.5-r1/work/ImageMagick-6.2.9/PerlMagick' |
75 |
make[1]: *** [install-exec-perl] Error 2 |
76 |
make[1]: Leaving directory |
77 |
`/var/tmp/portage/imagemagick-6.2.9.5-r1/work/ImageMagick-6.2.9' |
78 |
make: *** [install-am] Error 2 |
79 |
|
80 |
!!! ERROR: media-gfx/imagemagick-6.2.9.5-r1 failed. |
81 |
Call stack: |
82 |
ebuild.sh, line 1546: Called dyn_install |
83 |
ebuild.sh, line 1020: Called src_install |
84 |
imagemagick-6.2.9.5-r1.ebuild, line 90: Called die |
85 |
|
86 |
So I removed -rf /var/tmp/portage/imagemagick-6.2.9.5-r1 and got exactly |
87 |
the same result! |
88 |
|
89 |
Can anyone see what I'm doing wrong? Perhaps another C flag is pulling those |
90 |
two in. |
91 |
|
92 |
-- |
93 |
Rgds |
94 |
Peter |
95 |
-- |
96 |
gentoo-amd64@g.o mailing list |