On 10/04/2012 06:12 PM, Stephane Aubry wrote:
> Hi, I am on redhat 5.8:
>
> uname -a
> Linux torstephane-lx.algorithmics.com 2.6.18-308.el5 #1 SMP Fri Jan 27
> 17:17:51
> EST 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> After running configure, I get the following output
>
> Maximum build arch: amd64
> Primary build arch: amd64
> Secondary build arch: x86
> Build OS: linux
> Primary build target: AMD64_LINUX
> Secondary build target: X86_LINUX
> Platform variant: vanilla
> Primary -DVGPV string: -DVGPV_amd64_linux_vanilla=1
> Default supp files: exp-sgcheck.supp xfree-3.supp xfree-4.supp
> glibc-2.X-drd.supp glibc-2.34567-NPTL-helgrind.supp glibc-2.5.supp
>
> which seems surprising, but completely normal as per another post.
What is surprising about it? Namely, what did you expect, and what
is the difference with what you actually get?
To me the output looks like a sane 64-bit environment,
also with support for 32-bit executables.
>
> Then make fails as follows
>
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_amd64=1
> -DVGO_linux=1 -DVGP_amd64_linux=1 -DVGPV_amd64_linux_vanilla=1 -I../coregrind
> -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -DVG_PLATFORM="\"amd64-linux\"" -g
> -Wno-long-long -MT libcoregrind_amd64_linux_a-m_cpuid.o -MD -MP -MF
> .deps/libcoregrind_amd64_linux_a-m_cpuid.Tpo -c -o
> libcoregrind_amd64_linux_a-m_cpuid.o `test -f 'm_cpuid.S' || echo
> './'`m_cpuid.S
> m_cpuid.S: Assembler messages:
> m_cpuid.S:64: Error: bad register name `%rax'
Are you sure that "gcc" is "gcc -m64"? What does "$ which gcc" say?
What kind of executable does "gcc" produce? Try this:
$ gcc -o hello hello.c
$ file hello
Those error messages (quoted above) look like the output
which "gcc -m32" would give, namely compiling for 32-bit i686
despite all the flags for 64-bit (namely "-DVGA_amd64=1" etc.)
--
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users