LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 11-29-2018, 05:01 PM   #1
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,288

Rep: Reputation: 65
glibc above 2.27 fails to configure.


i'm getting this same error in 2 different gentoo distributions on my system. one is 32 bit and the other is 64.
this is the relevant section from config.log
configure:6161: checking for redirection of built-in functions
configure:6174: i686-pc-linux-gnu-gcc -Wall -fno-builtin -D_LARGEFILE_SOURCE -D_LARGEFILE_SOURCE64 -DLARGEOFFSET_BITS=64 -O2 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -fuse-ld=bfd -O3 -S conftest.c -o - | grep -F my_strstr > /dev/null
configure:6177: $? = 1
configure:6186: result: no
configure:6189: error: support for the symbol redirection needed

the best i can tell is it doesn't like something about my gcc.

my output of #gcc -v is

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/7.3.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/7.3.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/7.3.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/7.3.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/7.3.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/7.3.0/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/7.3.0/include/g++-v7 --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/7.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.3.0-r3 p1.4' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-arch=i686 --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)

i can't find anything referencing that error by googling.
 
Old 02-01-2019, 10:00 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,288

Original Poster
Rep: Reputation: 65
this is the section that fails.

Code:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in func$
$as_echo_n "checking for redirection of built-in functions... " >&6; }
if ${libc_cv_gcc_builtin_redirection+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat > conftest.c <<\EOF
extern char *strstr (const char *, const char *) __asm ("my_strstr");
char *foo (const char *a, const char *b)
{
  return __builtin_strstr (a, b);
}
EOF
if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
  { { eval echo ""\$as_me":${as_lineno-$LINENO}: "$ac_try""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; };
then
  libc_cv_gcc_builtin_redirection=yes
else
  libc_cv_gcc_builtin_redirection=no
i can't figure out what i need to fix.

edit. i am able to configure and build the glibc using the configure script from the build log. i was going to try to find which option caused the problem, but they all seem to be fine. i'm thinking it must be some variable set by gentoo just before the configure, but i don't know how to check a list of those. understanding the ebuild is way beyond me.

Last edited by whansard; 02-03-2019 at 03:18 AM. Reason: new stuff.
 
Old 06-26-2019, 08:41 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,288

Original Poster
Rep: Reputation: 65
i've finally figured this out. i have for years had the cflag -fno-builtin in my profile. i removed all the cflags and cxxflags, and glibc built. it took me another 45 minutes to figure out which one it was. the thing is, i can build glibc at the command line with configure, and the -fno-builtin flag doesn't cause any trouble. with all the cflags and cxxflags removed from make.conf, glibc still would give the same configure error. anyway, something changed and now -fno-builtin keeps glibc from configuring with with the error message
Code:
configure:6161: checking for redirection of built-in functions
configure:6174: i686-pc-linux-gnu-gcc -Wall -fno-builtin -D_LARGEFILE_SOURCE -D_LARGEFILE_SOURCE64 -DLARGEOFFSET_BITS=64 -O2 -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -fuse-ld=bfd -O3 -S conftest.c -o - | grep -F my_strstr > /dev/null
configure:6177: $? = 1
configure:6186: result: no
configure:6189: error: support for the symbol redirection needed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiz Standalone: Some applications above "above"? Vinter Linux - Desktop 0 04-05-2014 04:44 PM
LAMP installation with apache(2.2 or above),php(5.1.4 or above)),mysql(4 or above) mobquest Linux - Newbie 2 08-31-2009 12:01 AM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
glibc configure: fails sanity check Mr. Eek Linux From Scratch 4 05-19-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration