Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] gcc error compiling imagemagic
Date: Wed, 24 Jun 2009 17:23:31
Message-Id: 87ab3x8s23.fsf@newsguy.com
1 emerging imagemagick ... I hit this gcc error:
2
3 [...]
4 -L/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9/PerlMagick/../magick/.libs -lMagickCore -L/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9/PerlMagick/../wand/.libs -lMagickWand -lperl -lm \
5 ***
6 gcc-config: error: could not run/locate 'i486-pc-linux-gnu-gcc'
7 ***
8 make[3]: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
9 make[3]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9/PerlMagick'
10 make[2]: *** [install-exec-perl] Error 2
11 make[2]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9'
12 make[1]: *** [install-am] Error 2
13 make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9'
14 make: *** [install] Error 2
15
16 Between the asterisks ... it appears to be looking for the wrong gcc.
17
18 Setting from /etc/make.conf
19 ## from an old backup ##
20 CFLAGS="-O2 -march=i686 -pipe"
21 CHOST="i686-pc-linux-gnu"
22 CXXFLAGS="${CFLAGS}"
23
24 I did once have 486 in there but followed the gcc guide to get changed
25 up.
26
27 That guide recommended removing the old 486 files... in a couple of
28 places but I don't recall they were in a bin directory.
29
30 I do see some i486 files in /usr/bin:
31
32 i486-pc-linux-gnu-c++ i486-pc-linux-gnu-g++
33 i486-pc-linux-gnu-cpp i486-pc-linux-gnu-gcc
34 i486-pc-linux-gnu-gfortran
35
36 but also the i686 are there too:
37 i686-pc-linux-gnu-addr2line i686-pc-linux-gnu-g++
38 i686-pc-linux-gnu-ar i686-pc-linux-gnu-g++-4.3.2
39 i686-pc-linux-gnu-as i686-pc-linux-gnu-gcc
40 i686-pc-linux-gnu-c++ i686-pc-linux-gnu-gcc-4.3.2
41 i686-pc-linux-gnu-c++-4.3.2 i686-pc-linux-gnu-gfortran
42 i686-pc-linux-gnu-c++filt i686-pc-linux-gnu-gfortran-4.3.2
43 i686-pc-linux-gnu-cpp i686-pc-linux-gnu-gprof
44 i686-pc-linux-gnu-cpp-4.3.2 i686-pc-linux-gnu-ld
45
46 i686-pc-linux-gnu-nm
47 i686-pc-linux-gnu-objcopy
48 i686-pc-linux-gnu-objdump
49 i686-pc-linux-gnu-ranlib
50 i686-pc-linux-gnu-readelf
51 i686-pc-linux-gnu-size
52 i686-pc-linux-gnu-strings
53 i686-pc-linux-gnu-strip
54
55 Is this the source of the trouble... looks like all the i486 are also there
56 as i686 too...
57
58 And the build environment recorder at:
59 /var/tmp/portage/media-gfx/imagemagick-6.5.2.9/temp/environment
60 appears to show nothing but i686..
61
62 ARCH=x86
63 ARCH_LIB=/usr/lib/perl5/5.8.8/i486-linux
64 CBUILD=i686-pc-linux-gnu
65 CDEFINE_default=__unix__
66 CFLAGS='-O2 -march=i686 -pipe'
67 CFLAGS_default=
68 CHOST=i686-pc-linux-gnu
69 CHOST_default=i686-pc-linux-gnu
70 CROSSCOMPILE_OPTS=
71 CTARGET_default=i686-pc-linux-gnu
72 CVSROOT=/usr/local/cvsroot
73 CVS_RSH=ssh
74 CXXFLAGS='-O2 -march=i686 -pipe'
75 DEFAULT_ABI=default
76 DEFINED_PHASES=' compile configure install prepare setup test unpack'
77
78 Also I tried something may have not been all to bright.
79
80 I renamed the i486 files listed above... trying to see it that made a
81 difference, but imagemagick build process is still looking for an
82 i486 file:
83
84 From most recent emerge attempt:
85
86 [...]
87 make[3]: i486-pc-linux-gnu-gcc: Command not found
88 [...]
89
90 Anyone know what is causing this?

Replies

Subject Author
[gentoo-user] Re: gcc error compiling imagemagic Harry Putnam <reader@×××××××.com>