Re: [lfs-support] Install texinfo on Centos7 / CentOS Linux 7 (Core)

2020-01-26 Thread knothead00
I swore i did that piece. mmnn. maybe i did not.
Any how it works. Thanks.

On Sun, Jan 26, 2020 at 4:39 PM Bruce Dubbs  wrote:

> On 1/26/20 3:52 PM, knothea...@gmail.com wrote:
> > I am trying to install texinfo on this server; how do i get it installed?
> >
> > [root@lfs-wk ~]# hostnamectl
> > Static hostname: lfs-wk.shadowman.lab
> >   Icon name: computer-vm
> > Chassis: vm
> >  Machine ID: 18a3793d59c149eda5e031aee4c1f12a
> > Boot ID: 3b995a650b404c82ba41813fcbab78a7
> >  Virtualization: kvm
> >Operating System: CentOS Linux 7 (Core)
> > CPE OS Name: cpe:/o:centos:centos:7
> >  Kernel: Linux 3.10.0-1062.9.1.el7.x86_64
> >Architecture: x86-64
> >
> > [root@lfs-wk ~]# cat /etc/redhat-release
> > CentOS Linux release 7.7.1908 (Core)
> >
> > [root@lfs-wk ~]# ./version-check.sh
> > bash, version 4.2.46(2)-release
> > /bin/sh -> /usr/bin/bash
> > Binutils: version 2.27-41.base.el7_7.1
> > bison (GNU Bison) 3.0.4
> > yacc is /usr/bin/yacc - 1.9 20130304
> > bzip2,  Version 1.0.6, 6-Sept-2010.
> > Coreutils:  8.22
> > diff (GNU diffutils) 3.3
> > find (GNU findutils) 4.5.11
> > GNU Awk 4.0.2
> > /usr/bin/awk -> /usr/bin/gawk
> > gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
> > g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
> > (GNU libc) 2.17
> > grep (GNU grep) 2.20
> > gzip 1.5
> > Linux version 3.10.0-1062.9.1.el7.x86_64
> > (mockbu...@kbuilder.bsys.centos.org
> > ) (gcc version 4.8.5
> 20150623
> > (Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Dec 6 15:49:49 UTC 2019
> > m4 (GNU M4) 1.4.16
> > GNU Make 3.82
> > GNU patch 2.7.1
> > Perl version='5.16.3';
> > Python 3.6.8
> > sed (GNU sed) 4.2.2
> > tar (GNU tar) 1.26
> > ./version-check.sh: line 48: makeinfo: command not found
>
> For redhat, I think you need "dnf install texinfo"
>
>-- Bruce
>
>
>
> > xz (XZ Utils) 5.2.2
> > g++ compilation OK
> >
> > Thanks.
> >
>
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Xi Ruoyao
On 2020-01-26 13:13 -0600, Bruce Dubbs wrote:
> On 1/26/20 12:41 PM, Flareon wrote:
> > On January 26, 2020, at 04:10, Xi Ruoyao  wrote:
> > 
> >  >On 2020-01-26 15:13 +0530, Sourabh Sagar wrote:
> >  >> One thread recommend use of '-Wno-attribute-alias' ... when using it 
> > glibc2.30
> >  >> compiled successfully(in a separate sub-directory)...
> >  >Don't reference those articles telling how to build Glibc on a 
> > complete system.
> >  >LFS has a different way.
> >  >> but testing newly built toolchain against dummy.c(as in glibc2.30 
> > 1st pass
> >  >> article) via `$LFS_TGT-gcc dummy.c`
> >  >>
> >  >> a new error appears stating expansion of $LFS_TGT-gcc  not found in
> >  >> $LFS/tools/bin.
> >  >We shouldn't continue blindly if any error is encountered.  Without 
> > $LFS_TGT-gcc
> >  >glibc would be built with host GCC.  That does not make any sense (in 
> > LFS).
> >  >--
> >  >Xi Ruoyao 
> >  >School of Aerospace Science and Technology, Xidian University
> >  >--
> >  >http://lists.linuxfromscratch.org/listinfo/lfs-support
> >  >FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> >  >Unsubscribe: See the above information page
> >  >Do not top post on this list.
> >  >A: Because it messes up the order in which people normally read text.
> >  >Q: Why is top-posting such a bad thing?
> >  >A: Top-posting.
> >  >Q: What is the most annoying thing in e-mail?
> >  >http://en.wikipedia.org/wiki/Posting_style
> > 
> > So, your summary is thus:
> > 
> > Fix where /bin/sh points
> > Don't deviate at all from the book
> > Don't blindly follow online posts

My point is "don't continue blindly if any problem occurs".  Building LFS is
like building a house.  If a brick has some deficiency and we just stack other
bricks onto it blindly, the house will collapse.

OTOH "don't blindly follow online posts" is also correct.  LFS is different from
normal building procedure and many online posts are based on earlier version of
LFS (like 6.x or 5.x) which are outdated.  And, some posters are irresponsible
and often post some stupidly wrong information, just misleading others.

> That's pretty much right.  I will add to the second item "for the first 
> time through".  Sometimes new users can have the attitude "I'm 
> experienced and I know enough to change what is in the book."  But that 
> can get users into trouble,

If you deviate from the book, you should know what you are doing.  Missing
$LFS_TGT-gcc is absolutely incorrect.  Using dash instead of bash is likely
incorrect (though we didn't tried, recently).  --with-glibc-version=2.30
(instead of 2.11) is likely correct.
-- 
Xi Ruoyao 
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Install texinfo on Centos7 / CentOS Linux 7 (Core)

2020-01-26 Thread Bruce Dubbs

On 1/26/20 3:52 PM, knothea...@gmail.com wrote:

I am trying to install texinfo on this server; how do i get it installed?

[root@lfs-wk ~]# hostnamectl
    Static hostname: lfs-wk.shadowman.lab
          Icon name: computer-vm
            Chassis: vm
         Machine ID: 18a3793d59c149eda5e031aee4c1f12a
            Boot ID: 3b995a650b404c82ba41813fcbab78a7
     Virtualization: kvm
   Operating System: CentOS Linux 7 (Core)
        CPE OS Name: cpe:/o:centos:centos:7
             Kernel: Linux 3.10.0-1062.9.1.el7.x86_64
       Architecture: x86-64

[root@lfs-wk ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

[root@lfs-wk ~]# ./version-check.sh
bash, version 4.2.46(2)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.27-41.base.el7_7.1
bison (GNU Bison) 3.0.4
yacc is /usr/bin/yacc - 1.9 20130304
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.22
diff (GNU diffutils) 3.3
find (GNU findutils) 4.5.11
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
(GNU libc) 2.17
grep (GNU grep) 2.20
gzip 1.5
Linux version 3.10.0-1062.9.1.el7.x86_64 
(mockbu...@kbuilder.bsys.centos.org 
) (gcc version 4.8.5 20150623 
(Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Dec 6 15:49:49 UTC 2019

m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.3';
Python 3.6.8
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
./version-check.sh: line 48: makeinfo: command not found


For redhat, I think you need "dnf install texinfo"

  -- Bruce




xz (XZ Utils) 5.2.2
g++ compilation OK

Thanks.



--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] Install texinfo on Centos7 / CentOS Linux 7 (Core)

2020-01-26 Thread knothead00
I am trying to install texinfo on this server; how do i get it installed?

[root@lfs-wk ~]# hostnamectl
   Static hostname: lfs-wk.shadowman.lab
 Icon name: computer-vm
   Chassis: vm
Machine ID: 18a3793d59c149eda5e031aee4c1f12a
   Boot ID: 3b995a650b404c82ba41813fcbab78a7
Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
   CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1062.9.1.el7.x86_64
  Architecture: x86-64

[root@lfs-wk ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

[root@lfs-wk ~]# ./version-check.sh
bash, version 4.2.46(2)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.27-41.base.el7_7.1
bison (GNU Bison) 3.0.4
yacc is /usr/bin/yacc - 1.9 20130304
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.22
diff (GNU diffutils) 3.3
find (GNU findutils) 4.5.11
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
(GNU libc) 2.17
grep (GNU grep) 2.20
gzip 1.5
Linux version 3.10.0-1062.9.1.el7.x86_64 (mockbu...@kbuilder.bsys.centos.org)
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Dec 6
15:49:49 UTC 2019
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.3';
Python 3.6.8
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
./version-check.sh: line 48: makeinfo: command not found
xz (XZ Utils) 5.2.2
g++ compilation OK

Thanks.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Bruce Dubbs

On 1/26/20 12:41 PM, Flareon wrote:

On January 26, 2020, at 04:10, Xi Ruoyao  wrote:

 >On 2020-01-26 15:13 +0530, Sourabh Sagar wrote:
 >> One thread recommend use of '-Wno-attribute-alias' ... when using it 
glibc2.30

 >> compiled successfully(in a separate sub-directory)...
 >Don't reference those articles telling how to build Glibc on a 
complete system.

 >LFS has a different way.
 >> but testing newly built toolchain against dummy.c(as in glibc2.30 
1st pass

 >> article) via `$LFS_TGT-gcc dummy.c`
 >>
 >> a new error appears stating expansion of $LFS_TGT-gcc  not found in
 >> $LFS/tools/bin.
 >We shouldn't continue blindly if any error is encountered.  Without 
$LFS_TGT-gcc
 >glibc would be built with host GCC.  That does not make any sense (in 
LFS).

 >--
 >Xi Ruoyao 
 >School of Aerospace Science and Technology, Xidian University
 >--
 >http://lists.linuxfromscratch.org/listinfo/lfs-support
 >FAQ: http://www.linuxfromscratch.org/blfs/faq.html
 >Unsubscribe: See the above information page
 >Do not top post on this list.
 >A: Because it messes up the order in which people normally read text.
 >Q: Why is top-posting such a bad thing?
 >A: Top-posting.
 >Q: What is the most annoying thing in e-mail?
 >http://en.wikipedia.org/wiki/Posting_style

So, your summary is thus:

Fix where /bin/sh points
Don't deviate at all from the book
Don't blindly follow online posts


That's pretty much right.  I will add to the second item "for the first 
time through".  Sometimes new users can have the attitude "I'm 
experienced and I know enough to change what is in the book."  But that 
can get users into trouble,



Also, I'm a girl, and we're not a company. We just like doing this stuff.


I'm not sure about the "I'm a girl" comment, but the rest is certainly 
true.  LFS is made up of all volunteers and no one is paid for their 
work on LFS.  Actually it costs us to buy our own systems and pay for 
web hosting. Think of it as as our contribution to the open source 
community.


LFS is dedicated to learning and teaching users how a distro really 
works.  The fact that some have used it as a basis for creating custom 
systems that are used in operational environments is a nice perk.


  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Flareon
On January 26, 2020, at 04:10, Xi Ruoyao  wrote:

>On 2020-01-26 15:13 +0530, Sourabh Sagar wrote:
>> One thread recommend use of '-Wno-attribute-alias' ... when using it 
>> glibc2.30
>> compiled successfully(in a separate sub-directory)... 
>Don't reference those articles telling how to build Glibc on a complete 
>system. 
>LFS has a different way.
>> but testing newly built toolchain against dummy.c(as in glibc2.30 1st pass
>> article) via `$LFS_TGT-gcc dummy.c` 
>> 
>> a new error appears stating expansion of $LFS_TGT-gcc  not found in
>> $LFS/tools/bin.
>We shouldn't continue blindly if any error is encountered.  Without 
>$LFS_TGT-gcc 
>glibc would be built with host GCC.  That does not make any sense (in LFS).
>-- 
>Xi Ruoyao 
>School of Aerospace Science and Technology, Xidian University
>-- 
>http://lists.linuxfromscratch.org/listinfo/lfs-support
>FAQ: http://www.linuxfromscratch.org/blfs/faq.html
>Unsubscribe: See the above information page
>Do not top post on this list.
>A: Because it messes up the order in which people normally read text.
>Q: Why is top-posting such a bad thing?
>A: Top-posting.
>Q: What is the most annoying thing in e-mail?
>http://en.wikipedia.org/wiki/Posting_style

So, your summary is thus:

Fix where /bin/sh points
Don't deviate at all from the book
Don't blindly follow online posts

Also, I'm a girl, and we're not a company. We just like doing this stuff.

Flareon-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Xi Ruoyao
On 2020-01-26 15:13 +0530, Sourabh Sagar wrote:

> One thread recommend use of '-Wno-attribute-alias' ... when using it glibc2.30
> compiled successfully(in a separate sub-directory)... 

Don't reference those articles telling how to build Glibc on a complete system. 
LFS has a different way.

> but testing newly built toolchain against dummy.c(as in glibc2.30 1st pass
> article) via `$LFS_TGT-gcc dummy.c` 
> 
> a new error appears stating expansion of $LFS_TGT-gcc  not found in
> $LFS/tools/bin.

We shouldn't continue blindly if any error is encountered.  Without 
$LFS_TGT-gcc 
glibc would be built with host GCC.  That does not make any sense (in LFS).
-- 
Xi Ruoyao 
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Sourabh Sagar
>> We don't have stakeholders. Do we?

Sorry Sir, I am new to this posting thing in forums.

please guide me to proper channel for understanding forum working.


>> Anyway, I noticed an oddity in that output, the bit about "all warnings
being treated as errors." What command line did you use? And did you follow
everything exactly to this point?

Yes Sir,  I have deviated at one point from book i.e.  while passing flag
to configure script in gcc-9.2.0 1st pass compilation , I have used 2.30
instead of 2.11 for '--with-glibc-version= 'flag

At present I am stuck at make step of glibc2.30 1st pass

Explicitly  preprocessing time.c ... I found that libc_ifunc_hidden() is a
macro defined in libc-symbols.h which will expand as follows---

> # 43 "../sysdeps/unix/sysv/linux/x86/time.c"
> extern __typeof (time) __libc_time; extern __typeof (time) __libc_time;
__typeof (time) *__libc_time_ifunc (void) __asm__ ("__libc_time");
__attribute__ ((__optimize__ ("-fno-stack-protector"))) __typeof
(time) *__libc_time_ifunc (void) { struct r_found_version linux26 =
prepare_version_base ("LINUX_2.6", 61765110);;; __typeof (time) *res =
(_dl_vdso_vsym ("__vdso_time", ) ?:   &__time_syscall);
return res; } __asm__ (".type " "__libc_time" ", %gnu_indirect_function");
extern __typeof (__libc_time) time __attribute__ ((alias ("__libc_time")))
;;

Here prepare _version_base() is a static inline function defined as follows
---

> static inline struct r_found_version

 prepare_version_base (const char *name, Elf64_Word hash)

> {
> ((void) sizeof ((hash == _dl_elf_hash (name)) ? 1 : 0), __extension__ ({
if (hash == _dl_elf_hash (name)) ; else __assert_fail ("hash ==
_dl_elf_hash (name)", "../sysdeps/unix/sysv/linux/dl-vdso.h", 30,
 __extension__ __PRETTY_FUNCTION__); }));
> return (struct r_found_version) { name, hash, 1,
> # 31 "../sysdeps/unix/sysv/linux/dl-vdso.h" 3 4
  ((void *)0)
> # 31 "../sysdeps/unix/sysv/linux/dl-vdso.h"
>  };
> }

while googling my error(i.e. glibc2.30 1st pass failed)---

One thread recommend use of '-Wno-attribute-alias' ... when using it
glibc2.30 compiled successfully(in a separate sub-directory)...

but testing newly built toolchain against dummy.c(as in glibc2.30 1st pass
article) via `$LFS_TGT-gcc dummy.c`

a new error appears stating expansion of $LFS_TGT-gcc  not found in
$LFS/tools/bin.

Thank you sir

>>> English is not my native language; please excuse typing errors

>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Glibc2.30 1st pass failed: 'time' alias in time.c

2020-01-26 Thread Pierre Labastie
Le 26/01/2020 à 07:46, Bruce Dubbs a écrit :
> On 1/25/20 11:23 PM, Sourabh Sagar wrote:
> 
> 
>> # ./version_check.sh
>> GNU bash, version 5.0.3(1)-release
>> --Error: /bin/sh doesn't point to bash-
> 
> First fix this.  Then start over.
> 

On debian: "dpkg-reconfigure dash"

Pierre

>> Binutils: GNU ld (GNU Binutils for Debian) 2.31.1
>> bison (GNU Bison) 3.3.2
>> /usr/bin/yacc ---> /usr/bin/bison.yacc
>> bzip2,  Version 1.0.6, 6-Sept-2010.
>> Coreutils: chown (GNU coreutils) 8.30
>> diff (GNU diffutils) 3.7
>> find (GNU findutils) 4.6.0.225-235f
>> GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
>> /usr/bin/awk ---> /usr/bin/gawk
>> gcc (Debian 8.3.0-6) 8.3.0
>> g++ (Debian 8.3.0-6) 8.3.0
>> ldd (Debian GLIBC 2.28-10) 2.28
>> grep (GNU grep) 3.3
>> gzip 1.9
>> cat (GNU coreutils) 8.30
>> m4 (GNU M4) 1.4.18
>> GNU Make 4.2.1
>> GNU patch 2.7.6
>> Python 3.7.3
>> Perl version='5.28.1';
>> sed (GNU sed) 4.7
>> tar (GNU tar) 1.30
>> texi2any (GNU texinfo) 6.5
>> xz (XZ Utils) 5.2.4
>>
>> Permission of source & tools directory are shown below
>> $ ll $LFS/
>> total 36
>> drwx--  2 root root 16384 Jan 20 12:46 lost+found
>> drwxrwxrwt  6 lfs  root  4096 Jan 21 18:06 sources
>> drwxr-xr-x 11 lfs  root  4096 Jan 23 00:31 tools
>> -rwxr-xr-x  1 root root  1319 Jan 20 15:42 version_check.sh
>> -rw-r--r--  1 root root  5367 Jan 20 16:06 wget-list
>>
>> An early response from concerned stakeholders would be appreciated.
>> Thank you
>>
> 

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style