Bug 1792988 - python-giacpy fails to build with Python 3.9
Summary: python-giacpy fails to build with Python 3.9
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-giacpy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. (sagitter)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-20 13:18 UTC by Miro Hrončok
Modified: 2020-03-02 18:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-02 18:00:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-20 13:18:03 UTC
python-giacpy fails to build with Python 3.9.0a2.

gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Igiacpy -I./giacpy -I. -I/usr/include/python3.9 -c giacpy/giacpy.cpp -o build/temp.linux-x86_64-3.9/giacpy/giacpy.o
In file included from giacpy/giacpy.cpp:641:
giacpy/giacpymisc.h: In function ‘void archivegen(std::string, const giac::gen&, const giac::context*)’:
giacpy/giacpymisc.h:147:15: error: variable ‘std::ofstream of’ has initializer but incomplete type
  147 |   ofstream of(filename.c_str());
      |               ^~~~~~~~
giacpy/giacpymisc.h: In function ‘giac::gen unarchivegen(std::string, const giac::context*)’:
giacpy/giacpymisc.h:153:14: error: variable ‘std::ifstream f’ has initializer but incomplete type
  153 |   ifstream f(filename.c_str());
      |              ^~~~~~~~


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01161451-python-giacpy/

For all our attempts to build python-giacpy with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-giacpy/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Frederic Han 2020-02-05 11:51:58 UTC
It is n

Comment 2 Frederic Han 2020-02-05 11:57:37 UTC
Sorry. It is not related to the python version, but to the giac version. (some includes were removed in giac>1.5.0.75) So I need to fix this upstream in giacpy.
the current git version should fix this:
https://gitlab.math.univ-paris-diderot.fr/han/giacpy

Comment 3 Antonio T. (sagitter) 2020-02-07 10:21:19 UTC
Fixed. Please, try rebuild latest package in Rawhide with Python 3.9

@Frederic, where i can post helping requests about giacpy in future?

Comment 4 Frederic Han 2020-02-07 10:29:42 UTC
Please, feel free to CC me for any giacpy problem.

You can also post on giac/xcas's forum here:

https://xcas.univ-grenoble-alpes.fr/forum/viewforum.php?f=24

Comment 5 Ben Cotton 2020-02-11 16:38:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.


Note You need to log in before you can comment on or make changes to this bug.