Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-29177

Problems using ninja to build the system

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0
    • Build process
    • None

    Description

      A few issues:

      1) LN build failed with the following error:

      CMake Error:
        Running                                                                                                                                                                          
         '/usr/bin/ninja' '-C' '/home/gavin/build' '-t' 'recompact'                                                                                                                      
        failed with:                                                                                                                                                                     
         ninja: error: build.ninja:55685: multiple rules generate generated/ws_attributes.esp [-w dupbuild=err]                                                                          
      

      When I build the standard system there are two problems

      2) It always rebuilds a set of 374 files. This might be related to the generated file rebuild that Richard is seeing.

      [34/374] cd /home/gavin/build/esp/scm && ASAN_OPTIONS=detect_leaks=0 /home/gavin/build/Debug/bin/hidl /home/gavin/dev/hpcc/esp/scm/ws_workunits_req_resp.ecm /home/gavin/build/generated
      [35/374] cd /home/gavin/build/esp/scm && ASAN_OPTIONS=detect_leaks=0 /home/gavin/build/Debug/bin/hidl /home/gavin/dev/hpcc/esp/scm/ws_access.ecm /home/gavin/build/generated
      [36/374] /usr/bin/c++ -DROXIECOMMLIB_EXPORTS -DUCHAR_TYPE=uint16_t -DUSE_LIBMEMCACHED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_NO_MYSQL_REPOSITORY -D_USE_AERON -D_USE_APR -D_USE_AZURE -D_USE_BOOST_REGEX -D_USE_CPPUNIT -D_USE_ICU -D_USE_LIBARCHIVE -D_USE_LIBXML2 -D_USE_LIBXSLT -D_USE_NUMA -D_USE_OPENLDAP -D_USE_OPENSSL -D_USE_OPENSSLV3 -D_USE_ZLIB -D_USRDLL -D__USE_FILE_OFFSET64=1 -D__USE_LARGEFILE64=1 -Droxiecommlib_EXPORTS -I/home/gavin/build/generated -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../common/remote -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../system/mp -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../common/workunit -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../common/environment -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../roxie/ccd -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../common/fileview2 -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../system/include -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../system/security/shared -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../system/xmllib -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../dali/base -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../rtl/include -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../common/dllserver -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../esp/platform -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../esp/bindings -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../esp/clients -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../esp/bindings/SOAP/xpp -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../system/jlib -I/home/gavin/dev/hpcc/common/roxiecommlib/./../../rtl/eclrtl -isystem /home/gavin/build/vcpkg_installed/x64-linux-dynamic/include -frtti -fPIC -fmessage-length=0 -Werror=format -Wformat-security -Wformat-nonliteral -pthread -Wuninitialized -Werror=return-type -Werror=format-nonliteral -Wno-psabi -Wparentheses -g -D_DEBUG -DDEBUG -fPIC   -fsanitize=undefined -fno-sanitize=alignment -fsanitize-undefined-trap-on-error -std=gnu++17 -MD -MT common/roxiecommlib/CMakeFiles/roxiecommlib.dir/roxiecommunicationclient.cpp.o -MF common/roxiecommlib/CMakeFiles/roxiecommlib.dir/roxiecommunicationclient.cpp.o.d -o common/roxiecommlib/CMakeFiles/roxiecommlib.dir/roxiecommunicationclient.cpp.o -c /home/gavin/dev/hpcc/common/roxiecommlib/roxiecommunicationclient.cpp
      [37/374] /usr/bin/c++ -DFileSpray_API_LOCAL -DUCHAR_TYPE=uint16_t -DUSE_LIBMEMCACHED -DWSDFU_API_LOCAL -D_CONSOLE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_NO_MYSQL_REPOSITORY -D_USE_AERON -D_USE_APR -D_USE_AZURE -D_USE_BOOST_REGEX -D_USE_CPPUNIT -D_USE_ICU -D_USE_LIBARCHIVE -D_USE_LIBXML2 -D_USE_LIBXSLT -D_USE_NUMA -D_USE_OPENLDAP -D_USE_OPENSSL -D_USE_OPENSSLV3 -D_USE_ZLIB -D__USE_FILE_OFFSET64=1 -D__USE_LARGEFILE64=1 -I/home/gavin/build/generated -I/home/gavin/dev/hpcc/dali/dfuplus/./../../system/security/shared -I/home/gavin/dev/hpcc/dali/dfuplus/./../../esp/bindings/SOAP/xpp -I/home/gavin/dev/hpcc/dali/dfuplus/./../dfu -I/home/gavin/dev/hpcc/dali/dfuplus/./../ft -I/home/gavin/dev/hpcc/dali/dfuplus/./../../system/xmllib -I/home/gavin/dev/hpcc/dali/dfuplus/./../../esp/platform -I/home/gavin/dev/hpcc/dali/dfuplus/./../../esp/clients -I/home/gavin/dev/hpcc/dali/dfuplus/./../../rtl/include -I/home/gavin/dev/hpcc/dali/dfuplus/./../../system/include -I/home/gavin/dev/hpcc/dali/dfuplus/./../../system/jlib -I/home/gavin/dev/hpcc/dali/dfuplus/./../../esp/bindings -I/home/gavin/dev/hpcc/dali/dfuplus/./../../common/workunit -I/home/gavin/dev/hpcc/dali/dfuplus/./../../fs/dafsclient -I/home/gavin/dev/hpcc/dali/dfuplus/./../../fs/dafsserver -I/home/gavin/build -I/home/gavin/build/oss -I/home/gavin/dev/hpcc/common/thorhelper -isystem /home/gavin/build/vcpkg_installed/x64-linux-dynamic/include -frtti -fPIC -fmessage-length=0 -Werror=format -Wformat-security -Wformat-nonliteral -pthread -Wuninitialized -Werror=return-type -Werror=format-nonliteral -Wno-psabi -Wparentheses -g -D_DEBUG -DDEBUG   -fsanitize=undefined -fno-sanitize=alignment -fsanitize-undefined-trap-on-error -std=gnu++17 -MD -MT dali/dfuplus/CMakeFiles/dfuplus.dir/__/__/esp/bindings/bindutil.cpp.o -MF dali/dfuplus/CMakeFiles/dfuplus.dir/__/__/esp/bindings/bindutil.cpp.o.d -o dali/dfuplus/CMakeFiles/dfuplus.dir/__/__/esp/bindings/bindutil.cpp.o -c /home/gavin/dev/hpcc/esp/bindings/bindutil.cpp
      [38/374] /usr/bin/c++ -DECLPLUS_EXPORTS -DUCHAR_TYPE=uint16_t -DUSE_LIBMEMCACHED -DWSWU_API_LOCAL -D_CONSOLE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -
      

      3) If you have two directories - "/build" using ninja and "/buildr" using makefiles, if you alternate builds it reruns the configuration each time - even though they should be independent.

      Attachments

        Activity

          People

            gordonsmith Gordon Smith
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: