Giter Club home page Giter Club logo

Comments (6)

uraimo avatar uraimo commented on May 27, 2024

Please try to launch it in verbose mode or with a debug option, and add more details on the action you are trying to run.
There is not much to see in that log right now.

from run-on-arch-action.

rafal1137 avatar rafal1137 commented on May 27, 2024

@uraimo
Here is a part of the code responsible for building packages, release files and it fails here. Before this one compilation takes place which is compiling and have no issues with it. But cpack is another story here.

      - name: Generate packages
        shell: bash
        working-directory: build/
        run: cpack

I did runned cpack with both options --verbose and --debug

Run cpack --verbose
CPack: Enable Verbose
CPack Verbose: Read CPack config file: 
CPack Verbose: Read CPack configuration file: /home/runner/work/name/name/build/CPackConfig.cmake
CPack Verbose: Specified generator: TGZ
CPack Verbose: Use generator: cmCPackArchiveGenerator
CPack Verbose: For project: name
CPack: Create package using TGZ
CPack Verbose: [TGZ] requested component grouping = ONE_PER_GROUP
CPack: Install projects
CPack Error: Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: Error when generating package: name
Error: Process completed with exit code 1.



Run cpack --debug
CPack: /builds/cmake ci/Source/CPack/cpack.cxx:202 Enable Debug
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_GENERATOR, TGZ)
CPack Error: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:201 Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: /builds/cmake ci/Source/CPack/cpack.cxx:436 Error when generating package: name
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_PACKAGING_INSTALL_PREFIX, /)
CPack: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1038 Create package using TGZ
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:60 Create temp directory.
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_PREFIX, /home/runner/work/name/name/build)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TOPLEVEL_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_NAME, name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_OUTPUT_FILE_PATH, /home/runner/work/name/name/build/name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_PACKAGE_FILE_NAME, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm.tar.gz)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_INSTALL_DIRECTORY, /usr/local/)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_NATIVE_INSTALL_DIRECTORY, /usr/local/)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_TEMPORARY_INSTALL_DIRECTORY, /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:125 Look for: CPACK_PACKAGE_DESCRIPTION_FILE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_PACKAGE_CHECKSUM
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_REMOVE_TOPLEVEL_DIRECTORY, 1)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_IGNORE_GROUPS
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ONE_PACKAGE_PER_GROUP
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_GROUPING
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1066 About to install project 
CPack: /builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:183 Install projects
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1320 GetPackagingInstallPrefix: '/'
Error: Process completed with exit code 1.

Only thing so far that brought my attention is this:

/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_PACKAGE_CHECKSUM
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1022 cmCPackArchiveGenerator::SetOption(CPACK_REMOVE_TOPLEVEL_DIRECTORY, 1)
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_IGNORE_GROUPS
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_ONE_PACKAGE_PER_GROUP
/builds/cmake ci/Source/CPack/cmCPackGenerator.cxx:1267 Warning, GetOption return NULL for: CPACK_COMPONENTS_GROUPING

from run-on-arch-action.

XMuli avatar XMuli commented on May 27, 2024

Run cpack
CPack: Create package using TGZ
CPack: Install projects
CPack Error: Problem creating temporary directory: /home/runner/work/name/name/build/_CPack_Packages/Linux/TGZ/name-arm/
CPack Error: Error when generating package: name
Error: Process completed with exit code 1.

@uraimo I have used NSIS + CPack + Qt + CMake + VS2019 in my own project and encountered the same problem as you, did you solve it later?

from run-on-arch-action.

rafal1137 avatar rafal1137 commented on May 27, 2024

I did small search in Cmake Source Code and found where it fails:

  if (!cmsys::SystemTools::MakeDirectory(bareTempInstallDirectory)) {
    cmCPackLogger(cmCPackLog::LOG_ERROR,
                  "Problem creating temporary directory: "
                    << (tempInstallDirectory ? tempInstallDirectory : "(NULL)")
                    << std::endl);
    return 0;
  }

Will have to dig deeper inside MakeDirectory to find where it is failing at.

from run-on-arch-action.

rafal1137 avatar rafal1137 commented on May 27, 2024

After fiddling with github action script. I decided to run cpack with sudo command and as expected new issue came out of it.
Looks like it does not have issue with creating temp install directory
obraz

I did tried cat PreinstallOutput.log file but it does not le me after this issue occur.

from run-on-arch-action.

XMuli avatar XMuli commented on May 27, 2024

@rafal1137 Thanks for your answer, it was a lot of fun 😄, maybe I can build it successfully locally first before trying GH Action.

PS:I will keep trying it when I get my PC (Win10) back in my hands a little later

from run-on-arch-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.