[ 
https://issues.apache.org/jira/browse/ARROW-9025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Hughitt updated ARROW-9025:
---------------------------------
    Description: 
Greetings!

 

I am running into errors when attempting to compile recent versions of Arrow 
(0.17.0 and nightly for 2020-06-02).

 

I believe the issue may be related to a recent update to the protobuf library 
(version 3.12.0):

 

{color:#0747a6}{{ {{...}}{color}
{color:#0747a6}{{ Scanning dependencies of target 
plasma-serialization-tests}}{color}
{color:#0747a6}{{ [ 41%] Building CXX object 
src/plasma/CMakeFiles/plasma-serialization-tests.dir/test/serialization_tests.cc.o}}{color}
{color:#0747a6}{{ In file included from /usr/include/string.h:495,}}{color}
{color:#0747a6}{{ from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-port.h:270,}}{color}
{color:#0747a6}{{ from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-internal.h:40,}}{color}
{color:#0747a6}{{ from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/gtest.h:59,}}{color}
{color:#0747a6}{{ from 
/home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:23:}}{color}
{color:#0747a6}{{ In function ‘char* strncpy(char*, const char*, 
size_t)’,}}{color}
{color:#0747a6}{{ inlined from ‘int 
plasma::TestPlasmaSerialization::CreateTemporaryFile()’ at 
/home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:85:12:}}{color}
{color:#0747a6}{{ /usr/include/bits/string_fortified.h:106:34: warning: ‘char* 
__builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 1024 
equals destination size [-Wstringop-truncation]}}{color}
{color:#0747a6}{{ 106 | return _builtin_strncpy_chk (dest, __src, __len, __bos 
(_dest));}}{color}
|{color:#0747a6}{{~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}{color}
{color:#0747a6}{{ [ 41%] Linking CXX executable 
../../release/plasma-serialization-tests}}{color}
{color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
reference to 
`google::protobuf::internal::ComputeUnknownFieldsSize(google::protobuf::internal::InternalMetadataWithArena
 const&, unsigned long, google::protobuf::internal::CachedSize*)'}}{color}
{color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
reference to `google::protobuf::internal::UnknownFieldParse(unsigned int, 
google::protobuf::internal::InternalMetadataWithArena*, char const*, 
google::protobuf::internal::ParseContext*)'}}{color}
{color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
reference to 
`google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable
 const*)'}}{color}
{color:#0747a6}{{ collect2: error: ld returned 1 exit status}}{color}
{color:#0747a6}{{ make[2]: *** 
[src/plasma/CMakeFiles/plasma-serialization-tests.dir/build.make:123: 
release/plasma-serialization-tests] Error 1}}{color}
{color:#0747a6}{{ make[1]: *** [CMakeFiles/Makefile2:1516: 
src/plasma/CMakeFiles/plasma-serialization-tests.dir/all] Error 2}}{color}
{color:#0747a6}{{ make: *** [Makefile:161: all] Error 2}}}}{color}|

{{ }}

The result is similar for the most recent nightly version of Arrow (2020-06-02).

 

Just let me know if there is anything you would like me to try / any other 
information I can help provide.

  was:
Greetings!

 

I am running into errors when attempting to compile recent versions of Arrow 
(0.17.0 and nightly for 2020-06-02).

 

I believe the issue may be related to a recent update to the protobuf library 
(version 3.12.0).

 

Error:

 

```

 {{...
Scanning dependencies of target plasma-serialization-tests
[ 41%] Building CXX object 
src/plasma/CMakeFiles/plasma-serialization-tests.dir/test/serialization_tests.cc.o
In file included from /usr/include/string.h:495,
                 from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-port.h:270,
                 from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-internal.h:40,
                 from 
/home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/gtest.h:59,
                 from 
/home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:23:
In function ‘char* strncpy(char*, const char*, size_t)’,
    inlined from ‘int plasma::TestPlasmaSerialization::CreateTemporaryFile()’ 
at 
/home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:85:12:
/usr/include/bits/string_fortified.h:106:34: warning: ‘char* 
__builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 1024 
equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 41%] Linking CXX executable ../../release/plasma-serialization-tests
/usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
`google::protobuf::internal::ComputeUnknownFieldsSize(google::protobuf::internal::InternalMetadataWithArena
 const&, unsigned long, google::protobuf::internal::CachedSize*)'
/usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
`google::protobuf::internal::UnknownFieldParse(unsigned int, 
google::protobuf::internal::InternalMetadataWithArena*, char const*, 
google::protobuf::internal::ParseContext*)'
/usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined reference to 
`google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable
 const*)'
collect2: error: ld returned 1 exit status
make[2]: *** 
[src/plasma/CMakeFiles/plasma-serialization-tests.dir/build.make:123: 
release/plasma-serialization-tests] Error 1
make[1]: *** [CMakeFiles/Makefile2:1516: 
src/plasma/CMakeFiles/plasma-serialization-tests.dir/all] Error 2
make: *** [Makefile:161: all] Error 2}}

```

 

The result is similar for the most recent nightly version of Arrow (2020-06-02).

 

Just let me know if there is anything you would like me to try / any other 
information I can help provide.


> Apache arrow fails to build with recent version of protobuf?
> ------------------------------------------------------------
>
>                 Key: ARROW-9025
>                 URL: https://issues.apache.org/jira/browse/ARROW-9025
>             Project: Apache Arrow
>          Issue Type: Bug
>    Affects Versions: 0.2.0, 0.17.0
>         Environment: - Arch Linux 5.6.15 (64-bit)
> - Protobuf 3.12.0
> - cmake 3.17.3
>            Reporter: Keith Hughitt
>            Priority: Major
>
> Greetings!
>  
> I am running into errors when attempting to compile recent versions of Arrow 
> (0.17.0 and nightly for 2020-06-02).
>  
> I believe the issue may be related to a recent update to the protobuf library 
> (version 3.12.0):
>  
> {color:#0747a6}{{ {{...}}{color}
> {color:#0747a6}{{ Scanning dependencies of target 
> plasma-serialization-tests}}{color}
> {color:#0747a6}{{ [ 41%] Building CXX object 
> src/plasma/CMakeFiles/plasma-serialization-tests.dir/test/serialization_tests.cc.o}}{color}
> {color:#0747a6}{{ In file included from /usr/include/string.h:495,}}{color}
> {color:#0747a6}{{ from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-port.h:270,}}{color}
> {color:#0747a6}{{ from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/internal/gtest-internal.h:40,}}{color}
> {color:#0747a6}{{ from 
> /home/keith/software/arrow-git/src/build/googletest_ep-prefix/include/gtest/gtest.h:59,}}{color}
> {color:#0747a6}{{ from 
> /home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:23:}}{color}
> {color:#0747a6}{{ In function ‘char* strncpy(char*, const char*, 
> size_t)’,}}{color}
> {color:#0747a6}{{ inlined from ‘int 
> plasma::TestPlasmaSerialization::CreateTemporaryFile()’ at 
> /home/keith/software/arrow-git/src/arrow/cpp/src/plasma/test/serialization_tests.cc:85:12:}}{color}
> {color:#0747a6}{{ /usr/include/bits/string_fortified.h:106:34: warning: 
> ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified 
> bound 1024 equals destination size [-Wstringop-truncation]}}{color}
> {color:#0747a6}{{ 106 | return _builtin_strncpy_chk (dest, __src, __len, 
> __bos (_dest));}}{color}
> |{color:#0747a6}{{~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}{color}
> {color:#0747a6}{{ [ 41%] Linking CXX executable 
> ../../release/plasma-serialization-tests}}{color}
> {color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
> reference to 
> `google::protobuf::internal::ComputeUnknownFieldsSize(google::protobuf::internal::InternalMetadataWithArena
>  const&, unsigned long, google::protobuf::internal::CachedSize*)'}}{color}
> {color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
> reference to `google::protobuf::internal::UnknownFieldParse(unsigned int, 
> google::protobuf::internal::InternalMetadataWithArena*, char const*, 
> google::protobuf::internal::ParseContext*)'}}{color}
> {color:#0747a6}{{ /usr/bin/ld: ../../release/libarrow.so.18.0.0: undefined 
> reference to 
> `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable
>  const*)'}}{color}
> {color:#0747a6}{{ collect2: error: ld returned 1 exit status}}{color}
> {color:#0747a6}{{ make[2]: *** 
> [src/plasma/CMakeFiles/plasma-serialization-tests.dir/build.make:123: 
> release/plasma-serialization-tests] Error 1}}{color}
> {color:#0747a6}{{ make[1]: *** [CMakeFiles/Makefile2:1516: 
> src/plasma/CMakeFiles/plasma-serialization-tests.dir/all] Error 2}}{color}
> {color:#0747a6}{{ make: *** [Makefile:161: all] Error 2}}}}{color}|
> {{ }}
> The result is similar for the most recent nightly version of Arrow 
> (2020-06-02).
>  
> Just let me know if there is anything you would like me to try / any other 
> information I can help provide.



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

Reply via email to