apache / apache/arrow

[C++] Arrow version 5 or later fails to compile/link with gcc version 7 (or earlier)

Open
#34,341 9 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the bug, including details regarding any error messages, version, and platform.

When linking the shared library with gcc 7 I get several errors like this:

```
_ZN5arrow6ResultISt10unique_ptrINS_7compute11KernelStateESt14default_deleteIS3_EEEC2ERKNS_6StatusE.part.688' referenced in section `.text' of CMakeFiles/arrow_objlib.dir/compute/kernels/scalar_string_ascii.cc.o: defined in discarded section `.text._ZN5arrow6ResultISt10unique_ptrINS_7compute11KernelStateESt14default_deleteIS3_EEEC2ERKNS_6StatusE.part.688[_ZN5arrow6ResultISt10unique_ptrINS_7compute11KernelStateESt14default_deleteIS3_EEEC5ERKNS_6StatusE]' of CMakeFiles/arrow_objlib.dir/compute/kernels/scalar_string_ascii.cc.o`
```

### Component(s)

C++

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shared-library build and link with GCC 7 or earlier, using the linker error in the issue as the initial failure signal. Investigate the Arrow 5+ C++ build configuration and generated objects involved in the discarded-section error. Done means the shared library compiles and links successfully with the affected GCC versions.

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
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.