-
Notifications
You must be signed in to change notification settings - Fork 443
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
Host Path Included in Build Output Causes Yocto Build Failure #1087
Comments
can you check with objdump that the string is actually in a functional part, and not just a comment left by your compiler ? |
this string is not included in .text segment, but stored in .rodata.str1.8 segment only.
my suspection is gfortran add the string into .rodata segment,(see the generated complie command Only detect the xerbla.o included the path that i am not expect. |
Description
Following the provided CMake build instructions:
Upon inspecting the build.make file, the generated build command appears as follows:
cd /buildarea6/pzha1-cn/upstream/lapack-buil/SRC && /folk/pzha1-cn/homebrew/bin/gfortran $(Fortran_DEFINES) $(Fortran_INCLUDES) $(Fortran_FLAGS) -cpp -c /buildarea6/pzha1-cn/upstream/lapack/SRC/xerbla.f -o CMakeFiles/lapack_obj.dir/xerbla.f.o
Checking the resulting xerbla.f.o file using strings and readelf reveals that the compiled object file contains host paths:
The inclusion of host paths (e.g., /buildarea6/pzha1-cn/upstream/lapack-buil/...) in the .o file leads to a failure in the Yocto build process during the do_package_qa step.
Host paths embedded in object files violate Yocto's reproducibility and deterministic build requirements, causing the build to fail.
Can anyone assist in resolving this issue of host paths being included in the build artifacts? Any guidance or patches to ensure a clean and reproducible build without embedded host-specific paths would be greatly appreciated.
The text was updated successfully, but these errors were encountered: