GithubHelp home page GithubHelp logo

Comments (8)

Chilledheart avatar Chilledheart commented on June 3, 2024

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.

Chilledheart avatar Chilledheart commented on June 3, 2024

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.

derekmauro avatar derekmauro commented on June 3, 2024

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.

Chilledheart avatar Chilledheart commented on June 3, 2024

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.

Chilledheart avatar Chilledheart commented on June 3, 2024

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.

Chilledheart avatar Chilledheart commented on June 3, 2024

I tried another sysroot from chromium v119.0.6045.66 buildbed (debian bullseye) and still failed with libc-2.31.so.

https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/1b857baabd7999ff0d6949a8973f896836ac45ac/debian_bullseye_mipsel_sysroot.tar.xz

from abseil-cpp.

Chilledheart avatar Chilledheart commented on June 3, 2024

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.

Chilledheart avatar Chilledheart commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.