-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Error: Building package pcl:x64-windows failed with: BUILD_FAILED #19561
Comments
Please add |
|
I am sorry, but I didn't get the suggested solution. which program? and which locations? could you please provide more details? |
No, I can't: It is an "internal compiler error". I don't even use MSVC. But maybe someone from Microsoft will have an idea. |
"compiler file 'd:\a01_work\3\s\src\vctools\Compiler\Utc\src\p2\main.c', line 217" I didn't find this directory in my computer. I have no file called a01 in D! |
Thanks for posting this issue. Confirmed this is a compiler bug. We have filed a bug https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/1348372 to track this issue. |
Dear Nancy, Thanks for your reply. When I click on the link above, it shows me that I do not have access. |
FTR this is a file from the compiler source code (from the time when the compiler was built), not from your computer. |
You may try to open it in this way.
Note: Currently, there is no progress about this issue. |
@NancyLi1013 thanks,but how to solve have no access to open the link: |
Seems require additional permission to go through this link. There is no any progress about this issue. But I have no idea how to access this for you. |
@NancyLi1013 oh too bad! it is a huge problem to me。 |
I also got this error when using MSVC2022 and MSVC2015. I finally get through it by changing to MSVC2019 |
@lidar-nevermore How exactly did you do this? I tried to make a custom triplet file for pcl specifically targeting MSVC2019 (v142). The vcpkg installation worked, but when I try to compile my program I get dozens of "unresolved external symbol" errors (I made sure everything is running on 64bit, same as the pcl installation) |
Has anybody gotten a solution except installing MSVC2019 |
I have the same problem with MSVC2022. I solved it by changing the portfile.cmake. I have disabled the usage of opennurbs in the surface module.
Changed vcpkg/ports/pcl/portfile.cmake Line 62 in b47d6ce
to BUILD_surface_on_nurbs=OFF By disabling it, the error disappeared. So if you are not using that module you can solve it temporarily. I hope it helps to someone! |
Install OpenNurbs from the "official" repository at mcneel/opennurbs opennurbs\opennurbs_lookup.cpp(713): fatal error C1001: Internal compiler error. 712 The result is the same error in same spot of code (though line numbers are different due to modifications in the pcl version) pcl\surface\src\3rdparty\opennurbs\opennurbs_lookup.cpp(670): fatal error C1001: Internal compiler error. 669 Project opennurbs_public for Debug:X64 builds fine. I have notified McNeel of the issue Building opennurbs_public with VisualStudio2022 results in compiler error |
Unless I'm missing something, FirstElement is currently unused by both the openNURBS code itself and our code - disable to avoid a VS2022 compiler bug. Keep an eye on the following links to see if there is more progress on this, but in the meantime it looks like we can just dodge the issue completely: https://discourse.mcneel.com/t/building-opennurbs-public-with-visualstudio2022-results-in-compiler-error/137817 microsoft/vcpkg#19561
Unless I'm missing something, FirstElement is currently unused by both the openNURBS code itself and our code - disable to avoid a VS2022 compiler bug. Keep an eye on the following links to see if there is more progress on this, but in the meantime it looks like we can just dodge the issue completely: https://discourse.mcneel.com/t/building-opennurbs-public-with-visualstudio2022-results-in-compiler-error/137817 microsoft/vcpkg#19561 (cherry picked from commit 68d49db)
Have you solved the problem without installing vs 2019? |
What error do you have? In my case, it was a problem with NURBS, so I disabled it (See my previous comment). |
I did that and the same error still exists |
The workaround for this was submitted a while ago: |
I'm facing a similar problem: Call Stack (most recent call first): error: building pcl:x64-windows failed with: BUILD_FAILED Please need some help to solve this problem. |
Please provide the error logs:
|
Hi Lily, I have solved the issue by reinstalling VS2019. |
I had the same issue. I think it happened because the Although it fixed the problem, I suggest updating the Windows environment variables instead of changing the |
Hello All,
I am trying to install PCL on Windows as explained here: https://pointclouds.org/downloads/
and here: https://github.com/microsoft/vcpkg
But I faced a problem "Error: Building package pcl:x64-windows failed with: BUILD_FAILED" as you can see below.
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install pcl:x64-windows
Failure logs
C:\dev\vcpkg\vcpkg> vcpkg.exe install pcl:x64-windows
Computing installation plan...
The following packages will be built and installed:
pcl[core]:x64-windows -> 1.11.1#4
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: C:\Users\KaramS\AppData\Local\vcpkg\archives\04\045ba40892938512693aac9e82ee83066eb33202f5ab3fffe342a9aed6ac4845.zip
Starting package 1/1: pcl:x64-windows
Building package pcl[core]:x64-windows...
-- Using C:/dev/vcpkg/vcpkg/downloads/PointCloudLibrary-pcl-d98313133b014553ab1b1b5b112f9aade837d55c.tar.gz
-- Cleaning sources at C:/dev/vcpkg/vcpkg/buildtrees/pcl/src/ade837d55c-9cde649e93.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/dev/vcpkg/vcpkg/downloads/PointCloudLibrary-pcl-d98313133b014553ab1b1b5b112f9aade837d55c.tar.gz
-- Applying patch pcl_utils.patch
-- Applying patch pcl_config.patch
-- Applying patch boost-1.70.patch
-- Applying patch fix-link-libpng.patch
-- Applying patch remove-broken-targets.patch
-- Applying patch fix-check-sse.patch
-- Applying patch realsense2.patch
-- Applying patch add-gcc-version-check.patch
-- Applying patch fix-find-qhull.patch
-- Using source at C:/dev/vcpkg/vcpkg/buildtrees/pcl/src/ade837d55c-9cde649e93.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:155 (message):
Command failed: C:/dev/vcpkg/vcpkg/downloads/tools/cmake-3.21.1-windows/cmake-3.21.1-windows-i386/bin/cmake.exe --build . --config Release --target install -- -v -j13
Working Directory: C:/dev/vcpkg/vcpkg/buildtrees/pcl/x64-windows-rel
See logs for more information:
C:\dev\vcpkg\vcpkg\buildtrees\pcl\install-x64-windows-rel-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
ports/pcl/portfile.cmake:62 (vcpkg_install_cmake)
scripts/ports.cmake:141 (include)
Error: Building package pcl:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with
.\vcpkg update
, thensubmit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: pcl:x64-windows
Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04
Additionally, attach any relevant sections from the log files above.
The text was updated successfully, but these errors were encountered: