On Thu, Nov 14, 2002 at 07:37:52AM +1100, Jan Schmidt wrote: > <quote who="SH"> > > > Thanks for the advice. I added "-mcpu=v8" in the CFLAGS during compilation > > but the executables generated are still limited to ultra sparc machines or > > higher. The original binary format is of form "ELF 32-bit MSB executable > > SPARC Version 1, dynamically linked, stripped" while the new one is "ELF > > 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, UltraSPARC1 > > Extensions Required, dynamically linked, not stripped". > > > > That should definitely do it.... did the "-mcpu=v8" option actually get > picked up and used in the gcc commands which ran?
Sounds like the original binary was a little MORE portable in that in only needed sparcv1. If -mcpu=v8 did take, it's a little curious that 'file' output says it needs v8+; v8+ is (I think) not completely compatible with v8. FWIW, I'd upgrade to gcc3.2 (I think you said you're using 3.1.1) 3.2 is the latest and greatest and I believe quite a number of bus existed in all 3.x version before 3.2. Also, what was the exact error you were getting? Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
