Martin Bochnig wrote:
you cannot mix -xarch=v9 and -xarch=v8 objects. Somethings gets compiled 32 bits, something else 64bits, then the /usr/ccs/bin/ld linker cannot link different ELFCLASS objects. It might be a mistake in a makefile. Looks very good otherwise. Try to either make everything 32bits, or everything sparcv9
>> /opt/SUNWspro/bin/cc ... -o sysbench sysbench.o ... -xarch=v9 ... >> ld: fatal: file sysbench.o: wrong ELF class: ELFCLASS32 Perhaps you've build all your objects as 32-bit, but have mistakenly passed -xarch=v9 to the final link-edit. The compiler driver will provide its own startup files (crt's), which will be 64-bit. Thus when ld() comes across your first 32-bit object, it bails. http://blogs.sun.com/rie/entry/wrong_elf_class_requires_consistent -- Rod. _______________________________________________ opensolaris-discuss mailing list [email protected]
