Comments (8)
Additional context
I am using qemu user emulation under x86_64 to run and verify the code.
export SDK_ROOT=$PWD/debian_sid_mipsel-sysroot
qemu-mipsel-static -L $SDK_ROOT $PWD/build-linux-mipsel/yass_test --no_exec_proc_tests
from abseil-cpp.
Compiler is download from https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-18-init-9505-g10664813-1.tar.xz
from abseil-cpp.
I did not try this, but I think this is unlikely to be a bug in Abseil. There is a previous StrFormat bug report that turned out to be a glibc issue: #1369
from abseil-cpp.
The mipsel linux sysroot I used is coming from some snapshot on stable branch of debian (not that recent version of glibc, unlike gentoo or fedora). It is late night here and I will post the details of sysroot once I come to the office tomorrow.
from abseil-cpp.
It is 2.31
debian_sid_mipsel-sysroot/lib/mipsel-linux-gnu/libc-2.31.so: ELF 32-bit LSB shared object, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, interpreter /lib/ld.so.1, BuildID[sha1]=71d1472a54cd9638567e4ecc79b29c3fdf72b1c0, for GNU/Linux 3.2.0, stripped
from abseil-cpp.
I tried another sysroot from chromium v119.0.6045.66 buildbed (debian bullseye) and still failed with libc-2.31.so.
from abseil-cpp.
I also tried with different versions of clang compiler (namely 16.0.6 and 17.0.5). 16.0.6 didn't work but 17.0.5 works.
It seems to be a bug with compiler implementation. I don't have a chance to run gcc because the cross-compiling setting up.
The compiler below works.
/home/hky/clang+llvm-17.0.5-x86_64-linux-gnu-ubuntu-22.04/bin/clang: /lib64/libtinfo.so.6: no version information available (required by /home/hky/clang+llvm-17.0.5-x86_64-linux-gnu-ubuntu-22.04/bin/clang)
clang version 17.0.5 (https://github.com/llvm/llvm-project 98bfdac5ce82d1679f8af9a57501471812ab68d7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/hky/clang+llvm-17.0.5-x86_64-linux-gnu-ubuntu-22.04/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
The compiler doesn't work
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
System configuration file directory: /etc/clang
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
The compiler doesn't work as well:
clang version 18.0.0 (https://chromium.googlesource.com/a/external/github.com/llvm/llvm-project 10664813fca8d5ccbfd90bae9e791b7062dabd7c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/hky/yass/./third_party/llvm-build/Release+Asserts/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
from abseil-cpp.
Tried with newer compiler with chromium 120, the bug went out.
clang version 18.0.0 (https://chromium.googlesource.com/a/external/github.com/llvm/llvm-project 74cdb8e6f8c88b97204f540601a553b412d1cd56)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/hky/yass/./third_party/llvm-build/Release+Asserts/bin
Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
from abseil-cpp.
Related Issues (20)
- [Bug]: Unusable for installable projects whose other dependencies also define a `check` target HOT 3
- Resolving linking order is a nightmare on alpine HOT 4
- mismatched types โabsl::lts_2020_09_23::FormatSpec<Args ...>โ and โconst char [34]โ HOT 1
- [Bug]: Compilation error on mac: xcode command line interface 15.3
- [Bug]: Make absl::InitializeLog safe to be called multiple times
- [Bug]: Cant compile app on windows with MinGW that use Absl::Flags target.
- [Bug]: Can't build on macOS: `'linux/futex.h' file not found`
- [Bug]: new flat_hash_map to empty string could cause memory corruption in c++20 HOT 7
- GCC 14: abseil-src/absl/numeric/internal/bits.h:309:24: error: '__builtin_ctzs' needs isa option -mbmi HOT 2
- [Bug]: arm_neon.h inclusion causing issues HOT 2
- [CMake]: Could not find a configuration file for package "absl" that is compatible with requested version ""
- [Bug]: clang-analyzer-optin.core.EnumCastOutOfRange for static_cast<ctrl_t>(0) HOT 1
- [Bug]: undefined reference to `absl::lts_20240116::raw_log_internal::internal_log_function[abi:cxx11]' HOT 1
- [Bug]: algorithm\container.h is missing random header and causing compilation error when building protobuf in VS2022 HOT 1
- [Bug]: ASAN use-after-poison in TimeZoneInfo HOT 3
- [Bug]: SEGV with btree_set::equal_range HOT 2
- [Bug]: build failure on redhat/ubi8
- [Bug]: Compilation error for filesystem HOT 1
- [Bug]: raw hash set test crash on centos7 HOT 1
- [Bug]: NegativeNaN test fails on riscv64 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abseil-cpp.