Rod Evans wrote:

> 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
>

Doesn't look like that, because he seems to intend a 64bit build:

Frank Mash wrote:
> I am using 64-bit so it will be great to see some sysbench binaries for that.


--
Martin
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to