conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
958 stars 1.76k forks source link

[question] libx264/20190605 build with 'AS=as' due to nasm not found #669

Open leyewen opened 4 years ago

leyewen commented 4 years ago

Package and Environment Details

Conan profile

Configuration:

# Cross-building toolchain
# https://docs.conan.io/en/latest/systems_cross_building/cross_building.html
toolchain=x86_64-w64-mingw32
target_host=x86_64-w64-mingw32
cc_compiler=gcc
cxx_compiler=g++

[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=14
compiler.exception=seh
compiler.libcxx=libstdc++11
compiler.threads=posix
compiler.version=8.1
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
CONAN_CMAKE_GENERATOR=MinGW Makefiles
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
CHOST=$target_host
# AR=$target_host-ar
AR=ar
# AS=$target_host-as
AS=as
# RANLIB=$target_host-ranlib
RANLIB=ranlib
CC=$target_host-$cc_compiler
CXX=$target_host-$cxx_compiler
# STRIP=$target_host-strip
STRIP=strip
# RC=$target_host-windres
RC=windres
[requires]
libx264/20190605

Steps to reproduce

Build libx264/20190605 with msys2 and mingw64 in system environment (not msys2_installer and mingw_installer).

Failed in

libx264/20190605: Minimum version is nasm-2.13
libx264/20190605: If you really want to compile without asm, configure with --disable-asm.

It is quite strange, when use AS due to this nasm error. when comment the profile code:

# AS=as

work well.

What happened !?

Logs

First log

Click to expand log ``` libx264/20190605: Calling: > /c/users/home/.conan/data/libx264/20190605/_/_/build/1a9b746db3232276ada4cf64b16512ba901fcf09/source_subfolder/configure --disable-cli --prefix=/c/users/home/.conan/data/libx264/20190605/_/_/package/1a9b746db3232276ada4cf64b16512ba901fcf09 --enable-shared --enable-debug --bit-depth=all libx264/20190605: run_in_windows_bash: bash --login -c ^"cd \^"/c/users/home/.conan/data/libx264/20190605/_/_/build/1a9b746db3232276ada4cf64b16512ba901fcf09\^" ^&^& PATH=\^"/c/users/home/.conan/data/nasm/2.14/_/_/package/456f15897172eef340fcbac8a70811f2beb26a93/bin:$PATH\^" ^&^& /c/users/home/.conan/data/libx264/20190605/_/_/build/1a9b746db3232276ada4cf64b16512ba901fcf09/source_subfolder/configure --disable-cli --prefix=/c/users/home/.conan/data/libx264/20190605/_/_/package/1a9b746db3232276ada4cf64b16512ba901fcf09 --enable-shared --enable-debug --bit-depth=all ^" libx264/20190605: WARN: Error running `configure --help`: Error 1 while executing /c/users/home/.conan/data/libx264/20190605/_/_/build/1a9b746db3232276ada4cf64b16512ba901fcf09/source_subfolder/configure --help libx264/20190605: Found GNU assembler (GNU Binutils) 2.30 libx264/20190605: Minimum version is nasm-2.13 libx264/20190605: If you really want to compile without asm, configure with --disable-asm. libx264/20190605: libx264/20190605: ERROR: Package '1a9b746db3232276ada4cf64b16512ba901fcf09' build failed libx264/20190605: WARN: Build folder C:\Users\Home\.conan\data\libx264\20190605\_\_\build\1a9b746db3232276ada4cf64b16512ba901fcf09 ERROR: libx264/20190605: Error in build() method, line 94 autotools = self._configure_autotools() while calling '_configure_autotools', line 89 self._autotools.configure(args=args, build=False, vars=self._override_env, configure_dir=self._source_subfolder) ConanException: Error 1 while executing /c/users/home/.conan/data/libx264/20190605/_/_/build/1a9b746db3232276ada4cf64b16512ba901fcf09/source_subfolder/configure --disable-cli --prefix=/c/users/home/.conan/data/libx264/20190605/_/_/package/1a9b746db3232276ada4cf64b16512ba901fcf09 --enable-shared --enable-debug --bit-depth=all ```
Morkxy commented 4 years ago

Hello

Same error for me when i try to cross-build this package from Ubuntu x86_64 to Android_x86. It looks like "./configure" can't find nasm's path.

Profile:

[settings]
arch=x86
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=8
os=Android
os.api_level=21
[build_requires]
android_ndk_installer/r20@bincrafters/stable
[options]
[env]