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
[bug] conan build on 1.34.0 cant find build folder anymore #8566
Comments
Hi @kanrrra, Thanks for reporting. I'm trying to reproduce the issue but still had no luck.
Could you please provide a more complete log ? |
@kanrrra could you activate logging with |
@czoido Thanks for your help! The very basic example works fine.
log of conan build of my own package
|
I have also been trying to reproduce without success. It would be great to know details of your recipe that is causing this failure, I think the problem might be reproducible with a relatively simple recipe. Also, please, if you could share what are the folders and files that you have after the |
Ok here is the full command and log. The build folder does exist after Here is our conanfile renamed to .txt because I cant upload .py files.
|
Some unrelated comments:
Thanks very much for the details, I have finally managed to reproduce. I'll investigate now what is happening. |
Ok, I have identified the error. You are declaring in the recipe a public attribute class BallJamesConanFile(ConanFile):
name = "bj-interpolator"
project_dir = "."
build_folder = "build" So it seems the above "unrelated comment" was actually related. Read carefully https://docs.conan.io/en/latest/reference/conanfile.html, it is not possible to define public top level attributes or methods, because they will conflict with Conan own attributes and fields. The fact that it didn't fail before was luck, because Conan has used the conan/conans/client/installer.py Line 121 in da8e176
|
@memsharded Thank you so much! That fixed the issue and I'll definitely be looking into cleaning up our build process. |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Our build is fine on 1.33.1 but fails on 1.34.0. Nothing else changed.
conan install completes fine. conan build fails because it cant find the build dir.
Logs (Executed commands with output) (Include/Attach if Applicable)
conan install . --install-folder build -s compiler.libcxx=libstdc++11 -s os=Linux -g virtualrunenv
[success]
conan build . --build-folder build --source-folder .
Using lockfile: '/code/bj-interpolator/build/conan.lock'
Using cached profile from lockfile
ERROR: Unable to build it successfully
File "/usr/local/lib/python3.6/dist-packages/conans/client/conanfile/build.py", line 12, in run_build_method
os.listdir(conanfile.build_folder))
FileNotFoundError: [Errno 2] No such file or directory: 'build'
checking to see if build exists:
root@13dd8b464545:/code/**********r# ls -l | grep build
drwxr-xr-x 4 root root 4096 Feb 26 12:32 build
The text was updated successfully, but these errors were encountered: