ONE Build failed with `externals/XNNPACK/CMakeLists.txt`

Created on 26 Nov 2020  路  5Comments  路  Source: Samsung/ONE

Recently building ONE failed in my environment.

$ rm -rf ./externals ./Product
$ ROOTFS_DIR=/home/eric/src/rootfs/arm-bionic ./infra/scripts/docker_build_cross_arm_runtime.sh
...
CMake Error at /home/eric/work/4/ONE/externals/XNNPACK/CMakeLists.txt:1989 (TARGET_COMPILE_DEFINITIONS):
  Error evaluating generator expression:

    $<IF:$<CONFIG:Debug>,5,0>

  Expression did not evaluate to a known generator expression
...

Anyone who already solved this problem, could you please help?

help wanted

Most helpful comment

For those who may come here later...
I faced the same issue and I got the simple solution (from @periannath)
$ DOCKER_IMAGE_NAME="nnfw/one-devtools:bionic" ./infra/scripts/docker_build_cross_arm_runtime_release.sh

All 5 comments

Maybe you are using ubuntu 16.04 docker image & target.

One solution is upgrading target and using 18.04 image. Other solution is to install new cmake version in your custom docker image.

Same thing happened in #5087. As @hseok-oh explained, upgrading cmake version may solve this issue.

Could you let me know the recommended CMAKE version?

I tried local build (not docker) with CMAKE 3.10.2 and now I build ONE succesfully.

For those who may come here later...
I faced the same issue and I got the simple solution (from @periannath)
$ DOCKER_IMAGE_NAME="nnfw/one-devtools:bionic" ./infra/scripts/docker_build_cross_arm_runtime_release.sh

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wateret picture wateret  路  4Comments

seanshpark picture seanshpark  路  3Comments

mhs4670go picture mhs4670go  路  3Comments

binarman picture binarman  路  3Comments

YongseopKim picture YongseopKim  路  3Comments