I'm using a pentium optimized (stable x86) gentoo system (CFLAGS: -march=pentium4 -O3 -pipe). I tried valgrind 1.0.4 and valgrind 1.9.3 but they always fail. Reproducible: Always Steps to Reproduce: 1. Install valgrind on a pentium4 compiled system 2. do "valgrind /usr/bin/ls" Actual Results: [matze@taylor] ~ > valgrind /usr/bin/ls ==28516== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==28516== Copyright (C) 2002, and GNU GPL'd, by Julian Seward. ==28516== Using valgrind-1.9.3, a program instrumentation system for x86-linux. ==28516== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward. ==28516== Estimated CPU clock rate is 2704 MHz ==28516== For more details, rerun with: -v ==28516== ==28516== ==28516== Valgrind detected that your program requires ==28516== the following unimplemented functionality: ==28516== x86 segment override (SEG=CS) prefix ==28516== This may be because the functionality is hard to implement, ==28516== or because no reasonable program would behave this way, ==28516== or because nobody has yet needed it. In any case, let me know ==28516== (jseward@acm.org) and/or try to work around the problem, if you can. ==28516== ==28516== Valgrind has to exit now. Sorry. Bye! ==28516== sched status: Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==28516== at 0x4000A66D: call_init (in /lib/ld-2.3.1.so) ==28516== by 0x4000A862: _dl_init_internal (in /lib/ld-2.3.1.so) ==28516== by 0x40000ABC: (within /lib/ld-2.3.1.so) Expected Results: starting and running ls without any error USE="X gtk gnome gnome2 gtk2 cups java mysql -postgres -gpm xmms truetype -3dnow sse sse2 mmx -svga dvd esd acpi dvd dga -directfb oggvorbis readline sdl xv pam" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentiumpro -O2 -pipe" glibc version 2.3.1-r2
what version of gcc ? some versions are known to cause issues with 'arch=pentium4' with relation to glibc and other packages
gcc 3.2.1-r6
Right, check the latest make.conf. Known issue with gcc developers, you will just have to learn to live with -march=pentium3.
This needs to be fixed gcc side :(
Please be advised that the ebuild in bug 24640 resolves this issue. I have these flags: -O2 -march=pentium3 -mcpu=pentium4 -mfpmath=sse -finline-functions -fomit-frame-pointer -pipe, and I'm using gcc-3.2.3-r1 and glibc-2.3.2-r1. With the valgrind-1.9.6 version I get the reported error. With the valgrind-20030716 version everything seems to run correctly.
*** This bug has been marked as a duplicate of 24640 ***