[gentoo-user] gcc error compiling imagemagic

2009-06-24 Thread Harry Putnam
emerging imagemagick ... I hit this gcc error:

[...]
   
-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 \
***  
gcc-config: error: could not run/locate 'i486-pc-linux-gnu-gcc'
***
make[3]: *** [blib/arch/auto/Image/Magick/Magick.so] Error 1
make[3]: Leaving directory 
`/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9/PerlMagick'
make[2]: *** [install-exec-perl] Error 2
make[2]: Leaving directory 
`/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/work/ImageMagick-6.5.2-9'
make: *** [install] Error 2

Between the asterisks ... it appears to be looking for the wrong gcc.

Setting from /etc/make.conf
  ## from an old backup ##
CFLAGS=-O2 -march=i686 -pipe
CHOST=i686-pc-linux-gnu
CXXFLAGS=${CFLAGS}

I did once have 486 in there but followed the gcc guide to get changed
up.

That guide recommended removing the old 486 files... in a couple of
places but I don't recall they were in a bin directory.

I do see some i486 files in /usr/bin:

i486-pc-linux-gnu-c++   i486-pc-linux-gnu-g++
i486-pc-linux-gnu-cpp   i486-pc-linux-gnu-gcc
i486-pc-linux-gnu-gfortran 

but also the i686 are there too:
  i686-pc-linux-gnu-addr2line   i686-pc-linux-gnu-g++ 
  i686-pc-linux-gnu-ar  i686-pc-linux-gnu-g++-4.3.2   
  i686-pc-linux-gnu-as  i686-pc-linux-gnu-gcc 
  i686-pc-linux-gnu-c++ i686-pc-linux-gnu-gcc-4.3.2   
  i686-pc-linux-gnu-c++-4.3.2   i686-pc-linux-gnu-gfortran
  i686-pc-linux-gnu-c++filt i686-pc-linux-gnu-gfortran-4.3.2  
  i686-pc-linux-gnu-cpp i686-pc-linux-gnu-gprof   
  i686-pc-linux-gnu-cpp-4.3.2   i686-pc-linux-gnu-ld
  
  i686-pc-linux-gnu-nm
  i686-pc-linux-gnu-objcopy
  i686-pc-linux-gnu-objdump
  i686-pc-linux-gnu-ranlib
  i686-pc-linux-gnu-readelf
  i686-pc-linux-gnu-size
  i686-pc-linux-gnu-strings
  i686-pc-linux-gnu-strip

Is this the source of the trouble... looks like all the i486 are also there
as i686 too...

And the build environment recorder at:
/var/tmp/portage/media-gfx/imagemagick-6.5.2.9/temp/environment
appears to show nothing but i686..
  
  ARCH=x86
  ARCH_LIB=/usr/lib/perl5/5.8.8/i486-linux
  CBUILD=i686-pc-linux-gnu
  CDEFINE_default=__unix__
  CFLAGS='-O2 -march=i686 -pipe'
  CFLAGS_default=
  CHOST=i686-pc-linux-gnu
  CHOST_default=i686-pc-linux-gnu
  CROSSCOMPILE_OPTS=
  CTARGET_default=i686-pc-linux-gnu
  CVSROOT=/usr/local/cvsroot
  CVS_RSH=ssh
  CXXFLAGS='-O2 -march=i686 -pipe'
  DEFAULT_ABI=default
  DEFINED_PHASES=' compile configure install prepare setup test unpack'
  
Also I tried something may have not been all to bright.

I renamed the i486 files listed above... trying to see it that made a
difference, but imagemagick build process is still looking for an
i486 file:
 
 From most recent emerge attempt:
  
  [...]
  make[3]: i486-pc-linux-gnu-gcc: Command not found
  [...]

Anyone know what is causing this?




Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope

2009-03-08 Thread Arttu V.
On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote:
 mich...@camille OurRPG $ make
 g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp
 enemyparty.o allyparty.o
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
 'std::pair_Tp*, int std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
 /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error:
 'nothrow' was not declared in this scope

Have you tried to help the compiler find nothrow declaration by
explicitly doing:

#include new

(Disclaimer: I'm no c++ guru, just googled for that.)

-- 
Arttu V.



Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope

2009-03-08 Thread Michael Sullivan
On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote:
 On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote:
  mich...@camille OurRPG $ make
  g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp
  enemyparty.o allyparty.o
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
  'std::pair_Tp*, int std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error:
  'nothrow' was not declared in this scope
 
 Have you tried to help the compiler find nothrow declaration by
 explicitly doing:
 
 #include new
 
 (Disclaimer: I'm no c++ guru, just googled for that.)
 
I put it in there, but it didn't help.  Thanks for trying.




Re: [gentoo-user] gcc: error: 'nothrow' was not declared in this scope

2009-03-08 Thread Arttu V.
On 3/8/09, Michael Sullivan msulli1...@gmail.com wrote:
 On Sun, 2009-03-08 at 17:27 +0200, Arttu V. wrote:
 On 3/7/09, Michael Sullivan msulli1...@gmail.com wrote:
  mich...@camille OurRPG $ make
  g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp
  enemyparty.o allyparty.o
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
  'std::pair_Tp*, int std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error:
  'nothrow' was not declared in this scope

 Have you tried to help the compiler find nothrow declaration by
 explicitly doing:

 #include new

 (Disclaimer: I'm no c++ guru, just googled for that.)

 I put it in there, but it didn't help.  Thanks for trying.

Another thing might be to try the -E option for gcc, and check the
results to see if it actually correctly includes everything necessary
when preprocessing. After that, I'm out of ideas, it could be your
code or it could be the compiler.

-- 
Arttu V.



[gentoo-user] gcc: error: 'nothrow' was not declared in this scope

2009-03-07 Thread Michael Sullivan
I've wrote a program, and when I compile it gcc balks:

mich...@camille OurRPG $ make
g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp
enemyparty.o allyparty.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
'std::pair_Tp*, int std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error:
'nothrow' was not declared in this scope
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
'void std::return_temporary_buffer(_Tp*)':
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:123: error:
'nothrow' was not declared in this scope
party.h: At global scope:
party.h:7: warning: 'class Party' has virtual functions but non-virtual
destructor
allyparty.h:9: warning: 'class AllyParty' has virtual functions but
non-virtual destructor
enemyparty.h:8: warning: 'class EnemyParty' has virtual functions but
non-virtual destructor
draw.cpp: In member function 'void Draw::Init()':
draw.cpp:36: warning: missing initializer for member 'SDL_Color::unused'
draw.cpp:37: warning: missing initializer for member 'SDL_Color::unused'
draw.cpp: At global scope:
draw.cpp:84: warning: unused parameter 'state'
make: *** [draw.o] Error 1

Should I report this as a bug, or is there a way I can fix it?  I'm
using:

camille local # emerge -pv gcc 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.2  USE=doc fortran gtk mudflap nls
vanilla (-altivec) -bootstrap -build -d -gcj (-hardened) -ip28 -ip32r10k
-libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++
-objc-gc -test 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB






Re: [gentoo-user] GCC error

2005-11-03 Thread Harald Arnesen
赵光 [EMAIL PROTECTED] writes:

 2005/11/3, Hareesh Nagarajan [EMAIL PROTECTED]:
 Last night, I emerged some ATI drivers, emerged a new kernel (didn't
 compile it though) and emerged eselect.

 Today when I compile a C++ program I get the following error:

 /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory


 look like not install kernel correctly
 did you run
 make modules_install
 to install the headerfile of kernel

The headers in /usr/include has nothing to do with the kernel you have
installed. They are part of sys-kernel/linux-headers.

$ equery belongs /usr/include/asm-generic/errno.h
[ Searching for file(s) /usr/include/asm-generic/errno.h in *... ]
sys-kernel/linux-headers-2.6.11-r2 (/usr/include/asm-generic/errno.h)
-- 
Hilsen Harald.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] GCC error

2005-11-03 Thread Roberto Griso
On 11/3/05, Harald Arnesen [EMAIL PROTECTED] wrote:
 赵光 [EMAIL PROTECTED] writes:

  2005/11/3, Hareesh Nagarajan [EMAIL PROTECTED]:
  Last night, I emerged some ATI drivers, emerged a new kernel (didn't
  compile it though) and emerged eselect.
 
  Today when I compile a C++ program I get the following error:
 
  /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or 
  directory
 
 
  look like not install kernel correctly
  did you run
  make modules_install
  to install the headerfile of kernel

 The headers in /usr/include has nothing to do with the kernel you have
 installed. They are part of sys-kernel/linux-headers.

 $ equery belongs /usr/include/asm-generic/errno.h
 [ Searching for file(s) /usr/include/asm-generic/errno.h in *... ]
 sys-kernel/linux-headers-2.6.11-r2 (/usr/include/asm-generic/errno.h)
 --
 Hilsen Harald.


 --
 gentoo-user@gentoo.org mailing list



You Have to recompile glibc

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] GCC error

2005-11-02 Thread Hareesh Nagarajan
Last night, I emerged some ATI drivers, emerged a new kernel (didn't
compile it though) and emerged eselect.

Today when I compile a C++ program I get the following error:

/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory

Any ideas?

Thanks,

Hareesh

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] GCC error

2005-11-02 Thread 赵光
2005/11/3, Hareesh Nagarajan [EMAIL PROTECTED]:
 Last night, I emerged some ATI drivers, emerged a new kernel (didn't
 compile it though) and emerged eselect.

 Today when I compile a C++ program I get the following error:

 /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory


look like not install kernel correctly
did you run
make modules_install
to install the headerfile of kernel



--
look at my blog
http://poorc.wordpress.com

-- 
gentoo-user@gentoo.org mailing list