You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/05/05 00:26:00 UTC

[jira] [Created] (ARROW-8700) [C++] static libgflags.a fails to link properly in gcc 4.x

Wes McKinney created ARROW-8700:
-----------------------------------

             Summary: [C++] static libgflags.a fails to link properly in gcc 4.x
                 Key: ARROW-8700
                 URL: https://issues.apache.org/jira/browse/ARROW-8700
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Wes McKinney


I am seeing this with gcc 4.8 on Ubuntu 18.04

{code}
$ ninja
[55/179] Linking CXX executable release/arrow-json-integration-test
FAILED: release/arrow-json-integration-test 
: && /usr/bin/ccache /usr/bin/g++-4.8  -O3 -DNDEBUG  -Wall -Wno-attributes -msse4.2  -O3 -DNDEBUG  -rdynamic src/arrow/ipc/CMakeFiles/arrow-json-integration-test.dir/json_integration_test.cc.o  -o release/arrow-json-integration-test  -Wl,-rpath,/home/wesm/code/arrow/cpp/build-4.8/release release/libarrow_testing.so.18.0.0 release/libarrow.so.18.0.0 -ldl release//libgtest_main.so release//libgtest.so release//libgmock.so boost_ep-prefix/src/boost_ep/stage/lib/libboost_filesystem.a boost_ep-prefix/src/boost_ep/stage/lib/libboost_system.a -ldl ../bundled/gflags_ep-prefix/src/gflags_ep/lib/libgflags.a jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a -pthread -lrt -lpthread && :
src/arrow/ipc/CMakeFiles/arrow-json-integration-test.dir/json_integration_test.cc.o: In function `_GLOBAL__sub_I__ZN3fLS11FLAGS_arrowE':
json_integration_test.cc:(.text.startup+0x1cc): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)'
json_integration_test.cc:(.text.startup+0x275): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)'
json_integration_test.cc:(.text.startup+0x317): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, char const*, std::string*, std::string*)'
collect2: error: ld returned 1 exit status
[88/179] Building CXX object src/arrow/ipc/CMakeFiles/arrow-ipc-read-write-test.dir/read_write_test.cc.o
ninja: build stopped: subcommand failed.
{code}

CMake invocation

{code}
$ cmake .. -GNinja -DARROW_GANDIVA=ON -DARROW_CSV=ON -DARROW_BUILD_TESTS=ON -DARROW_BUILD_BENCHMARKS=ON
{code}



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