Skip to content

Build Failure for example_onnx/build-and-deploy-linux.sh: error: braces around scalar initializer for type ‘const float*’ #59

@SimZhou

Description

@SimZhou

Commit ID: 334403835ccaa1a4ccf3854013160417275e7657

% ./build-and-deploy-linux.sh --ort-path `realpath onnxruntime-linux-x64-1.17.1/`
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /hpc_stor01/home/yihua.zhou/tools/ten-vad/examples_onnx/build-linux/x64
[ 10%] Building CXX object CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/aed.cc.o
[ 20%] Building CXX object CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/biquad.cc.o
[ 30%] Building C object CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/fftw.c.o
[ 40%] Building CXX object CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/fscvrt.cc.o
[ 50%] Building CXX object CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/pitch_est.cc.o
/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/pitch_est.cc: In function ‘int AUP_PE_memAllocate(void*, const PE_StaticCfg*)’:
/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/pitch_est.cc:698:55: error: braces around scalar initializer for type ‘const float*’
   Biquad_StaticCfg biquadStCfg = {0, 0, 0, {0}, {0}, 0};
                                                       ^
gmake[2]: *** [CMakeFiles/ten_vad.dir/build.make:132: CMakeFiles/ten_vad.dir/hpc_stor01/home/yihua.zhou/tools/ten-vad/src/pitch_est.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/ten_vad.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions