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 1864043

Summary: libreswan: FTBFS in Fedora rawhide/f33
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libreswanAssignee: Paul Wouters <pwouters>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: olysonek, pwouters, sahana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libreswan-4.0-0.1.rc1.fc34 libreswan-4.0-0.1.rc1.eln103 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-28 05:39:27 UTC Type: ---
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: 1803234    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2020-08-03 17:55:05 UTC
libreswan failed to build from source in Fedora rawhide/f33

https://koji.fedoraproject.org/koji/taskinfo?taskID=47994525


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Please fix libreswan at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libreswan will be orphaned. Before branching of Fedora 34,
libreswan will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Fedora Release Engineering 2020-08-03 17:55:07 UTC
Created attachment 1705595 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2020-08-03 17:55:08 UTC
Created attachment 1705596 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2020-08-03 17:55:09 UTC
Created attachment 1705597 [details]
state.log

Comment 4 Ben Cotton 2020-08-11 14:15:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 5 Ondřej Lysoněk 2020-08-27 09:21:05 UTC
Hi, what is the status here?

Libreswan will need to be rebuilt soon due to a libevent rebase that I'm planning to do - the new libevent version comes with a soname bump. So if libreswan fails to build then, it will become unusable.

Thanks.

Comment 6 Fedora Update System 2020-09-28 05:39:27 UTC
FEDORA-2020-908749447c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Paul Wouters 2020-09-28 05:41:38 UTC
Sorry it took a little longer.

There seems to be an issue with the gcc10 compiler for armv7. I ended up temporarily disabling the global link flags to prevent lto issues, eg:

 /builddir/build/BUILD/libreswan-4.0/programs/pluto/log.h:97:39: error: type of 'logger_global_vec' does not match original declaration [-Werror=lto-type-mismatch]
   97 | extern const struct logger_object_vec logger_global_vec;
      |                                       ^
/builddir/build/BUILD/libreswan-4.0/programs/pluto/log.c:630:32: note: 'logger_global_vec' was previously declared here
  630 | const struct logger_object_vec logger_global_vec = {
      |                                ^
../../../programs/pluto/../../include/impair.h:157:22: error: type of 'impair' does not match original declaration [-Werror=lto-type-mismatch]
  157 | extern struct impair impair;
      |                      ^
/builddir/build/BUILD/libreswan-4.0/lib/libswan/impair.c:561:15: note: 'impair' was previously declared here
  561 | struct impair impair;
      |               ^
/builddir/build/BUILD/libreswan-4.0/lib/libswan/impair.c:561:15: note: code may be misoptimized unless '-fno-strict-aliasing' is used


Once those compiler issues are resolved, we can go back to using %{?__global_ldflags}

Comment 8 Fedora Update System 2020-09-28 05:51:28 UTC
FEDORA-2020-1cb92f7a4a has been pushed to the Fedora ELN stable repository.
If problem still persists, please make note of it in this bug report.