Rate This Document
Findability
Accuracy
Completeness
Readability

Programming Framework Error Codes

Software Version in the Compilation Environment Not Within the Allowed Range

WARN: Please install make, with the requirement that 4.3.0 <= make <=4.4.0

This warning does not affect the current compilation process. However, long-term use of incompatible versions poses risks; therefore, the specified versions should be installed.

Lack of Programming Framework Tools

[build]# make
[ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
[100%] Linking C static library ../lib/libfullnat.a
/usr/bin/ar: CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o: plugin needed to handle lto object
/usr/bin/ranlib: ../lib/libfullnat.a(fullnat_ovs.hdr.o): plugin needed to handle lto object
[100%] Built target fullnat
File does not exist: "bin_make"
make[2]: *** [CMakeFiles/flash_bin.dir/build.make:70: CMakeFiles/flash_bin] Error 255
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/flash_bin.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Reinstall the tools according to Installing the Devtools Package of the Programming Framework.

Permission Denied

environment: line 632: /home/flexda_sdk/tools/bin_make: Permission denied

Reinstall the tools according to Installing the Devtools Package of the Programming Framework or run the following command to grant necessary permissions for the tools.

chmod +x /home/flexda_sdk/tools/bin_make

Hydra Syntax Error During Compilation

  • Hydra syntax error
    ERROR: terminate called after throwing an instance of 'frontendException::TypeError'
      what():  Allowed default actions should be declared in "default_actions" enum. But it was not found.
    from Type Checker
    At /home/flexda_sdk/example/fullnat/src_dsl/fullnat_ovs.hdr:177:26 Identifier@[/home/flexda_sdk/example/fullnat/src_dsl/fullnat_ovs.hdr:177:26~177:37]
            default_action = flexda_oncall;
                             ^^^^^^^^^^^
    make[2]: *** [src_dsl/CMakeFiles/fullnat.dir/build.make:76: src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o] Error 255
    make[1]: *** [CMakeFiles/Makefile2:154: src_dsl/CMakeFiles/fullnat.dir/all] Error 2
    make: *** [Makefile:91: all] Error 2
  • Header file not found
    [ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
    ERROR: /home/flexda_sdk/example/fullnat/src_dsl/fullnat_ovs.hdr:5:10: fatal error: 'hydra_ovs_arch.hdr' file not found
    #include "hydra_ovs_arch.hdr"
             ^~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make[2]: *** [src_dsl/CMakeFiles/fullnat.dir/build.make:76: src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o] Error 255
    make[1]: *** [CMakeFiles/Makefile2:154: src_dsl/CMakeFiles/fullnat.dir/all] Error 2
    make: *** [Makefile:91: all] Error 2

Modify the settings according to Hydra Programming in the OVS Data Plane.

Missing Public and Private Keys

[build]# make
[ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
[100%] Linking C static library ../lib/libfullnat.a
/usr/bin/ar: CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o: plugin needed to handle lto object
/usr/bin/ranlib: ../lib/libfullnat.a(fullnat_ovs.hdr.o): plugin needed to handle lto object
[100%] Built target fullnat
ERROR: The provided private key file path does not exist
make[2]: *** [CMakeFiles/flash_bin.dir/build.make:70: CMakeFiles/flash_bin] Error 255
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/flash_bin.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

You need to add the public and private keys to the corresponding path.

CMake Script Parameter Configuration Error

  • Invalid board type
    [build]# make
    [ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
    ERROR: ResPlaning does not support eth_2x100ge_dpu_aa
    make[2]: *** [src_dsl/CMakeFiles/fullnat.dir/build.make:76: src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o] Error 255
    make[1]: *** [CMakeFiles/Makefile2:126: src_dsl/CMakeFiles/fullnat.dir/all] Error 2
    make: *** [Makefile:91: all] Error 2

    Modify the value according to CMake Script Configuration Description.

  • KEY_SWITCH set to an invalid value
    [build]# make
    [ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
    [100%] Linking C static library ../lib/libfullnat.a
    /usr/bin/ar: CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o: plugin needed to handle lto object
    /usr/bin/ranlib: ../lib/libfullnat.a(fullnat_ovs.hdr.o): plugin needed to handle lto object
    [100%] Built target fullnat
    ERROR: The variable KEY_SWITCH must be either on or off
    make[2]: *** [CMakeFiles/flash_bin.dir/build.make:70: CMakeFiles/flash_bin] Error 255
    make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/flash_bin.dir/all] Error 2
    make: *** [Makefile:91: all] Error 2

    Modify the value according to CMake Script Configuration Description.

  • Invalid version number format
    [build]# make
    [ 50%] Building C object src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o
    ERROR: The version number is incorrect: 17.6.33
    make[2]: *** [src_dsl/CMakeFiles/fullnat.dir/build.make:76: src_dsl/CMakeFiles/fullnat.dir/fullnat_ovs.hdr.o] Error 255
    make[1]: *** [CMakeFiles/Makefile2:126: src_dsl/CMakeFiles/fullnat.dir/all] Error 2
    make: *** [Makefile:91: all] Error 2

    Modify the value according to CMake Script Configuration Description.