This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Building a 32bit version X86_64 multiprocessor Opteron platform.
- From: Glenn Meyer <grmeyer at mail dot arc dot nasa dot gov>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: insight at sources dot redhat dot com
- Date: Wed, 21 Mar 2007 18:57:08 -0700
- Subject: Re: Building a 32bit version X86_64 multiprocessor Opteron platform.
- References: <4601DA13.6070805@mail.arc.nasa.gov> <4601EB9D.5050506@redhat.com>
Keith,
That certainly produced a clean build, but I wound up with these oddly
named files, still 64-bit:
i386-pc-linux-gnu-gdb: ELF 64-bit LSB executable, AMD x86-64,
version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared
libs), not stripped
i386-pc-linux-gnu-gdbtui: ELF 64-bit LSB executable, AMD x86-64,
version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared
libs), not stripped
i386-pc-linux-gnu-insight: ELF 64-bit LSB executable, AMD x86-64,
version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared
libs), not stripped
tclsh8.4: ELF 64-bit LSB executable, AMD x86-64,
version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared
libs), not stripped
wish8.4: ELF 64-bit LSB executable, AMD x86-64,
version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared
libs), not stripped
The reason for the 32-bit debugging on a 64-bit machine is that I have
to deal with a large, complex API (SGI's OpenGL Performer) that only
runs on my chosen platform
in 32-bit form, and is proprietary. Someday I'll either SGI will release
the source code for this package, or I'll get the time to port my own
large legacy app to OpenSceneGraph, but that's not today.
Glenn
Keith Seitz wrote:
Glenn Meyer wrote:
I'm getting some nonsensical results when I run insight on the 32-bit
executable I need to debug on my HP xw9300 system. The HP has two
64-bit dual-core Opterons.
I'm assuming that the problem is that I'm running a 64-bit debugger
on 32-bit code, and need to run a 32-bit debugger instead. I've tried
using "./configure i386," but when I do a make on the result, I the
following. "i386", "i386linux" and "elf32-i386" don't work.
Hmm. Wow: 32bit vs 64bit. I don't know much about this, but if you
want to configure the sources for a specific target, you must do two
things:
1) use the "--target=" configure option
2) use a correct target triple. For x86 linux, that would be
"i386-pc-linux-gnu"
Try that and let me know what happens.
Keith