Bug 1795950

Summary: pyparted fails to build with gcc 10: multiple definition of symbols
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pypartedAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: bcl, clumens, cstratak, dcantrell, mhroncok, sbueno
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pyparted-3.11.5-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-09 17:35:58 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: 1750908, 1785415, 1792464    

Description Miro Hrončok 2020-01-29 10:05:29 UTC
pyparted fails to build with gcc 10:

...
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:38: multiple definition of `IOException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:38: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:37: multiple definition of `GeometryException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:37: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:36: multiple definition of `FileSystemException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:36: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:35: multiple definition of `DiskLabelException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:35: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:34: multiple definition of `DiskException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:34: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:33: multiple definition of `DeviceException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:33: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:32: multiple definition of `ConstraintException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:32: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:31: multiple definition of `CreateException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:31: first defined here
/usr/bin/ld: build/temp.linux-x86_64-3.9/src/pyunit.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:30: multiple definition of `AlignmentException'; build/temp.linux-x86_64-3.9/src/_pedmodule.o:/builddir/build/BUILD/pyparted-3.11.3/py3dir/include/exceptions.h:30: first defined here
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

This blocks the Python 3.9 rebuild of the package.

See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/RYVPP45PMWPXYBBDKXO3CI7YGL7CDQG6/ and https://gcc.gnu.org/gcc-10/porting_to.html#common for more information about the failure.

Comment 1 Ben Cotton 2020-02-11 17:23:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 2 Fedora Release Engineering 2020-02-16 04:28:49 UTC
Dear Maintainer,

your package has not been built successfully in 32. Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. Following the latest policy for such packages [2], your package
will be orphaned if this bug remains in NEW state more than 8 weeks.

A week before the mass branching of Fedora 33 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 31 will be
retired regardless of the status of this bug.

[1] https://fedoraproject.org/wiki/Updates_Policy
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedoraproject.org/wiki/Releases/33/Schedule

Comment 3 Fedora Release Engineering 2020-03-01 04:27:43 UTC
Dear Maintainer,

your package has not been built successfully in 32. Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. Following the latest policy for such packages [2], your package
will be orphaned if this bug remains in NEW state more than 8 weeks.

A week before the mass branching of Fedora 33 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 31 will be
retired regardless of the status of this bug.

[1] https://fedoraproject.org/wiki/Updates_Policy
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedoraproject.org/wiki/Releases/33/Schedule

Comment 4 Fedora Release Engineering 2020-03-08 04:29:47 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 32.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (that's on 2020-03-25).

A week before the mass branching of Fedora 33 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 31 will be
retired regardless of the status of this bug.

[1] https://fedoraproject.org/wiki/Updates_Policy
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-33/f-33-key-tasks.html

Comment 5 Red Hat Bugzilla 2023-09-14 05:50:53 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days