[SOLVED] bug while building glibc-2.27 with new gcc-8.1.1 and perl-5.28.0
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Rep:
bug while building glibc-2.27 with new gcc-8.1.1 and perl-5.28.0
If you try to rebuild glibc-2.27 as for SFS or in Slackware-current you get that message, not a good one:
--------------------------------
touch /tmp/glibc-2.27/build-glibc-2.27/manual/stamp-version
LANGUAGE=C LC_ALL=C makeinfo -P /tmp/glibc-2.27/build-glibc-2.27/manual/ --output=/tmp/glibc-2.27/build-glibc-2.27/manual/libc.info libc.texinfo
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE })?\s*/ at /usr/share/texinfo/Texinfo/Parser.pm line 5481.
Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE })?\s*(\@(c|comment)((\@|\s+).*)?)?/ at /usr/share/texinfo/Texinfo/Parser.pm line 5485.
----------------------------------
It can't get to the end.
The problem is in texinfo, see the message: https://bugs.debian.org/cgi-bin/bugr...cgi?bug=898994
I've not tried to rebuild glibc, but I think those are just warnings: when I tried to build qemu I met them too but rebuilding texinfo with this patch made them go away.
that unfortunately hadn't solved the issue (makeinfo gets stuck) that I think is related to makeinfo/tex2any (a perl script) when used with perl 5.28.x to process specific files.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Original Poster
Rep:
I tried the same patch, but as you said, it gets stuck at the same level:
-----------------------------
/bin/sh ../scripts/move-if-change /tmp/glibc-2.27/build-glibc-2.27/manual/version-tmp /tmp/glibc-2.27/build-glibc-2.27/manual/version.texi
touch /tmp/glibc-2.27/build-glibc-2.27/manual/stamp-version
LANGUAGE=C LC_ALL=C makeinfo -P /tmp/glibc-2.27/build-glibc-2.27/manual/ --output=/tmp/glibc-2.27/build-glibc-2.27/manual/libc.info libc.texinfo
----------------------------
it doesn't go the end, the last line stays for ever, for ever, for ever....
I had the same issue with building Qemu, it hangs on the document generating. I have bug report open with texinfo and already talking with a developer...
It suspect it to be a problem with texinfo in combination with the new Perl.
It appears that makeinfo hangs if the document includes @documentencoding UTF-8 but the calling locale is not UTF-8 (such as when the glibc build calls it with LANGUAGE=C LC_ALL=C). Removing the line "@documentencoding UTF-8" from libc.texinfo works around the problem, and I'll be uploading a FTBFS fix with this once I've verified that it works here with a full glibc build. Another workaround would be to have the build call makeinfo with LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8.
I'm not exactly sure where the blame lies with this one. A genuine fix would be welcome, but this will do for now.
It appears that makeinfo hangs if the document includes @documentencoding UTF-8 but the calling locale is not UTF-8 (such as when the glibc build calls it with LANGUAGE=C LC_ALL=C). Removing the line "@documentencoding UTF-8" from libc.texinfo works around the problem
I can confirm that this workaround is effective also for qemu-doc.texi, thanks Pat!
more info on the matter: Gavin, on the bug report, suggested to run makeinfo with TEXINFO_XS=omit and when using that (disabling texinfo perl extensions) build goes smooth.
When one installs a new version of Perl, isn't one supposed to build
the XS extensions anew, against the newly installed Perl library? Was
that done in this case?
Can anyone comment on this? I would assume so, but I am unsure...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.