[ 
https://issues.apache.org/jira/browse/IMPALA-9985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17172543#comment-17172543
 ] 

Laszlo Gaal commented on IMPALA-9985:
-------------------------------------

The two Red Hat tickets state that the glibc bug causing both problems were 
fixed, and a new glibc release was shipped. Checking the glibc versions 
released in Centos 8.1 and the recent 8.2 version shows that glibc was indeed 
bumped from glibc-2.28-72.el8 (in 8.1) to glibc-2.28-101.el8 (in 8.2).
Rebuilding the toolchain with Centos 8.2 (thus using glibc-2.28-101 during gcc 
compilation) fixes the build break.
Interestingly no other fixes were necessary, even the manual removal of the 
file "​lib/gcc/x86_64-pc-linux-gnu/7.5.0/include-fixed/bits/statx.h" (which was 
still generated) was not necessary when using Centos 8.2 as the build and test 
platform.
This means the eventual fix could be delegated to the toolchain, then picking 
up the new build of the toolchain for Impala. This would of course change the 
minimum Centos 8 version required for Impala to Centos/Red Hat 8.2 (and 
derivatives).

> CentOS 8 builds break with __glibc_has_include ("__linux__/stat.h")
> -------------------------------------------------------------------
>
>                 Key: IMPALA-9985
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9985
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 4.0
>            Reporter: Laszlo Gaal
>            Assignee: Laszlo Gaal
>            Priority: Blocker
>
> Currently Docker-based builds are running; they are breaking early in the 
> build, during virtualenv construction, when the Python bitarray module is 
> compiled:
> {code}
> 2020-07-21 07:44:32.913375     Complete output from command 
> /home/impdev/Impala/bin/../infra/python/env-gcc7.5.0/bin/python -c "import 
> setuptools, 
> tokenize;__file__='/tmp/pip-build-NK6_23/bitarray/setup.py';exec(compile(getattr(tokenize,
>  'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
> install --record /tmp/pip-L3NjnK-record/install-record.txt 
> --single-version-externally-managed --compile --install-headers 
> /home/impdev/Impala/bin/../infra/python/env-gcc7.5.0/include/site/python2.7/bitarray:
> 2020-07-21 07:44:32.913393     running install
> 2020-07-21 07:44:32.913411     running build
> 2020-07-21 07:44:32.913430     running build_py
> 2020-07-21 07:44:32.913447     creating build
> 2020-07-21 07:44:32.913476     creating build/lib.linux-x86_64-2.7
> 2020-07-21 07:44:32.913510     creating build/lib.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.913553     copying bitarray/util.py -> 
> build/lib.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.913599     copying bitarray/test_util.py -> 
> build/lib.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.913645     copying bitarray/__init__.py -> 
> build/lib.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.913695     copying bitarray/test_bitarray.py -> 
> build/lib.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.913715     running build_ext
> 2020-07-21 07:44:32.913746     building 'bitarray._bitarray' extension
> 2020-07-21 07:44:32.913775     creating build/temp.linux-x86_64-2.7
> 2020-07-21 07:44:32.913809     creating build/temp.linux-x86_64-2.7/bitarray
> 2020-07-21 07:44:32.914022     ccache 
> /home/impdev/Impala/toolchain/toolchain-packages-gcc7.5.0/gcc-7.5.0/bin/gcc 
> -fno-strict-aliasing -I/usr/include/ncurses 
> -I/mnt/build/bzip2-1.0.6-p2/include -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC 
> -I/home/impdev/Impala/toolchain/toolchain-packages-gcc7.5.0/python-2.7.16/include/python2.7
>  -c bitarray/_bitarray.c -o build/temp.linux-x86_64-2.7/bitarray/_bitarray.o
> 2020-07-21 07:44:32.914059     In file included from 
> /usr/include/sys/stat.h:446:0,
> 2020-07-21 07:44:32.914135                      from 
> /home/impdev/Impala/toolchain/toolchain-packages-gcc7.5.0/python-2.7.16/include/python2.7/pyport.h:390,
> 2020-07-21 07:44:32.914210                      from 
> /home/impdev/Impala/toolchain/toolchain-packages-gcc7.5.0/python-2.7.16/include/python2.7/Python.h:61,
> 2020-07-21 07:44:32.914244                      from bitarray/_bitarray.c:12:
> 2020-07-21 07:44:32.914350     
> /home/impdev/Impala/toolchain/toolchain-packages-gcc7.5.0/gcc-7.5.0/lib/gcc/x86_64-pc-linux-gnu/7.5.0/include-fixed/bits/statx.h:38:25:
>  error: missing binary operator before token "("
> 2020-07-21 07:44:32.914384      #if __glibc_has_include ("__linux__/stat.h")
> 2020-07-21 07:44:32.914408                              ^
> 2020-07-21 07:44:32.914444     error: command 'ccache' failed with exit 
> status 1
> 20{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to