Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conanfile.py leads to ERROR 2 with cmake build #10134

Closed
AlexanderStohr opened this issue Dec 6, 2021 · 2 comments
Closed

conanfile.py leads to ERROR 2 with cmake build #10134

AlexanderStohr opened this issue Dec 6, 2021 · 2 comments
Assignees

Comments

@AlexanderStohr
Copy link

AlexanderStohr commented Dec 6, 2021

not sure what's going on in my build on the Linux platform. not sure what the core message of this error really is.

[2021-12-06T10:55:55.153Z] some_dependent_item/2.0.7@some_user/stable: Retrieving package <some_lengthy_package_id> from remote 'remote-server-space'
[2021-12-06T10:56:06.354Z] CMakeFiles/my_module_Test.dir/build.make:481: recipe for target 'bin/my_module_Test' failed
[2021-12-06T10:56:06.356Z] make[2]: *** [bin/my_module_Test] Error 139
[2021-12-06T10:56:06.356Z] make[2]: *** Deleting file 'bin/my_module_Test'
[2021-12-06T10:56:06.356Z] CMakeFiles/Makefile2:195: recipe for target 'CMakeFiles/my_module_Test.dir/all' failed
[2021-12-06T10:56:06.356Z] make[1]: *** [CMakeFiles/my_module_Test.dir/all] Error 2
[2021-12-06T10:56:06.356Z] Makefile:145: recipe for target 'all' failed
[2021-12-06T10:56:06.356Z] make: *** [all] Error 2
[2021-12-06T10:56:06.356Z] ERROR: conanfile.py (my_module/6.1.0): Error in build() method, line 41
[2021-12-06T10:56:06.356Z] 	super().build()
[2021-12-06T10:56:06.356Z] 	ConanException: Error 2 while executing cmake --build '/home/jenkins/agent/workspace/workspace/<jenkins_branch_name_subdir>/build/coverage/build/my_module' '--' '-j2'

(the only closest ticket i found was #2388 - but its on Windows with further in parts using nmake.)

@memsharded
Copy link
Member

Hi @AlexanderStohr

It is a bit difficult to know, it seems you are doing a conan build local command to build your consumer, which seems to extend from a python_require dependency, and all of this runs in a jenkins build.

It would be great to have a bit more data:

  • Conan version, operating system, compiler
  • How the conanfile.py (or several conanfile.py) look like
  • What exact commands are being run

Something small that we can reproduce, like some conanfile.py, or some code in a git repo would be super-useful too.

@AbrilRBS
Copy link
Member

Closing as solved as we didn't hear back from you in a while - if anyone has any other question or request, please feel free to create a new issue, we're always happy to help! :)

@AbrilRBS AbrilRBS closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants