pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gnu/stubs-32.h: No such file or directory



On Fri, Dec 23, 2011 at 01:56:56PM +0100, Dennis van Dok wrote:
> 
> I'm trying to build math/blitz++ on CentOS 6, x86_64. 
> It builds gcc3-c as a dependency (which is strange on its own). 
> This fails because it decides to try a multilib build:
> 
> /var/tmp/pkgsrc/lang/gcc3-c/work/gcc-3.3.6/gcc/xgcc 
> -B/var/tmp/pkgsrc/lang/gcc3-c/work/gcc-3.3.6/gcc/ 
> -B/var/tmp/pkg/gcc3/x86_64-unknown-linux/bin/ 
> -B/var/tmp/pkg/gcc3/x86_64-unknown-linux/lib/ -isystem 
> /var/tmp/pkg/gcc3/x86_64-unknown-linux/include -O2  -DIN_GCC    -W -Wall 
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  
> -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. 
> -I. -I./. -I./config -I./../include  -m32 -DL_muldi3 -c ./libgcc2.c -o 
> libgcc/32/_muldi3.o
> In file included from /usr/include/features.h:385,
>                  from /usr/include/signal.h:29,
>                  from config/i386/linux64.h:100,
>                  from tconfig.h:25,
>                  from libgcc2.c:36:
> /usr/include/gnu/stubs.h:7:27: gnu/stubs-32.h: No such file or directory
> 
> Any ideas?

I just tried on CentosOS 6.2 (32 bit) and it didn't try to build gcc3.  I
wonder if you have g++ installed?

I had issues with 64 bit libraries and pkgsrc on another system and think I
had more success adding CFLAGS=-m32.

Anyway I get a different error.

[...snip...]

n file included from ../blitz/array/funcs.h:29,
                 from ../blitz/array/newet.h:29,
                 from ../blitz/array/et.h:27,
                 from ../blitz/array-impl.h:2487,
                 from ../blitz/array.h:32,
                 from ../src/globals.cpp:13:
../blitz/funcs.h: In static member function 'static blitz::Fn_abs::T_numtype 
blitz::Fn_abs<int>::apply(blitz::Fn_abs::T_numtype1)':
../blitz/funcs.h:452: error: call of overloaded 
'abs(blitz::Fn_abs::T_numtype1&)' is ambiguous
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cmath:94: 
note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cmath:98: 
note:                 float std::abs(float)
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cmath:102: 
note:                 long double std::abs(long double)
../blitz/funcs.h: In static member function 'static blitz::Fn_abs::T_numtype 
blitz::Fn_abs<long int>::apply(blitz::Fn_abs::T_numtype1)':
../blitz/funcs.h:473: error: 'labs' is not a member of 'std'
make[1]: *** [globals.lo] Error 1

[..snip...]

g++ (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)

A quick google finds a similar error with gcc 4.4.1 upstream which is supposed
to be fixed in CVS (2010).

http://sourceforge.net/tracker/index.php?func=detail&aid=3049591&group_id=63961&atid=505791

This describes 0.9 as being very out of date whereas pkgsrc has version 0.8!

Maybe it would compile with gcc-c++ version 3?

I've not tried it but maybe try

yum install compat-gcc-34-c++.i686

Cheers Steve


Home | Main Index | Thread Index | Old Index