From: Michael Selig Date: 2008-12-24T11:37:16+09:00 Subject: [ruby-core:20850] Re: Problems compiling R20933 on Ubuntu 8.10 Linux FYI I managed to compile sprintf.c by commenting out the following 4 lines: #undef vsnprintf #undef snprintf #undef HAVE_VSNPRINTF #undef HAVE_SNPRINTF Mike On Tue, 23 Dec 2008 16:58:50 +1100, Michael Selig wrote: > Hi, > > I seem to be having 2 issues compiling R20933 on Ubuntu 8.10 using GCC > 4.3.2. > > gcc -v > => > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Ubuntu > 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr > --enable-shared --with-system-zlib --libexecdir=/usr/lib > --without-included-gettext --enable-threads=posix --enable-nls > --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 > --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc > --enable-mpfr --enable-targets=all --enable-checking=release > --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu > Thread model: posix > gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) > > 1) sprintf.c > cc -O2 -g -Wall -Wno-parentheses -I. -I.ext/include/i686-linux > -I./include -I. -DRUBY_EXPORT -o sprintf.o -c sprintf.c > sprintf.c: In function ���rb_str_format���: > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:803: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:804: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:812: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:813: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:983: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:1055: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:1060: sorry, unimplemented: called from here > missing/vsnprintf.c:1185: sorry, unimplemented: inlining failed in call > to > ���snprintf���: redefined extern inline functions are not considered for > inlining > sprintf.c:1021: sorry, unimplemented: called from here > make: *** [sprintf.o] Error 1 > > 2) Also parse.c now seems to take an inordinately large amount of time > to compile - nearly 10 minutes, compared to a few seconds for all the > others. I know it's large, but I am sure it was quicker than this > previously. > > Any suggestions? > > Cheers > Mike.