AnacondaRecipes / tensorflow_recipes

Tensorflow conda recipes
27 stars 26 forks source link

conda-build of tensorflow-base-cpu fails on Mac-OSX(M1) with error unrecognized '--nocompatible_prohibit_aapt1' #42

Open sfweller opened 2 years ago

sfweller commented 2 years ago

Info on where in the build process this is failing:

INFO: activate_clangxx_osx-64.sh made the following environmental changes: +CLANGXX=x86_64-apple-darwin13.4.0-clang++ +CXX=x86_64-apple-darwin13.4.0-clang++ +CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/tensorflow-base-2.4.1 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix +CXX_FOR_BUILD=$BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ +DEBUG_CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -Og -g -Wall -Wextra -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/tensorflow-base-2.4.1 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix

Here is the rest of the error - should have included it initially:

ERROR: --noincompatible_prohibit_aapt1 :: Unrecognized option: --noincompatible_prohibit_aapt1 Traceback (most recent call last): File "/Users/stephenweller/opt/anaconda3/bin/conda-build", line 11, in sys.exit(main()) File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 488, in main execute(sys.argv[1:]) File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 477, in execute outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post, File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/api.py", line 186, in build return build_tree( File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/build.py", line 3088, in build_tree packages_from_this = build(metadata, stats, File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/build.py", line 2211, in build utils.check_call_env(cmd, env=env, rewrite_stdout_env=rewrite_env, File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/utils.py", line 410, in check_call_env return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs) File "/Users/stephenweller/opt/anaconda3/lib/python3.9/site-packages/conda_build/utils.py", line 390, in _func_defaulting_env_to_os_environ raise subprocess.CalledProcessError(proc.returncode, _args) subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/Users/stephenweller/opt/anaconda3/conda-bld/tensorflow-base_1662582360236/work/conda_build.sh']' returned non-zero exit status 2.