Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Building Cura from source fails with cpython _cursus_modules

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
NTwoO
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Fri Jun 01, 2007 9:58 pm

Building Cura from source fails with cpython _cursus_modules

  • Quote

Post by NTwoO » Tue Jun 10, 2025 7:28 pm

During my attempts to solve my other issue posted here , I decided to build Cura from scratch. Setting up Conan and the build environment worked reasonably, but during the build of cpython, the following errors were produced:

Code: Select all

gcc  -fno-strict-overflow -DNDEBUG -g -O3 -Wall -m64 -O3  -m64 -O3  -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden  -I/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Include/internal -IObjects -IInclude -IPython -I. -I/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Include -DNDEBUG -I/$HOME/.conan2/p/b/opensf6d1f6a823bd9/p/include -I/$HOME/.conan2/p/xz_ut985a6499e6db2/p/include -I/$HOME/.conan2/p/b/sqlit69eb6c7d0d28d/p/include -I/$HOME/.conan2/p/b/gdbm107f4c609a061/p/include -I/$HOME/.conan2/p/bzip20dfe59728d3af/p/include -I/$HOME/.conan2/p/b/libxc8687136a70870/p/include -I/$HOME/.conan2/p/b/util-5ab6953e5399b/p/include -I/$HOME/.conan2/p/b/util-5ab6953e5399b/p/include/uuid -I/$HOME/.conan2/p/b/mpdec0fd235e844b9e/p/include -I/$HOME/.conan2/p/b/libfff45db4787d8cc/p/include -I/$HOME/.conan2/p/b/expatf24faa2d26fdb/p/include -I/$HOME/.conan2/p/zlib81b707e06252b/p/include -DLZMA_API_STATIC -DFFI_BUILDING -DXML_STATIC  -DNDEBUG -I/$HOME/.conan2/p/b/opensf6d1f6a823bd9/p/include -I/$HOME/.conan2/p/xz_ut985a6499e6db2/p/include -I/$HOME/.conan2/p/b/sqlit69eb6c7d0d28d/p/include -I/$HOME/.conan2/p/b/gdbm107f4c609a061/p/include -I/$HOME/.conan2/p/bzip20dfe59728d3af/p/include -I/$HOME/.conan2/p/b/libxc8687136a70870/p/include -I/$HOME/.conan2/p/b/util-5ab6953e5399b/p/include -I/$HOME/.conan2/p/b/util-5ab6953e5399b/p/include/uuid -I/$HOME/.conan2/p/b/mpdec0fd235e844b9e/p/include -I/$HOME/.conan2/p/b/libfff45db4787d8cc/p/include -I/$HOME/.conan2/p/b/expatf24faa2d26fdb/p/include -I/$HOME/.conan2/p/zlib81b707e06252b/p/include -DLZMA_API_STATIC -DFFI_BUILDING -DXML_STATIC -fPIC -fPIC -c /$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c -o Modules/_cursesmodule.o
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_addch_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:763:9: error: implicit declaration of function ‘setcchar’; did you mean ‘getwchar’? [-Wimplicit-function-declaration]
  763 |         setcchar(&wcval, wstr, attr, PAIR_NUMBER(attr), NULL);
      |         ^~~~~~~~
      |         getwchar
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:765:19: error: implicit declaration of function ‘mvwadd_wch’; did you mean ‘mvwaddch’? [-Wimplicit-function-declaration]
  765 |             rtn = mvwadd_wch(self->win,y,x, &wcval);
      |                   ^~~~~~~~~~
      |                   mvwaddch
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:767:19: error: implicit declaration of function ‘wadd_wch’; did you mean ‘waddch’? [-Wimplicit-function-declaration]
  767 |             rtn = wadd_wch(self->win, &wcval);
      |                   ^~~~~~~~
      |                   waddch
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_addstr_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:847:19: error: implicit declaration of function ‘mvwaddwstr’; did you mean ‘mvwaddstr’? [-Wimplicit-function-declaration]
  847 |             rtn = mvwaddwstr(self->win,y,x,wstr);
      |                   ^~~~~~~~~~
      |                   mvwaddstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:849:19: error: implicit declaration of function ‘waddwstr’; did you mean ‘waddstr’? [-Wimplicit-function-declaration]
  849 |             rtn = waddwstr(self->win,wstr);
      |                   ^~~~~~~~
      |                   waddstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_addnstr_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:930:19: error: implicit declaration of function ‘mvwaddnwstr’; did you mean ‘mvwaddnstr’? [-Wimplicit-function-declaration]
  930 |             rtn = mvwaddnwstr(self->win,y,x,wstr,n);
      |                   ^~~~~~~~~~~
      |                   mvwaddnstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:932:19: error: implicit declaration of function ‘waddnwstr’; did you mean ‘waddnstr’? [-Wimplicit-function-declaration]
  932 |             rtn = waddnwstr(self->win,wstr,n);
      |                   ^~~~~~~~~
      |                   waddnstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_get_wch_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1503:14: error: implicit declaration of function ‘wget_wch’; did you mean ‘wgetch’? [-Wimplicit-function-declaration]
 1503 |         ct = wget_wch(self->win ,&rtn);
      |              ^~~~~~~~
      |              wgetch
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1506:14: error: implicit declaration of function ‘mvwget_wch’; did you mean ‘mvwgetch’? [-Wimplicit-function-declaration]
 1506 |         ct = mvwget_wch(self->win, y, x, &rtn);
      |              ^~~~~~~~~~
      |              mvwgetch
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_insstr_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1848:19: error: implicit declaration of function ‘mvwins_wstr’; did you mean ‘mvwinsstr’? [-Wimplicit-function-declaration]
 1848 |             rtn = mvwins_wstr(self->win,y,x,wstr);
      |                   ^~~~~~~~~~~
      |                   mvwinsstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1850:19: error: implicit declaration of function ‘wins_wstr’; did you mean ‘winsstr’? [-Wimplicit-function-declaration]
 1850 |             rtn = wins_wstr(self->win,wstr);
      |                   ^~~~~~~~~
      |                   winsstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_window_insnstr_impl’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1933:19: error: implicit declaration of function ‘mvwins_nwstr’; did you mean ‘mvwinsnstr’? [-Wimplicit-function-declaration]
 1933 |             rtn = mvwins_nwstr(self->win,y,x,wstr,n);
      |                   ^~~~~~~~~~~~
      |                   mvwinsnstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:1935:19: error: implicit declaration of function ‘wins_nwstr’; did you mean ‘winsnstr’? [-Wimplicit-function-declaration]
 1935 |             rtn = wins_nwstr(self->win,wstr,n);
      |                   ^~~~~~~~~~
      |                   winsnstr
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c: In function ‘_curses_unget_wch’:
/$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/src/Modules/_cursesmodule.c:4498:29: error: implicit declaration of function ‘unget_wch’; did you mean ‘ungetch’? [-Wimplicit-function-declaration]
 4498 |     return PyCursesCheckERR(unget_wch(wch), "unget_wch");
      |                             ^~~~~~~~~
      |                             ungetch
make: *** [Makefile:3110: Modules/_cursesmodule.o] Error 1
make: *** Waiting for unfinished jobs....

cpython/3.12.2: ERROR: 
Package '93ffaec3d355782b9ed54b36d509ba6892e2eb5f' build failed
cpython/3.12.2: WARN: Build folder /$HOME/.conan2/p/b/cpyth1e9dd473dc262/b/build-release
ERROR: cpython/3.12.2: Error in build() method, line 544
	autotools.make()
	ConanException: Error 2 while executing

The configure stage of the package did report:

Code: Select all

checking for ncurses.h... yes
checking for ncursesw... no
checking for initscr in -lncursesw... yes
checking curses module flags... ncursesw (CFLAGS: , LIBS: -lncursesw)
The cura.jinja conan configs have:

Code: Select all

cpython/*:shared=True
cpython/*:with_tkinter=False
cpython/*:with_curses=False
Can someone help me get this build to continue?
Top
Post Reply
1 post • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic