This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
object size confusion
- From: kevin diggs <diggskevin38 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 17 Jun 2010 13:50:32 -0500
- Subject: object size confusion
Hi,
I am confused about object sizes (32-bit vs 64-bit).
I am trying to build gcc 4.1.2 from a source RPM (Yellowdog Linux 6.1
I think) on a 64-bit powerpc machine (G5). It is not working. I think
the source rpm only builds correctly on a 32-bit machine. It keeps
trying to find stuff in .../32/... that is not there. Also, before I
started hacking on the spec file it was building the compiler as a
64-bit program. Now it can't seem to find libsupc++.a. That is not
correct, right? xgcc also defaulted to building things in 64-bit (with
no -m64 option). Generally that is wrong too?
? i) Is the compiler ever built as a 64-bit program itself?
?ii) "Normally" the compiler should default to producing 32-bit
objects, right (irregardless of what size machine the compiler itself
was built on)?
iii) What is the difference between directories ".../64/..." and
".../lib64/..."? Is it a convention? Should I see one or the other?
Thanks!