LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2018, 12:21 PM   #1
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
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

Last edited by nobodino; 06-27-2018 at 01:29 PM.
 
Old 06-27-2018, 01:41 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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.
 
Old 06-27-2018, 01:57 PM   #3
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
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....
 
Old 06-27-2018, 02:09 PM   #4
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
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.

Kr
Mel

Last edited by Melke; 06-27-2018 at 02:11 PM.
 
Old 06-27-2018, 02:10 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,502

Rep: Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459
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.
 
5 members found this post helpful.
Old 06-27-2018, 02:15 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by volkerdi View Post
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!
 
Old 06-27-2018, 02:24 PM   #7
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
I have passed the information on to the texinfo developer assuming it is a texinfo issue...
 
Old 06-27-2018, 03:02 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
for the sake of completness, during the qemu build, just after having processed qemu-doc.texi, this happens (still after upgrading to the newer perl)
Code:
perl -Ww -- /tmp/SBo/qemu-2.12.0/scripts/texi2pod.pl -I docs -I . -I . "-DVERSION=2.12.0" qemu-doc.texi qemu.1.pod && pod2man --utf8 --section=1 --center=" " --release=" " qemu.1.pod > qemu.1                                                              
qemu.1.pod around line 95: Non-ASCII character seen before =encoding in 'Schtz.'. Assuming UTF-8
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [/tmp/SBo/qemu-2.12.0/rules.mak:385: qemu.1] Error 255
make: *** Deleting file 'qemu.1'
 
Old 06-27-2018, 03:07 PM   #9
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
Quote:
Originally Posted by ponce View Post
for the sake of completness, during the qemu build, just after having processed qemu-doc.texi, this happens (still after upgrading to the newer perl)
Code:
perl -Ww -- /tmp/SBo/qemu-2.12.0/scripts/texi2pod.pl -I docs -I . -I . "-DVERSION=2.12.0" qemu-doc.texi qemu.1.pod && pod2man --utf8 --section=1 --center=" " --release=" " qemu.1.pod > qemu.1                                                              
qemu.1.pod around line 95: Non-ASCII character seen before =encoding in 'Schtz.'. Assuming UTF-8
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [/tmp/SBo/qemu-2.12.0/rules.mak:385: qemu.1] Error 255
make: *** Deleting file 'qemu.1'
Yes, I noticed this too, but when I changed the make file and replaced LC_ALL=C with "LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8", it worked perfectly.

Kr
Mel
 
Old 06-27-2018, 03:19 PM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
yes, but if for qemu this
Code:
sed -i "s|LC_ALL=C|LC_ALL=C.UTF-8|" Makefile
solves both the issues, with makeinfo (shipped with texinfo) and with pod2man (provided by perl itself), then my bet is for perl 5.28.0 to blame.
 
2 members found this post helpful.
Old 06-28-2018, 12:16 AM   #11
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
double post

Last edited by Melke; 06-28-2018 at 12:19 AM.
 
Old 06-28-2018, 12:17 AM   #12
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
Hi,

after talking with one of the developers we tried to escape the second bracket too... this seems to solve the issue, it did for me:

Code:
--- /usr/share/texinfo/Texinfo/Parser.pm.bak	2018-06-28 07:05:26.046994398 +0200
+++ /usr/share/texinfo/Texinfo/Parser.pm	2018-06-28 07:06:45.512993300 +0200
@@ -5478,11 +5478,11 @@
     }
   } elsif ($command eq 'clickstyle') {
     # REMACRO
-    if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*/) {
+    if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*/) {
       $args = ['@'.$1];
       $self->{'clickstyle'} = $1;
       $remaining = $line;
-      $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
+      $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)(\{\})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
       $has_comment = 1 if (defined($4));
     } else {
       $self->line_error (sprintf($self->__(

I hope I created the patch correctly..

EDIT: it worked once....

Last edited by Melke; 06-28-2018 at 12:23 AM.
 
Old 06-28-2018, 08:47 AM   #13
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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.
 
Old 06-28-2018, 09:14 AM   #14
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
Yeah I noticed the same. Responded to his email too...

Lets see where this go, but I agree that Perl is probably the culprit.

Kr
Mel
 
Old 06-28-2018, 09:23 AM   #15
Melke
Member
 
Registered: Sep 2009
Location: Graz, Austria
Distribution: Slackware Current
Posts: 106

Rep: Reputation: 45
Answer from the dev

Quote:
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
building glibc/gcc jbdean Linux - Newbie 1 01-27-2011 07:45 AM
Bug#314905 bug fix for Ubuntu and gcc is 4.4.1 bostan Linux - General 1 12-11-2010 12:35 PM
one more error building GCC - related with the newer version of Glibc?? lfs63 Linux From Scratch 1 02-17-2008 09:20 AM
there is a bug in glibc's heeder ??(gcc 4.1) unixnovice Debian 2 08-24-2007 04:42 AM
bug reports on glibc or gcc tvburger Linux From Scratch 1 12-06-2004 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration