Skip to content

Enable building on Fedora41 #76

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jwludzik
Copy link
Contributor

Work in progress

The compiler can be build in Fedora41 thanks to patch that disables compiler warning as errors.

The initial components required to build the driver with compiler

dnf install -y @development-tools git git-lfs cmake systemd-devel boost-devel openssl-devel g++ OpenCL-ICD-Loader-devel 

# to build the rpm packages the rpmbuild is required
dnf install -y rpmbuild

To build the driver with compiler, the user has to do:

cmake -B build -S . -DENABLE_NPU_COMPILER_BUILD=ON  -DCMAKE_BUILD_TYPE=RELEASE
cmake --build build -j12
sudo cmake --install build

@jwludzik jwludzik force-pushed the dev/jwludzik/enable-fedora branch from 5cb66e2 to a8cab9b Compare March 3, 2025 14:01
@jwludzik jwludzik force-pushed the dev/jwludzik/enable-fedora branch from a8cab9b to c79e5bc Compare March 3, 2025 15:28
xanderlent added a commit to xanderlent/linux-npu-driver that referenced this pull request Mar 9, 2025
This was suggested by upstream in:
intel#76

Co-authored-by: Alexander F. Lent <[email protected]>
Signed-off-by: Alexander F. Lent <[email protected]>
@JohnNiang
Copy link

JohnNiang commented Apr 11, 2025

I got an error while executing cmake --build build -j12, please see the log below:

[  9%] Building CXX object src/common/low_precision_transformations/CMakeFiles/openvino_lp_transformations_obj.dir/src/transpose.cpp.o
[  9%] Building CXX object src/common/low_precision_transformations/CMakeFiles/openvino_lp_transformations_obj.dir/src/unsqueeze.cpp.o
[  9%] Building CXX object src/common/low_precision_transformations/CMakeFiles/openvino_lp_transformations_obj.dir/src/variadic_split.cpp.o
[  9%] Building CXX object src/common/low_precision_transformations/CMakeFiles/openvino_lp_transformations_obj.dir/src/weightable_layer_transformation.cpp.o
[  9%] Built target openvino_lp_transformations_obj
gmake[4]: *** [CMakeFiles/Makefile2:124383: build-modules/npu_compiler/src/vpux_driver_compiler/test/CMakeFiles/compilerTest.dir/rule] Error 2
gmake[3]: *** [Makefile:28894: compilerTest] Error 2
gmake[2]: *** [compiler/CMakeFiles/npu_compiler_build.dir/build.make:86: compiler/npu_compiler_build-prefix/src/npu_compiler_build-stamp/npu_compiler_build-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:1662: compiler/CMakeFiles/npu_compiler_build.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
❯ uname -a
Linux fedora 6.14.0-63.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Mar 24 19:53:37 UTC 2025 x86_64 GNU/Linux

build.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants