[FFmpeg-user] Can't use latest NASM with FFmpeg?

Reino Wijnsma rwijnsma at xs4all.nl
Sat Mar 17 23:05:58 EET 2018


On 2-1-2018 23:17, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-01-02 17:11 GMT+01:00 Reino Wijnsma <rwijnsma at xs4all.nl>:
>> nasm: fatal: unable to open output file `/cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.Zrz2Fm8R/test.o'
> Is it possible that the binary you tested cannot read Cygwin paths?
This week I had another look at this.
To cross-compile on Windows I first install Cygwin. Then I use a MinGW build script to compile the latest GCC using Cygwin's compilers. And it's this latest GCC binary I'm using to compile everything that follows, including the latest NASM.
It suddenly occurred to me that in order for NASM to read Cygwin paths I had to compile NASM with Cygwin's GCC rather than MinGW's GCC.
And after having done so my hunch proved to be correct and FFmpeg's 'configure' was happy again:

nasm -v
NASM version 2.13.03 compiled on Mar 15 2018
test_x86asm movbe ecx, [5]
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    movbe ecx, [5]
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
test_x86asm vmovdqa32 [eax]{k1}{z}, zmm0
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    vmovdqa32 [eax]{k1}{z}, zmm0
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -f win32 -DPREFIX -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
test_x86asm vextracti128 xmm0, ymm0, 0
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    vextracti128 xmm0, ymm0, 0
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -f win32 -DPREFIX -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
test_x86asm vpmacsdd xmm0, xmm1, xmm2, xmm3
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    vpmacsdd xmm0, xmm1, xmm2, xmm3
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -f win32 -DPREFIX -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
test_x86asm vfmaddps ymm0, ymm1, ymm2, ymm3
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    vfmaddps ymm0, ymm1, ymm2, ymm3
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -f win32 -DPREFIX -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
test_x86asm CPU amdnop
BEGIN /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
    1    CPU amdnop
END /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
nasm -f win32 -DPREFIX -Werror -o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.o /cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S
/cygdrive/c/DOCUME~1/Admin/LOCALS~1/Temp/ffconf.p7gxGA9N/test.S:1: error: unknown 'cpu' type 'amdnop'

-- Reino


More information about the ffmpeg-user mailing list