Dave Rivers wrote: > Gcc can be configured as a cross-compiler, but the gcc compiler > makes several assumptions that may or may-not be valid > about its "host" environment.... making it what I would > call a "mostly" cross-compiler.
If it does, this is a bug which you should report so it can get fixed ;-) > Most notably - floating point arithmetic; which don't matter > to many applications. This in particular will be fixed with gcc 3.3. Compile-time floating point arithmetic will be done exactly identical in native and cross compiles. (But even before 3.3, this should not be an issue for targets using the standard IEEE format, only with non-IEEE targets.) Mark Post wrote: >The differences in question were discovered trying to compile SAPDB. I ran >into things that needed correction that someone else did not. I was >compiling on Linux/390, and they were cross compiling on Intel Linux. I would assume this to be differences in include files, not the compiler. You need to make sure the cross-compile uses the target versions of all required (system and non-system) include files, and does not fall back to using any host include file. (If any file from /usr/include gets pulled in, this is most likely a bug.) Also, sometimes the configure/make scripts are not 100% cross-compile ready, and make some decisions depending on the host architecture which should really depend on the target ... Mit freundlichen Gruessen / Best Regards Ulrich Weigand -- Dr. Ulrich Weigand Linux for S/390 Design & Development IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen Phone: +49-7031/16-3727 --- Email: [EMAIL PROTECTED]
