Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1721934

Summary: libsbml fails to build with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: libsbmlAssignee: Zbigniew Jędrzejewski-Szmek <zbyszek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande, neuro-sig, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:23:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    

Description Miro Hrončok 2019-06-19 09:25:22 UTC
libsbml fails to build with Python 3.8.0b1.

[ 98%] Swig C# source
cd /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/csharp && /usr/bin/cmake -DCUR_BIN_DIRECTORY="/builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/csharp" -DBIN_DIRECTORY="/builddir/build/BUILD/libSBML-5.18.0-Source/build" -DCUR_SRC_DIRECTORY="/builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/csharp" -DSRC_DIRECTORY="/builddir/build/BUILD/libSBML-5.18.0-Source" -DCMAKE_COMMAND="/usr/bin/cmake" -DPYTHON_EXECUTABLE="/usr/bin/python3" -DSWIG_SWIGDOCDEFINES="--define USE_COMP --define USE_FBC --define USE_GROUPS --define USE_L3V2EXTENDEDMATH --define USE_LAYOUT --define USE_MULTI --define USE_QUAL --define USE_RENDER --define USE_COMP --define USE_FBC --define USE_GROUPS --define USE_L3V2EXTENDEDMATH --define USE_MULTI --define USE_QUAL --define USE_RESwig: C# Bindings
Creating /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/csharp/csharp-files
Creating: libsbmlcsP.dll
csharp-files/ListOfLocalRenderInformation.cs(14,10): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/ListOfLocalRenderInformation.cs(16,40): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/ListOfLocalRenderInformation.cs(22,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/ListOfLocalRenderInformation.cs(27,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/ListOfLocalStyles.cs(14,10): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/ListOfLocalStyles.cs(16,29): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/ListOfLocalStyles.cs(22,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/ListOfLocalStyles.cs(27,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/StringSet.cs(14,10): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/StringSet.cs(17,21): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/StringSet.cs(23,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/StringSet.cs(28,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/double_array.cs(14,10): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/double_array.cs(17,24): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/double_array.cs(23,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/double_array.cs(28,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/int_array.cs(14,10): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/int_array.cs(17,21): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/int_array.cs(23,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/int_array.cs(28,18): error CS0246: The type or namespace name `HandleRef' could not be found. Are you missing `System.Runtime.InteropServices' using directive?
csharp-files/libsbml.cs(16,48): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/libsbml.cs(65,54): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/libsbml.cs(134,52): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/libsbml.cs(182,48): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/libsbml.cs(199,36): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
csharp-files/libsbml.cs(389,52): error CS0246: The type or namespace name `IntPtr' could not be found. Are you missing `System' using directive?
CMake Error at /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/csharp/compile-native-files.cmake:101 (message):
  Could not create the managed library

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00940603-libsbml/

For all our attempts to build libsbml with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/libsbml/

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.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Zbigniew Jędrzejewski-Szmek 2019-06-19 12:43:51 UTC
Hmm, it builds fine here with rpm-4.14.90-0.git14653.15.fc31.x86_64 and python3-3.8.0~b1-1.fc31.x86_64, same gcc version as in copr. Maybe this is some copr issue or heisenbug?

Comment 2 Miro Hrončok 2019-06-19 12:58:26 UTC
Trying again.

Comment 3 Zbigniew Jędrzejewski-Szmek 2019-07-12 13:23:05 UTC
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/build/960228/ passed.