Trying to build for PPC64LE, test compilation is failing
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.2k
- Forks
- 1.6k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 13
Description
Log and Config: https://travis-ci.com/github/ezeeyahoo/jemalloc/jobs/371836005
Build language: generic
Build dist: precise
Build id: 179638632
Job id: 371836005
Runtime kernel version: 5.4.28
travis-build version: 1a7f9ec9
Build image provisioning date and time
Mon May 25 07:49:00 UTC 2020
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
$ export CC=gcc-8
$ export CXX=g++-8
$ export COMPILER_FLAGS=""
$ export CONFIGURE_FLAGS=""
$ export EXTRA_CFLAGS="-Werror -Wno-array-bounds"
$ autoconf
$ scripts/gen_travis.py > travis_script && diff .travis.yml travis_script
$ ./configure ${COMPILER_FLAGS:+ CC="$CC $COMPILER_FLAGS" CXX="$CXX $COMPILER_FLAGS" } $CONFIGURE_FLAGS
$ make -j3
$ make -j3 tests
In file included from test/include/test/jemalloc_test.h:128,
from test/unit/flat_bitmap.c:1:
test/unit/flat_bitmap.c: In function 'expect_iter_results_at.constprop':
test/include/test/test.h:6:5: error: 'simple_iter_len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (!(a_ cmp b_)) { \
^
test/unit/flat_bitmap.c:465:9: note: 'simple_iter_len' was declared here
size_t simple_iter_len;
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 test/unit/flat_bitmap.c around the expect_iter_results_at function and the simple_iter_len declaration at line 465; review the assertion macro in test/include/test/test.h. Run make -j3 tests with the reported PPC64LE compiler flags and confirm that the test suite compiles without the maybe-uninitialized error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100