Em Sab, Abril 11, 2009 8:25 am, Stephan Aßmus escreveu: > The question is also whether yasm can be used unmodified on the host > platform. For GCC, that's not the case, we need a cross compiler. For > yasm, > it doesn't seem to be the case at first sight, but maybe it would be the > correct way to have it part of the build tools when cross compiling from a > PPC Linux to generate an x86 Haiku. If that would still work with a normal > yasm, then it wouldn't actually need to be in buildtools. We have a number > of required host tools which are not in our buildtools (bison, flex...). > However, one possible benefit of having yasm in buildtools is to have a > fixed version. So some people don't get bugs which other people don't get > because they use a different yasm version on their hosts. > > Because of that last argument, I'd actually be in favor of keeping yasm in > our buildtools, but then it needs to be enabled during cross compilation! FWIW, here is what I am geeting when trying to cross-compile Haiku with Ubuntu 8.04 64: Cc generated/objects/haiku/x86/release/add-ons/media/plugins/avcodec/libavcodec/dsputil_mmx.o In file included from src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:31: src/add-ons/media/plugins/avcodec/libavcodec/x86/mmx.h:24: warning: #warning Everything in this header is deprecated, use plain __asm__()! New code using this header will be rejected. src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c: In function `gmc_mmx': src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:1753: Invalid `asm' statement: src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:1753: fixed or forbidden register 6 (bp) was spilled for class GENERAL_REGS. src/add-ons/media/plugins/avcodec/libavcodec/x86/h264dsp_mmx.c: In function `h264_loop_filter_strength_mmx2': In file included from src/add-ons/media/plugins/avcodec/libavcodec/x86/dsputil_mmx.c:1772: src/add-ons/media/plugins/avcodec/libavcodec/x86/h264dsp_mmx.c:855: `asm' operand constraint incompatible with operand size src/add-ons/media/plugins/avcodec/libavcodec/x86/h264dsp_mmx.c:855: invalid `asm': invalid expression as operand src/add-ons/media/plugins/avcodec/libavcodec/x86/h264dsp_mmx.c:855: invalid `asm': invalid expression as operand I tried with yasm 0.8.0 and 0.7.2 (compiled by myself locally) with the same results. Do I need a specific version of yasm different from those 2? -Bruno