On Thu, 2010-05-06 at 00:36 +0100, Dave Korn wrote: > On 05/05/2010 18:18, Steve Ellcey wrote: > > > During the build libiberty is built in 64 bit mode > > But *which* libiberty? Host, build, or target?
That is a good question. I am building in obj and I have: obj/libiberty/libiberty.a - ELF-32 obj/build-ia64-hp-hpux11.31/libiberty/libiberty.a - ELF-64 It looks like I am using the correct one, the one from build-ia64-hp-hpux11.31, and that is 64 bit ELF which I would expect since I set CFLAGS and CXXFLAGS to -mlp64. I think the problem is that the rest of the build objects are not 64 bits. $ file obj/gcc/build/*.o obj/gcc/build/errors.o: ELF-32 relocatable object file - IA64 obj/gcc/build/genmodes.o: ELF-32 relocatable object file - IA64 If I am building with CFLAGS and CXXFLAGS set to generate 64 bit code, why are these objects 32 bits? HJ seems to have the way to make it work, set CC to 'gcc -mlp64' instead of setting CC to 'gcc' and CFLAGS to '-mlp64' but that seems a bit counter-intuitive to the meaning of the flags. Steve Ellcey s...@cup.hp.com