You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2021/08/03 20:27:00 UTC

[jira] [Comment Edited] (ORC-762) build failed on AArch64, Fedora 33

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

Dongjoon Hyun edited comment on ORC-762 at 8/3/21, 8:26 PM:
------------------------------------------------------------

I tested with `main` branch and the following is the result. 
{code}
$ docker run --rm -it -v $PWD:/orc -w /orc fedora:33 /bin/bash
[root@faef2a5f7dff orc]# dnf install -y cmake g++ java-11-openjdk which
Fedora 33 - aarch64  ...
...
[root@faef2a5f7dff orc]# mkdir build
[root@faef2a5f7dff orc]# cd build
[root@faef2a5f7dff build]# cmake ..
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
...
OS name: "linux", version: "5.10.25-linuxkit", arch: "aarch64", family: "unix"
-- Configuring done
-- Generating done
-- Build files have been written to: /orc/build

[root@faef2a5f7dff build]# make package
Scanning dependencies of target snappy_ep
[  1%] Creating directories for 'snappy_ep'
[  2%] Performing download step (download, verify and extract) for 'snappy_ep'
-- snappy_ep download command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-download-*.log
[  2%] No update step for 'snappy_ep'
[  3%] No patch step for 'snappy_ep'
[  4%] Performing configure step for 'snappy_ep'
-- snappy_ep configure command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-configure-*.log
[  4%] Performing build step for 'snappy_ep'
-- snappy_ep build command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build-*.log
[  5%] Performing install step for 'snappy_ep'
-- snappy_ep install command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-install-*.log
[  5%] Completed 'snappy_ep'
[  5%] Built target snappy_ep
Scanning dependencies of target lz4_ep
...
[ 61%] Linking CXX static library liborc.a
[ 61%] Built target orc
Scanning dependencies of target create-test-files
[ 61%] Building CXX object c++/test/CMakeFiles/create-test-files.dir/CreateTestFiles.cc.o
[ 62%] Linking CXX executable create-test-files
[ 62%] Built target create-test-files
Scanning dependencies of target orc-test
...
[ 83%] Linking CXX executable orc-test
[ 83%] Built target orc-test
Scanning dependencies of target java_build
[ 84%] Build the java directory
...
{code}

There was no issue from C++ site while Java site has an issue with `com.google.protobuf:protoc:2.5.0`. I'm looking at that.


was (Author: dongjoon):
I tested with `main` branch and the following is the result. 
{code}
$ docker run --rm -it -v $PWD:/orc -w /orc fedora:33 /bin/bash
[root@32f1a9485aae orc]# dnf install -y cmake g++ java-11-openjdk which
[root@faef2a5f7dff orc]# dnf install -y cmake g++ java-11-openjdk which
Fedora 33 - aarch64  ...
...
[root@faef2a5f7dff orc]# mkdir build
[root@faef2a5f7dff orc]# cd build
[root@faef2a5f7dff build]# cmake ..
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
...
OS name: "linux", version: "5.10.25-linuxkit", arch: "aarch64", family: "unix"
-- Configuring done
-- Generating done
-- Build files have been written to: /orc/build

[root@faef2a5f7dff build]# make package
Scanning dependencies of target snappy_ep
[  1%] Creating directories for 'snappy_ep'
[  2%] Performing download step (download, verify and extract) for 'snappy_ep'
-- snappy_ep download command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-download-*.log
[  2%] No update step for 'snappy_ep'
[  3%] No patch step for 'snappy_ep'
[  4%] Performing configure step for 'snappy_ep'
-- snappy_ep configure command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-configure-*.log
[  4%] Performing build step for 'snappy_ep'
-- snappy_ep build command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build-*.log
[  5%] Performing install step for 'snappy_ep'
-- snappy_ep install command succeeded.  See also /orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-install-*.log
[  5%] Completed 'snappy_ep'
[  5%] Built target snappy_ep
Scanning dependencies of target lz4_ep
...
[ 61%] Linking CXX static library liborc.a
[ 61%] Built target orc
Scanning dependencies of target create-test-files
[ 61%] Building CXX object c++/test/CMakeFiles/create-test-files.dir/CreateTestFiles.cc.o
[ 62%] Linking CXX executable create-test-files
[ 62%] Built target create-test-files
Scanning dependencies of target orc-test
...
[ 83%] Linking CXX executable orc-test
[ 83%] Built target orc-test
Scanning dependencies of target java_build
[ 84%] Build the java directory
...
{code}

There was no issue from C++ site while Java site has an issue with `com.google.protobuf:protoc:2.5.0`. I'm looking at that.

> build failed on AArch64, Fedora 33 
> -----------------------------------
>
>                 Key: ORC-762
>                 URL: https://issues.apache.org/jira/browse/ORC-762
>             Project: ORC
>          Issue Type: Bug
>            Reporter: Lutz Weischer
>            Assignee: Dongjoon Hyun
>            Priority: Major
>
> 'make package' fails: 
> /usr/bin/cmake -S/home/jw/apache/orc -B/home/jw/apache/orc/build --check-build-system CMakeFiles/Makefile.cmake 0
> /usr/bin/cmake -E cmake_progress_start /home/jw/apache/orc/build/CMakeFiles /home/jw/apache/orc/build//CMakeFiles/progress.marks
> make  -f CMakeFiles/Makefile2 all
> make[1]: Entering directory '/home/jw/apache/orc/build'
> make  -f CMakeFiles/snappy_ep.dir/build.make CMakeFiles/snappy_ep.dir/depend
> make[2]: Entering directory '/home/jw/apache/orc/build'
> cd /home/jw/apache/orc/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/jw/apache/orc /home/jw/apache/orc /home/jw/apache/orc/build /home/jw/apache/orc/build /home/jw/apache/orc/build/CMakeFiles/snappy_ep.dir/DependInfo.cmake --color=
> make[2]: Leaving directory '/home/jw/apache/orc/build'
> make  -f CMakeFiles/snappy_ep.dir/build.make CMakeFiles/snappy_ep.dir/build
> make[2]: Entering directory '/home/jw/apache/orc/build'
> [  0%] Performing build step for 'snappy_ep'
> cd /home/jw/apache/orc/build/snappy_ep-prefix/src/snappy_ep-build && /usr/bin/cmake -Dmake=make -P /home/jw/apache/orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build-RELWITHDEBINFO.cmake
> CMake Error at /home/jw/apache/orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build-RELWITHDEBINFO.cmake:49 (message):
>   Command failed: 2
>    'make'
>   See also
>     /home/jw/apache/orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build-*.log
> make[2]: *** [CMakeFiles/snappy_ep.dir/build.make:131: snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-build] Error 1
> make[2]: Leaving directory '/home/jw/apache/orc/build'
> make[1]: *** [CMakeFiles/Makefile2:310: CMakeFiles/snappy_ep.dir/all] Error 2
> make[1]: Leaving directory '/home/jw/apache/orc/build'
> make: *** [Makefile:182: all] Error 2
> [jw@cn05 build]$ 
> The mentioned log contains: 
> /usr/bin/ld: CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: in function `snappy::Snappy_ZeroOffsetCopy_Test::Test>snappy_unittest.cc:(.text+0x5054): undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11]>/usr/bin/ld: snappy_unittest.cc:(.text+0x507c): undefined reference to `testing::internal::AssertHelper::AssertHelper(t>/usr/bin/ld: snappy_unittest.cc:(.text+0x5084): undefined reference to `testing::Message::Message()'                    /usr/bin/ld: snappy_unittest.cc:(.text+0x5090): undefined reference to `testing::internal::AssertHelper::operator=(test>/usr/bin/ld: snappy_unittest.cc:(.text+0x50a0): undefined reference to `testing::internal::AssertHelper::~AssertHelper(>/usr/bin/ld: snappy_unittest.cc:(.text+0x50d0): undefined reference to `testing::internal::AssertHelper::~AssertHelper(>/usr/bin/ld: CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: in function `snappy::Snappy_ZeroOffsetCopyValidation_>snappy_unittest.cc:(.text+0x518c): undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11]>/usr/bin/ld: snappy_unittest.cc:(.text+0x51b4): undefined reference to `testing::internal::AssertHelper::AssertHelper(t>/usr/bin/ld: snappy_unittest.cc:(.text+0x51bc): undefined reference to `testing::Message::Message()'                    /usr/bin/ld: snappy_unittest.cc:(.text+0x51c8): undefined reference to `testing::internal::AssertHelper::operator=(test>/usr/bin/ld: snappy_unittest.cc:(.text+0x51d8): undefined reference to `testing::internal::AssertHelper::~AssertHelper(>/usr/bin/ld: snappy_unittest.cc:(.text+0x5208): undefined reference to `testing::internal::AssertHelper::~AssertHelper(>/usr/bin/ld: CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: in function `snappy::Snappy_FindMatchLength_Test::Tes>snappy_unittest.cc:(.text+0x5388): undefined reference to `testing::internal::AssertHelper::AssertHelper(testing::TestP>/usr/bin/ld: snappy_unittest.cc:(.text+0x5390): undefined reference to `testing::Message::Message()'
> ...



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