Section type conflicts on Android
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.2k
- Forks
- 1.6k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 13
Description
I am getting the following error:
jemalloc/src/tsd.c:20:35: error: __emutls_t.tsd_tls causes a section type conflict with tsd_tls
__thread tsd_t JEMALLOC_TLS_MODEL tsd_tls = TSD_INITIALIZER;
^
jemalloc/src/tsd.c:20:35: note: 'tsd_tls' was declared here
When building on the following targets:
arm-linux-androideabiarmv7-linux-androideabi
Using:
./configure --disable-cxx --with-jemalloc-prefix=_rjem_ --host=arm-linux-androideabi --build=x86_64-unknown-linux-gnu build_alias=x86_64-unknown-linux-gnu host_alias=arm-linux-androideabi CC=arm-linux-androideabi-gcc
Building in debug mode, by passing CFLAGS=-O0, succeeds.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with jemalloc/src/tsd.c, especially the tsd_tls declaration shown in the error, and reproduce the build using the listed arm-linux-androideabi configure command with CFLAGS=-O0 and without it. Compare the compiler diagnostics and inspect the surrounding TLS configuration to determine the expected fix and a reproducible test for both Android targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100