Bug 2045780

Summary: lftp: FTBFS in Fedora rawhide/f36
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: lftpAssignee: Michal Ruprich <mruprich>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: athmanem, dan, fweimer, jaskalnik, luhliari, mruprich
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lftp-4.9.2-5.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-07 13:45:11 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: 1071880, 1992484    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2022-01-25 18:33:14 UTC
lftp failed to build from source in Fedora rawhide/f36

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Please fix lftp 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,
lftp will be orphaned. Before branching of Fedora 37,
lftp will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-01-25 18:33:17 UTC
Created attachment 1855169 [details]
build.log

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

Comment 2 Fedora Release Engineering 2022-01-25 18:33:18 UTC
Created attachment 1855170 [details]
root.log

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

Comment 3 Fedora Release Engineering 2022-01-25 18:33:19 UTC
Created attachment 1855171 [details]
state.log

Comment 4 Michal Ruprich 2022-01-26 14:50:34 UTC
Related to https://fedoraproject.org/wiki/Changes/PPC64LE_Float128_Transition - marking this as a blocker to PPCTracker, I am expecting this to be solved with new release of glibc.

Comment 5 Dan Horák 2022-01-27 14:57:39 UTC
Florian, isn't this another gnulib related issue?

...
In file included from /usr/include/stdlib.h:1032,
                 from ./stdlib.h:36,
                 from mktime.c:49:
/usr/include/bits/stdlib-ldbl.h: In function '__LDBL_REDIR1_DECL':
/usr/include/bits/stdlib-ldbl.h:35:1: error: expected declaration specifiers before '__LDBL_REDIR1_DECL'
   35 | __LDBL_REDIR1_DECL (strtold_l, __strtoieee128_l)
      | ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/libintl.h:103,
                 from ./gettext.h:26,
                 from ./config.h:2429,
                 from ./libc-config.h:33,
                 from mktime.c:34:
./stdlib.h:832:1: error: storage class specified for parameter '_gl_cxxalias_dummy'
  832 | _GL_CXXALIASWARN (malloc);
      | ^~~~~~~~~~~~~~~~
./stdlib.h:857:1: error: storage class specified for parameter '_gl_cxxalias_dummy'
  857 | _GL_CXXALIAS_SYS (mbtowc, int,
      | ^~~~~~~~~~~~~~~~
./stdlib.h:857:1: error: redefinition of parameter '_gl_cxxalias_dummy'
./stdlib.h:832:1: note: previous definition of '_gl_cxxalias_dummy' with type 'int'
  832 | _GL_CXXALIASWARN (malloc);
      | ^~~~~~~~~~~~~~~~
./stdlib.h:861:1: error: storage class specified for parameter '_gl_cxxalias_dummy'
  861 | _GL_CXXALIASWARN (mbtowc);
      | ^~~~~~~~~~~~~~~~
./stdlib.h:861:1: error: redefinition of parameter '_gl_cxxalias_dummy'
./stdlib.h:857:1: note: previous definition of '_gl_cxxalias_dummy' with type 'int'
...

Comment 6 Florian Weimer 2022-01-27 18:05:05 UTC
(In reply to Dan Horák from comment #5)
> Florian, isn't this another gnulib related issue?
> 
> ...
> In file included from /usr/include/stdlib.h:1032,
>                  from ./stdlib.h:36,
>                  from mktime.c:49:
> /usr/include/bits/stdlib-ldbl.h: In function '__LDBL_REDIR1_DECL':
> /usr/include/bits/stdlib-ldbl.h:35:1: error: expected declaration specifiers
> before '__LDBL_REDIR1_DECL'
>    35 | __LDBL_REDIR1_DECL (strtold_l, __strtoieee128_l)
>       | ^~~~~~~~~~~~~~~~~~
> In file included from /usr/include/libintl.h:103,
>                  from ./gettext.h:26,
>                  from ./config.h:2429,
>                  from ./libc-config.h:33,
>                  from mktime.c:34:
> ./stdlib.h:832:1: error: storage class specified for parameter
> '_gl_cxxalias_dummy'
>   832 | _GL_CXXALIASWARN (malloc);
>       | ^~~~~~~~~~~~~~~~

Looks similar, yes, but there isn't enough context really to be certain.

Comment 7 Michal Ruprich 2022-01-28 08:55:01 UTC
Hi Florian,

just a bit of additional info - no changes to the code of lftp since F34, but it is now failing in F36 on new gcc on ppc64le only. Complete build log is here:
https://kojipkgs.fedoraproject.org//work/tasks/3270/81983270/build.log

Comment 8 Dan Horák 2022-01-31 11:03:41 UTC
Replacing the bundled lib/cdefs.h file with https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/cdefs.h;h=44d3826bca9f6f84f862acf1035408a587fac71d;hb=HEAD will fix the problem. The bundled gnulib isn't compatible with the installed glibc :-(

Comment 9 Fedora Update System 2022-02-07 13:27:52 UTC
FEDORA-2022-1556ce2980 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1556ce2980

Comment 10 Fedora Update System 2022-02-07 13:45:11 UTC
FEDORA-2022-1556ce2980 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.