question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: build from source failed on Ubuntu 20.04

See original GitHub issue
  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


Output of the build script

(pandas-dev) xxx@xxx-home-office:~/Workspace/pandas-VirosaLi$ python setup.py build_ext --inplace -j 4
running build_ext
building 'pandas._libs.interval' extension
gcc -pthread -B /home/xxx/miniconda3/envs/pandas-dev/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -Ipandas/_libs/src/klib -I/home/xxx/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpy/core/include -I/home/xxx/miniconda3/envs/pandas-dev/include/python3.8 -c pandas/_libs/interval.c -o build/temp.linux-x86_64-3.8/pandas/_libs/interval.o -Werror
building 'pandas._libs.tslibs.nattype' extension
gcc -pthread -B /home/xxx/miniconda3/envs/pandas-dev/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs/tslibs -I/home/xxx/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpy/core/include -I/home/xxx/miniconda3/envs/pandas-dev/include/python3.8 -c pandas/_libs/tslibs/nattype.c -o build/temp.linux-x86_64-3.8/pandas/_libs/tslibs/nattype.o -Werror
pandas/_libs/tslibs/nattype.c:4998:18: error: ‘__pyx_pw_6pandas_5_libs_6tslibs_7nattype_4_NaT_11__div__’ defined but not used [-Werror=unused-function]
 4998 | static PyObject *__pyx_pw_6pandas_5_libs_6tslibs_7nattype_4_NaT_11__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/interval.c:8301:18: error: ‘__pyx_pw_6pandas_5_libs_8interval_8Interval_25__div__’ defined but not used [-Werror=unused-function]
 8301 | static PyObject *__pyx_pw_6pandas_5_libs_8interval_8Interval_25__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_y) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1

Problem description

Recently I decide to try out Ubuntu 20.04. The build process failed. See the output in the section above. I replaced my user name with xxx.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MarcoGorellicommented, Jun 14, 2020

For what it’s worth, I have

$ cython --version
Cython version 0.29.16
0reactions
Botaniumcommented, Dec 8, 2020

this issue still persists with python 3.8 and above. I will provide more data to reproduce it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug #1869561 “Libreoffice Help does not work”
In the latest PPA release of Libreoffice, the Help does not work. IN version 6.3.5.2 it is OK. I the version below it...
Read more >
Build fails on ubuntu-20.04(devel) - RStudio Community
Hi, it looks like your builds are failing while installing dependencies due to a bug with the installation order when there is a...
Read more >
FocalFossa/ReleaseNotes - Ubuntu Wiki
These release notes for Ubuntu 20.04 LTS (Focal Fossa) provide an overview of the release and document the known issues with Ubuntu 20.04...
Read more >
Error installing virtualbox-dkms on Ubuntu 20 [duplicate]
It is a bug with the 5.8 kernel and Virtualbox 6.1.10: bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1891916 If you install 6.1.16 from ...
Read more >
petalinux project build failing with m4-native-1.4.18-r0 ...
While trying to port petalinux 2018.3 project compiling Ubuntu 16 host to ... Look at the code in fseeko.c, then report this to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found