[CentOS] Generate 32bit programs on x86_64 architecture?

Michael Ubell ubell at sleepycat.com
Wed Nov 16 19:54:06 UTC 2005


I'm trying to run purify on CentOS on an Intel Pentium 4/630
processor.  Purify does not like the 64bit code.  Is there
some way to compile and run programs so that they are
only using the 32 bit model?

I tried gcc -m32 but then the system libraries come
up missing.

Purify engine: Error: Couldn't open the file crt1.o

Purify engine: Error: Couldn't open the file crti.o

Purify engine: Error: Couldn't resolve library directive: -ltcl8.4,
(couldn't find library libtcl8.4.so or libtcl8.4.a).

Purify engine: Error: Couldn't resolve library directive: -ldl,
(couldn't find library libdl.so or libdl.a).

Purify engine: Error: Couldn't resolve library directive: -lieee,
(couldn't find library libieee.so or libieee.a).

Purify engine: Error: Couldn't resolve library directive: -lm,
(couldn't find library libm.so or libm.a).

Purify engine: Error: Couldn't resolve library directive: -lc,
(couldn't find library libc.so or libc.a).

Purify engine: Error: Couldn't open the file crtn.o

Purify engine: Error: Couldn't resolve library directive: -ldl,
(couldn't find library libdl.so or libdl.a).




More information about the CentOS mailing list