cameron314 / cameron314/concurrentqueue

Riscv compilation encounters a tbss error

Open
#453 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.5k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

/home/f133/tina5.0-f133/out/toolchain/riscv64-glibc-gcc-thead_20200702/bin/../lib/gcc/riscv64-unknown-linux-gnu/8.1.0/../../../../riscv64-unknown-linux-gnu/bin/ld: ./app: section .tbss lma 0xdf8c0 adjusted to 0xdf8d0

moodycamel::ConcurrentQueue queueMouseData;
queueMouseData.enqueue(10);

As long as I call enqueue, there will be a compilation error

./app: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

During runtime, an error will occur stating that the libatomic.so cannot be found

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the RISC-V toolchain using the shown queueMouseData and enqueue example. Start by comparing the linker output with the runtime library search path for libatomic.so.1; done means the example compiles and runs without the .tbss adjustment or missing-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.