Skip to content
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

Compilation fails on RockyLinux 8 arm64 arch #9367

Closed
CalvinNeo opened this issue Aug 26, 2024 · 1 comment · Fixed by #9366
Closed

Compilation fails on RockyLinux 8 arm64 arch #9367

CalvinNeo opened this issue Aug 26, 2024 · 1 comment · Fixed by #9366
Labels
severity/moderate type/bug The issue is confirmed as a bug.

Comments

@CalvinNeo
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

FAILED: libs/libarm-optimized-routines/CMakeFiles/aor.dir/aor.cpp.o 
/usr/bin/clang++ -DSERVERLESS_PROXY=0 -DTIFLASH_COMPILER_VPCLMULQDQ_SUPPORT=0 -DTIFLASH_ENABLE_ASIMD_SUPPORT=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -I/ws/contrib/arm-optimized-routines/string/include -Wthread-safety -flto=thin -fvisibility=hidden -fvisibility-inlines-hidden -fwhole-program-vtables -fsplit-lto-unit  -pipe -march=armv8+crc+simd  -fno-omit-frame-pointer  -Wall -Wno-unused-command-line-argument  -Wnon-virtual-dtor  -stdlib=libc++ -Werror -fomit-frame-pointer -O2 -g -DNDEBUG -O3  -std=gnu++2b -MD -MT libs/libarm-optimized-routines/CMakeFiles/aor.dir/aor.cpp.o -MF libs/libarm-optimized-routines/CMakeFiles/aor.dir/aor.cpp.o.d -o libs/libarm-optimized-routines/CMakeFiles/aor.dir/aor.cpp.o -c /ws/libs/libarm-optimized-routines/aor.cpp
/ws/libs/libarm-optimized-routines/aor.cpp:35:58: error: 'memchr' is missing exception specification 'throw()'
   35 | extern "C" __attribute__((visibility("default"))) void * memchr(const void * src, int c, size_t size)
      |                                                          ^                                           
      |                                                                                                       throw()
/usr/include/string.h:84:1: note: previous declaration is here
   84 | memchr (const void *__s, int __c, size_t __n) __THROW
      | ^
/ws/libs/libarm-optimized-routines/aor.cpp:40:58: error: 'memrchr' is missing exception specification 'throw()'
   40 | extern "C" __attribute__((visibility("default"))) void * memrchr(const void * src, int c, size_t size)
      |                                                          ^                                            
      |                                                                                                        throw()
/usr/include/string.h:112:26: note: previous declaration is here
  112 | extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
      |                          ^
/ws/libs/libarm-optimized-routines/aor.cpp:69:65: error: 'strchr' is missing exception specification 'throw()'
   69 | extern "C" __attribute__((visibility("default"))) inline char * strchr(const char * src_, int c)
      |                                                                 ^                               
      |                                                                                                  throw()
/usr/include/string.h:219:1: note: previous declaration is here
  219 | strchr (const char *__s, int __c) __THROW
      | ^
/ws/libs/libarm-optimized-routines/aor.cpp:74:65: error: 'strrchr' is missing exception specification 'throw()'
   74 | extern "C" __attribute__((visibility("default"))) inline char * strrchr(const char * src_, int c)
      |                                                                 ^                                
      |                                                                                                   throw()
/usr/include/string.h:246:1: note: previous declaration is here
  246 | strrchr (const char *__s, int __c) __THROW
      | ^
/ws/libs/libarm-optimized-routines/aor.cpp:79:65: error: 'strchrnul' is missing exception specification 'throw()'
   79 | extern "C" __attribute__((visibility("default"))) inline char * strchrnul(const char * src_, int c)
      |                                                                 ^                                  
      |                                                                                                     throw()
/usr/include/string.h:263:26: note: previous declaration is here
  263 | extern "C++" const char *strchrnul (const char *__s, int __c)
      |                          ^
5 errors generated.

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

@CalvinNeo CalvinNeo added the type/bug The issue is confirmed as a bug. label Aug 26, 2024
@wuhuizuo
Copy link
Contributor

/retitle Compilation fails on RockyLinux 8 arm64 arch

@ti-chi-bot ti-chi-bot bot changed the title Compilation fails on rockylinux9 arm64 arch Compilation fails on RockyLinux 8 arm64 arch Aug 26, 2024
@ti-chi-bot ti-chi-bot bot closed this as completed in 9afd0b2 Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@wuhuizuo @JaySon-Huang @CalvinNeo and others