Skip to content

ARROW-9004: [C++][Gandiva] Support building with LLVM 10 - #7323

Closed
kou wants to merge 4 commits into
apache:masterfrom
kou:cpp-llvm-10
Closed

kou wants to merge 4 commits into
apache:masterfrom
kou:cpp-llvm-10

Conversation

@kou

@kou kou commented Jun 2, 2020

Copy link
Copy Markdown
Member

LLVM 7 and 8 are still supported.

Clang Tools still use 8 because Clang Tools 10 reports an error for
RaipdJSON in sanitizer build. We should work on this as a separated
task.

e.g.:

https://github.com/kou/arrow/runs/725786805?check_suite_focus=true

/usr/include/rapidjson/internal/stack.h:117:13: runtime error: applying non-zero offset 16 to null pointer
     #0 0x7f4d336c0e2c in void arrow::rapidjson::internal::Stack<arrow::rapidjson::CrtAllocator>::Reserve<arrow::rapidjson::GenericValue<arrow::rapidjson::UTF8<char>, arrow::rapidjson::MemoryPoolAllocator<arrow::rapidjson::CrtAllocator> > >(unsigned long) /usr/include/rapidjson/internal/stack.h:117:13

Ubuntu 16.04 still use LLVM 8 because LLVM 10 requires C++ 14 but g++
5 on Ubuntu 16.04 is too old to use
cpp/src/arrow/vendored/datetime/date.h.

CentOS 8 packages still use LLVM 8 because there are no packages for
LLVM 10 on CentOS 8.

manylinux1 still use LLVM 8 because g++ 4.8.2 is old to build LLVM 9
or later.

Conda package for Windows still use LLVM 8 because llvmdev 9 or later
use Visual Studio 2017. We need to use Visual Studio 2017 not 2015 to
use llvmdev 9 or later.

LLVM 7 and 8 are still supported.

Clang Tools still use 8 because Clang Tools 10 reports an error for
RaipdJSON in sanitizer build. We should work on this as a separated
task.

e.g.:

https://github.com/kou/arrow/runs/725786805?check_suite_focus=true

    /usr/include/rapidjson/internal/stack.h:117:13: runtime error: applying non-zero offset 16 to null pointer
         #0 0x7f4d336c0e2c in void arrow::rapidjson::internal::Stack<arrow::rapidjson::CrtAllocator>::Reserve<arrow::rapidjson::GenericValue<arrow::rapidjson::UTF8<char>, arrow::rapidjson::MemoryPoolAllocator<arrow::rapidjson::CrtAllocator> > >(unsigned long) /usr/include/rapidjson/internal/stack.h:117:13

Ubuntu 16.04 still use LLVM 8 because LLVM 10 requires C++ 14 but g++
5 on Ubuntu 16.04 is too old to use
cpp/src/arrow/vendored/datetime/date.h.

CentOS 8 packages still use LLVM 8 because there are no packages for
LLVM 10 on CentOS 8.

manylinux1 still use LLVM 8 because g++ 4.8.2 is old to build LLVM 9
or later.

Conda package for Windows still use LLVM 8 because llvmdev 9 or later
use Visual Studio 2017. We need to use Visual Studio 2017 not 2015 to
use llvmdev 9 or later.
@github-actions

github-actions Bot commented Jun 2, 2020

Copy link
Copy Markdown

@kou

This comment has been minimized.

@github-actions

This comment has been minimized.

@pprudhvi

pprudhvi commented Jun 2, 2020

Copy link
Copy Markdown
Contributor

Didn't we recently upgrade to llvm 9? Why jump to llvm10 so early?

@wesm

wesm commented Jun 2, 2020 •

Copy link
Copy Markdown
Member

@pprudhvi as it says in the PR description LLVM 7 and 8 are still supported. I changed the PR title to reflect that this is "supporting LLVM 10" not forcing people to upgrade to LLVM 10.

@wesm wesm changed the title ARROW-9004: [C++][Gandiva] Upgrade to LLVM 10 ARROW-9004: [C++][Gandiva] Support building with LLVM 10 Jun 2, 2020
@kou

kou commented Jun 2, 2020

Copy link
Copy Markdown
Member Author

@pprudhvi Because I found a trouble with Gandiva + LLVM 9: #7280 (comment)

I need help from Gandiva experts or LLVM experts to solve it but nobody doesn't help for now.

I started working on LLVM 10 support to break the problem down. If the problem is reproducible with LLVM 10, it will be a Gandiva problem. If the problem isn't reproducible with LLVM 10, it will be a LLVM 9 problem.

The problem isn't occurred with LLVM 10. It may be a LLVM 9 problem.

If you think that we should support LLVM 9, could you take a look #7280 (comment) ?

@kou

kou commented Jun 2, 2020

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit -g nightly

@github-actions

github-actions Bot commented Jun 2, 2020

Copy link
Copy Markdown

Revision: 8bfbbd8

Submitted crossbow builds: ursa-labs/crossbow @ actions-282

Task Status
centos-6-amd64 Github Actions
centos-7-aarch64 TravisCI
centos-7-amd64 Github Actions
centos-8-aarch64 TravisCI
centos-8-amd64 Github Actions
conda-linux-gcc-py36 Azure
conda-linux-gcc-py37 Azure
conda-linux-gcc-py38 Azure
conda-osx-clang-py36 Azure
conda-osx-clang-py37 Azure
conda-osx-clang-py38 Azure
conda-win-vs2015-py36 Azure
conda-win-vs2015-py37 Azure
conda-win-vs2015-py38 Azure
debian-buster-amd64 Github Actions
debian-buster-arm64 TravisCI
debian-stretch-amd64 Github Actions
debian-stretch-arm64 TravisCI
gandiva-jar-osx TravisCI
gandiva-jar-xenial TravisCI
homebrew-cpp TravisCI
homebrew-r-autobrew TravisCI
nuget Github Actions
test-conda-cpp Github Actions
test-conda-cpp-valgrind Github Actions
test-conda-python-3.6 Github Actions
test-conda-python-3.6-pandas-0.23 Github Actions
test-conda-python-3.7 Github Actions
test-conda-python-3.7-dask-latest Github Actions
test-conda-python-3.7-hdfs-2.9.2 Github Actions
test-conda-python-3.7-kartothek-latest Github Actions
test-conda-python-3.7-kartothek-master Github Actions
test-conda-python-3.7-pandas-latest Github Actions
test-conda-python-3.7-pandas-master Github Actions
test-conda-python-3.7-spark-master Github Actions
test-conda-python-3.7-turbodbc-latest Github Actions
test-conda-python-3.7-turbodbc-master Github Actions
test-conda-python-3.8 Github Actions
test-conda-python-3.8-dask-master Github Actions
test-conda-python-3.8-jpype Github Actions
test-conda-python-3.8-pandas-latest Github Actions
test-conda-r-4.0 Github Actions
test-debian-10-cpp CircleCI
test-debian-10-go-1.12 Azure
test-debian-10-python-3 Azure
test-debian-c-glib CircleCI
test-debian-ruby CircleCI
test-fedora-32-cpp CircleCI
test-fedora-32-python-3 Azure
test-r-linux-as-cran Github Actions
test-r-rhub-ubuntu-gcc-release Azure
test-r-rocker-r-base-latest Azure
test-r-rstudio-r-base-3.6-bionic Azure
test-r-rstudio-r-base-3.6-centos6 Azure
test-r-rstudio-r-base-3.6-centos8 Azure
test-r-rstudio-r-base-3.6-opensuse15 Azure
test-r-rstudio-r-base-3.6-opensuse42 Azure
test-ubuntu-16.04-cpp CircleCI
test-ubuntu-18.04-cpp CircleCI
test-ubuntu-18.04-cpp-cmake32 CircleCI
test-ubuntu-18.04-cpp-release CircleCI
test-ubuntu-18.04-cpp-static CircleCI
test-ubuntu-18.04-docs Azure
test-ubuntu-18.04-python-3 Azure
test-ubuntu-18.04-r-sanitizer Azure
test-ubuntu-c-glib CircleCI
test-ubuntu-ruby Azure
ubuntu-bionic-amd64 Github Actions
ubuntu-bionic-arm64 TravisCI
ubuntu-eoan-amd64 Github Actions
ubuntu-eoan-arm64 TravisCI
ubuntu-focal-amd64 Github Actions
ubuntu-focal-arm64 TravisCI
ubuntu-xenial-amd64 Github Actions
ubuntu-xenial-arm64 TravisCI
wheel-manylinux1-cp35m Azure
wheel-manylinux1-cp36m Azure
wheel-manylinux1-cp37m Azure
wheel-manylinux1-cp38 Azure
wheel-manylinux2010-cp35m Azure
wheel-manylinux2010-cp36m Azure
wheel-manylinux2010-cp37m Azure
wheel-manylinux2010-cp38 Azure
wheel-manylinux2014-cp35m Azure
wheel-manylinux2014-cp36m Azure
wheel-manylinux2014-cp37m Azure
wheel-manylinux2014-cp38 Azure
wheel-osx-cp35m TravisCI
wheel-osx-cp36m TravisCI
wheel-osx-cp37m TravisCI
wheel-osx-cp38 TravisCI
wheel-win-cp35m Appveyor
wheel-win-cp36m Appveyor
wheel-win-cp37m Appveyor
wheel-win-cp38 Appveyor

@kou

kou commented Jun 3, 2020

Copy link
Copy Markdown
Member Author

The "Python Cron / AMD64 Conda Python 3.7 Dask latest" failure is unrelated to this change.

Some nightly failures are also unrelated to this change.

I want to merge this in this week if nobody objects it.

@wesm

wesm commented Jun 3, 2020

Copy link
Copy Markdown
Member

No objections from me

@kou

kou commented Jun 5, 2020

Copy link
Copy Markdown
Member Author

No objections.
I'll merge this.

@kou kou closed this in 6a1cdbc Jun 5, 2020
@kou
kou deleted the cpp-llvm-10 branch June 5, 2020 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants