Repository navigation
Description
https://travis-ci.org/apache/arrow/jobs/488317992
The error appears to be some sort of linker or warning as error issue?:
{{cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/travis/build/apache/arrow/python/pyarrow/include/arrow/python/platform.h:26:0,
from pyarrow_cython_example.cpp:653:
/home/travis/build/apache/arrow/pyarrow-test-2.7/include/python2.7/datetime.h:188:25: warning: ‘PyDateTimeAPI’ defined but not used [-Wunused-variable]
static PyDateTime_CAPI *PyDateTimeAPI = NULL;
^
pyarrow_cython_example.cpp:2828:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_array’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_array)(std::shared_ptr< arrow::Array> const &); /proto/
^
pyarrow_cython_example.cpp:2829:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_chunked_array)(std::shared_ptr< arrow::ChunkedArray> const &); /proto/
^
pyarrow_cython_example.cpp:2830:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_batch)(std::shared_ptr< arrow::RecordBatch> const &); /proto/
^
pyarrow_cython_example.cpp:2831:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_buffer)(std::shared_ptr< arrow::Buffer> const &); /proto/
^
pyarrow_cython_example.cpp:2832:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_column’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_column)(std::shared_ptr< arrow::Column> const &); /proto/
^
pyarrow_cython_example.cpp:2833:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_data_type)(std::shared_ptr< arrow::DataType> const &); /proto/
^
pyarrow_cython_example.cpp:2834:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_field’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_field)(std::shared_ptr< arrow::Field> const &); /proto/
^
pyarrow_cython_example.cpp:2835:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_resizable_buffer)(std::shared_ptr< arrow::ResizableBuffer> const &); /proto/
^
pyarrow_cython_example.cpp:2836:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_schema)(std::shared_ptr< arrow::Schema> const &); /proto/
^
pyarrow_cython_example.cpp:2837:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_table’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_table)(std::shared_ptr< arrow::Table> const &); /proto/
^
pyarrow_cython_example.cpp:2838:20: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor’ defined but not used [-Wunused-variable]
static PyObject *(*__pyx_f_7pyarrow_3lib_pyarrow_wrap_tensor)(std::shared_ptr< arrow::Tensor> const &); /proto/
^
pyarrow_cython_example.cpp:2840:47: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::RecordBatch> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_batch)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2841:42: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Buffer> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_buffer)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2842:42: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_column’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Column> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_column)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2843:44: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_data_type’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::DataType> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_data_type)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2844:41: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Field> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_field)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2845:42: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Schema> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_schema)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2846:41: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Table> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_table)(PyObject *); /proto/
^
pyarrow_cython_example.cpp:2847:42: warning: ‘__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor’ defined but not used [-Wunused-variable]
static std::shared_ptr< arrow::Tensor> (*__pyx_f_7pyarrow_3lib_pyarrow_unwrap_tensor)(PyObject *); /proto/
^
/home/travis/build/apache/arrow/pyarrow-test-2.7/compiler_compat/ld: build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: unable to initialize decompress status for section .debug_info
/home/travis/build/apache/arrow/pyarrow-test-2.7/compiler_compat/ld: build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: unable to initialize decompress status for section .debug_info
/home/travis/build/apache/arrow/pyarrow-test-2.7/compiler_compat/ld: build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: unable to initialize decompress status for section .debug_info
/home/travis/build/apache/arrow/pyarrow-test-2.7/compiler_compat/ld: build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
}}
Reporter: Micah Kornfield / @emkornfield
Assignee: Wes McKinney / @wesm
PRs and other links:
Note: This issue was originally created as ARROW-4469. Please see the migration documentation for further details.
Activity
asfimport commentedon Feb 4, 2019
Antoine Pitrou / @pitrou:
I don't think the warnings are related. Looking at the last line ("""build/temp.linux-x86_64-2.7/pyarrow_cython_example.o: file not recognized: file format not recognized"""), I'm afraid this might be a compiler toolchain issue. @kszucs @xhochy
asfimport commentedon Feb 4, 2019
Wes McKinney / @wesm:
Cython also just released on conda-forge 3 days ago, in case it's version-related
asfimport commentedon Feb 4, 2019
Wes McKinney / @wesm:
Oof so binutils 2.32 was just released
https://github.com/conda-forge/binutils-feedstock/blob/master/recipe/meta.yaml
I'd guess that's the problem. I'll see if pinning binutils to 2.31 fixes it in the meantime
asfimport commentedon Feb 4, 2019
Wes McKinney / @wesm:
Issue resolved by pull request 3554
#3554
asfimport commentedon Feb 4, 2019
Wes McKinney / @wesm:
So it appears that binutils >= 2.32 is no longer fully compatible with the gcc 5.4 in Ubuntu Xenial, see discussion in
https://gitter.im/conda-forge/conda-forge.github.io?at=5c58980a9221b9382d15022a
I would say this bodes poorly for our continued "mixed" use of system compilers and conda-forge packages. If we want to continue using conda-forge packages we probably need to use the same compiler toolchain
In principle this is OK with me as long as we run nightlies with
gcc 4.8.x
gcc 5.4.x
etc. It would be a mistake to let these compiler targets bitrot