-
Notifications
You must be signed in to change notification settings - Fork 279
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
snmalloc/0.7.0 package update #35468
Conversation
Gen AI suggestions to solve the build error: • Detected Error:
• Error Category: Build Configuration • Failure Point: Compilation of memcpy.cc during cmake/build step • Root Cause Analysis:
• Suggested Fix: - uses: cmake/configure
with:
opts: |
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DSNMALLOC_BUILD_TESTING=OFF \
-DSNMALLOC_LINK_ICF=ON \
-DSNMALLOC_IPO=ON \
-DSNMALLOC_STATIC_LIBRARY_PREFIX= \
-DSNMALLOC_OVERRIDE_MEMCPY=OFF • Explanation: • Additional Notes:
• References:
|
Signed-off-by: wolfi-bot <[email protected]>
cd291b7
to
4ec111b
Compare
Gen AI suggestions to solve the build error: • Detected Error:
• Error Category: Build Configuration • Failure Point: Compilation of memcpy.cc during cmake/build step • Root Cause Analysis:
• Suggested Fix: - uses: cmake/configure
with:
opts: |
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DSNMALLOC_BUILD_TESTING=OFF \
-DSNMALLOC_LINK_ICF=ON \
-DSNMALLOC_IPO=ON \
-DSNMALLOC_STATIC_LIBRARY_PREFIX= \
-DSNMALLOC_OVERRIDE_MEMCPY=OFF • Explanation: • Additional Notes:
• References: |
Gen AI suggestions to solve the build error: Based on the build log provided, I'll analyze the CMake configuration failure. • Detected Error: The build fails during CMake configuration with incomplete compiler ABI detection • Error Category: Build Configuration • Failure Point: cmake/configure step during compiler detection • Root Cause Analysis: • Suggested Fix:
environment:
contents:
packages:
# existing packages...
env:
CC: clang
CXX: clang++
CFLAGS: "-fPIC"
CXXFLAGS: "-fPIC"
LDFLAGS: "-fuse-ld=lld"
- uses: cmake/configure
with:
opts: |
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang-18 \
-DCMAKE_CXX_COMPILER=clang++-18 \
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" \
-DSNMALLOC_BUILD_TESTING=OFF \
-DSNMALLOC_LINK_ICF=ON \
-DSNMALLOC_IPO=ON \
-DSNMALLOC_STATIC_LIBRARY_PREFIX= • Explanation:
• Additional Notes:
• References:
|
…stream https://github.com/microsoft/snmalloc/blob/main/docs/BUILDING.md\#building-on-unix-like-platforms Update the fetch pipeline to use git-checkout Add clang dev package for fatal error: 'stddef.h' file not found Signed-off-by: debasishbsws <[email protected]>
with clang or llvm version 18 we started getting an error Cause according to claude AI
it suggested me to do some code changes. I started looking into upstream guide and it suggested I try to downgrade the version to suggested 17 and it worked. |
Signed-off-by: Debasish Biswas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
downgrade the clang version to use 17 mentioned in the upstream
change the fetch pipeline and use git-checkout instead
Add clang-17-dev package for fatal error: 'stddef.h' file not found