Re: [lfs-support] glibc compilation error (in chroo environmentt)
On Tue, 18 Jul 2017 21:12:41 -0400 "Isaac D. Cohen" icohen2...@zoho.com wrote: make check. It compiled a little and then got stuck on this: tst-thread_local1.cc: In lambda function: tst-thread_local1.cc:172:7: error: 'thread' is not a member of 'std' On Wed, 19 Jul 2017 23:29:15 -0400 Michael Shellli...@michaelshell.org wrote Isaac, A google search found this: https://www.mail-archive.com/gcc@gcc.gnu.org/msg81240.html https://www.mail-archive.com/gcc@gcc.gnu.org/msg81257.html "Yes, I finally realized I had built a GCC with '--enable-threads=no' and was using that GCC to build GLIBC. Once I rebuilt GCC with threads I could build GLIBC and not get this error." In the book, the first pass of gcc is built without thread support, but thread support should be enabled for the second pass (5.10.1). Hi Michael, I looked up the command I used to configure gcc on the second pass (or perhaps the third as I redid the second pass to make gcc work in the chroot environment) and it exactly matched the command in the book. (I looked it up using the command gcc -v.) That is, it didn't use --disable-threads. However, it didn't use --enable-threads either (the book didn't say to). But then I decided to try, just to make sure, and redo the second pass of gcc with --enable-threads. After doing that I redid the compilation of glibc and got the same error. So that doesn't seem to be the problem. Thank you very much, Isaac D. Cohen -- 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] glibc compilation error (in chroo environmentt)
Hi, I'm now up to section 6.9 where glibc is built in the chroot environment. I put in the patch, configured the package and ran make followed by make check. It compiled a little and then got stuck on this: tst-thread_local1.cc: In lambda function: tst-thread_local1.cc:172:7: error: 'thread' is not a member of 'std' std::thread thr{[func] {func (nullptr);}}; ^~~ tst-thread_local1.cc:173:7: error: 'thr' was not declared in this scope thr.join (); ^~~ make[2]: *** [../o-iterator.mk:9: /Source_Code/build-glibc2/nptl/tst-thread_local1.o] Error 1 make[2]: Leaving directory '/Source_Code/glibc-2.25/nptl' make[1]: *** [Makefile:215: nptl/tests] Error 2 make[1]: Leaving directory '/Source_Code/glibc-2.25' make: *** [Makefile:9: check] Error 2 Everything in the chroot environment seems to be set up correctly. When I first got into the chroot environment gcc wasn't working. So I went back and redid the second pass of binutils and gcc. Now everything seems to work. What can be causing this error? Thank you very much, Isaac D. Cohen -- 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] /bin/sh: /dev/null: Permission denied
On Mon, 03 Jul 2017 22:09:38 -0400 Ken Moffatzarniwh...@ntlworld.com wrote On Mon, Jul 03, 2017 at 06:49:13PM -0400, Isaac D. Cohen wrote: Hi, I'm up to section 6.7.1 ("Installation of Linux API Headers") and when I type "make mrproper" I get the following error message: /bin/sh: /dev/null: Permission denied If I type: ls -l /dev/null I get: crw-rw-rw- 1 root root 1, 3 Jun 28 21:57 /dev/null I'm surprised by that. Google found similar error messages where a *user* could not do things because /dev itself had the wrong permissions (ls -ld /dev in chroot). But you should be root here in chroot, so perms for group and other are irrelevant. And you bound the host's /dev in 6.2.2, didn't you ? Oh, that must be it. I did section 6.2.2 but then I shut down my computer and later resumed. I'm sorry. I should have known that would be a problem. It doesn't preserve mounted stuff for the next terminal session. Anyway, I did that section again and it works now! Thank you very much! which is correct. So that can't be the problem. The FAQ (http://www.linuxfromscratch.org/lfs/faq.html#perm-denied) also says it can be /etc/fstab. But I'm not sure which one. The one on the host system says: /dev/mapper/isw_bejfhacdjf_Volume1p4 / ext4 errors=remount-ro $ /dev/mapper/isw_bejfhacdjf_Volume1p5 none swap sw 0 $ /dev/mapper/isw_bejfhacdjf_Volume1p5 none swap sw 0 $ I don't think /dev/mapper entries are the problem : if there is a problem in the host system's fstab, it probably relates to /dev itself. I say 'probably' because I'm not familiar with that entry in the FAQ and I don't recall anybody mentioning permission problems with /dev on the lists. I don't know if there is a problem there. On the LFS partition, /etc/fstab doesn't exist. Is that a problem? No, not at this stage - you have barely started building the final LFS system. And since you didn't comment on my previous replies that /mnt/lfs should be its own filesystem, I still doubt that you will be able to boot your new system when you complete it. I hope I'm wrong on that. I'm building LFS in its own filesystem. For some reason my distro mounts filesystems in media/username hence /media/isaac/LFS. Isaac -- 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] /bin/sh: /dev/null: Permission denied
Hi, I'm up to section 6.7.1 ("Installation of Linux API Headers") and when I type "make mrproper" I get the following error message: /bin/sh: /dev/null: Permission denied If I type: ls -l /dev/null I get: crw-rw-rw- 1 root root 1, 3 Jun 28 21:57 /dev/null which is correct. So that can't be the problem. The FAQ (http://www.linuxfromscratch.org/lfs/faq.html#perm-denied) also says it can be /etc/fstab. But I'm not sure which one. The one on the host system says: /dev/mapper/isw_bejfhacdjf_Volume1p4 / ext4errors=remount-ro $ /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw 0 $ /dev/mapper/isw_bejfhacdjf_Volume1p5 noneswapsw 0 $ I don't know if there is a problem there. On the LFS partition, /etc/fstab doesn't exist. Is that a problem? Thank you very much, Isaac D. Cohen -- 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] Perl-5.7.3
On Tue, 27 Jun 2017 21:01:17 -0400 Ken Moffat zarniwh...@ntlworld.com wrote On Tue, Jun 27, 2017 at 06:33:30PM -0400, Isaac D. Cohen wrote: Hi, I'm now up to section 5.33.1 (compiling texinfo) and the configure script gives me a strange error: checking for perl... /tools/bin/perl checking Perl version and Encode module... no configure: error: perl gt;= 5.7.3 with Encode required by Texinfo. Do you have /tools/lib/perl5/5.24.1/Encode.pm ? If not, where is Encode.pm from your perl install ? I'm thinking this might be another example of what happens when you build other than in /mnt/lfs. = I found the problem. When I check up that path to see if I have Encode.pm I found that my perl directory was called per15 instead of perl5. It must have happened as a result of the font in the book which makes it a bit hard to see the difference between l and 1. When I type in such commands in the future I'll try to be more careful to copy them correctly. Thank you very much, Isaac D. Cohen -- 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] Perl-5.7.3
Hi, I'm now up to section 5.33.1 (compiling texinfo) and the configure script gives me a strange error: checking for perl... /tools/bin/perl checking Perl version and Encode module... no configure: error: perl = 5.7.3 with Encode required by Texinfo. A quick search revealed that someone has had this problem in the past. But in his case it seemed like the problem was that he was not logged in as the LFS user and therefore his PATH variable was not set correctly (thus he was using the host's perl). However, in my case my PATH variable is set correctly and it is looking at perl in /tools/bin. So what could be the problem? The command "perl -version" returns: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux Copyright 1987-2017, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. What can be the problem? Thank you very much, Isaac D. Cohen -- 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] Question about variables in the terminal
On Fri, 23 Jun 2017 14:33:35 -0400 Isaac D. Cohenicohen2...@zoho.com wrote Hi, Sorry if I'm bothering everyone too much lately. I just have a short question this time. I continued on in the book and it says to set the variables CC, AR, and RANLIB. So I'm wondering whether that is a one time thing (just for that compilation) or should I add them to my .bashrc file? I wonder because the book doesn't make it clear. It says to set those variables before compiling binutils pass 2 and then again before compiling gcc pass 2. So it sounds like they don't need to be permanent. But does the book mean that they should be permanent/set before each build? Or does it mean that they should only be set for binutils and gcc pass 2? Thank you very much, Isaac D. Cohen I'm very sorry. Please disregard my question above. I figured it out now. Isaac -- 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
[lfs-support] Question about variables in the terminal
Hi, Sorry if I'm bothering everyone too much lately. I just have a short question this time. I continued on in the book and it says to set the variables CC, AR, and RANLIB. So I'm wondering whether that is a one time thing (just for that compilation) or should I add them to my .bashrc file? I wonder because the book doesn't make it clear. It says to set those variables before compiling binutils pass 2 and then again before compiling gcc pass 2. So it sounds like they don't need to be permanent. But does the book mean that they should be permanent/set before each build? Or does it mean that they should only be set for binutils and gcc pass 2? Thank you very much, Isaac D. Cohen -- 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] Testing toolchain after first pass
Hi, William Harrington said that the compiler search in sysroot for /tools. Sysroot is /media/isaac/LFS, so to have a /tools symlink in / doesn't completely solve the problem created by using Programs/Compiler rather than tools/ because the compiler won't find that symlink. So it won't find /tools. Rather than completely recompiling I decided to solve that one by creating another symlink called tools in /media/isaac/LFS so there is a /tools in sysroot. Also Pierre Labastie said that the terminal will check at anything in $PATH for the program I'm running. Rather than recompiling I simply added /tools/bin to my $PATH variable. It works now! Thank you very much everyone for your help. Isaac D. Cohen -- 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] Testing toolchain after first pass
Hi, LFS is its own filesystem (formatted with ext3). It is mounted on to /media/isaac/LFS because that's what my distro does by default. I tried to mounting it onto /mnt/LFS but I have the same problem (when compiling dummy.c). So it doesn't seem to have to do with where the filesystem is mounted (though I haven't tried building it at /mnt/LFS). Also, another thing. when I try to compile dummy.c like this x86_64-lfs-linux-gnu dummy.c it doesn't work. It simply returns "command not found". However if I go into /tools/bin and try to compile it like this ./x86_64-lfs-linux-gnu it works because that's where the compiler is. I would start over, but I first want to make sure that that is really the problem. I suspect it has more to do with what I just said about the compiler not working except in the /tools/bin directory. After all, why would it work anywhere else? That's where it installed to. When I type "gcc" in my terminal emulator it doesnt check in /tools/bin, it checks in /bin and /usr/bin. Why would the command x86_64-lfs-linux-gnu work anywhere besdies /tools/bin? Once I understand this I will perhaps know what I missed. Thank you very much, Isaac D. Cohen -- 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] Testing toolchain after first pass
On Wed, 21 Jun 2017 19:59:23 -0400 Ken Moffat zarniwh...@ntlworld.com wrote On Wed, Jun 21, 2017 at 06:49:11PM -0400, Isaac D. Cohen wrote: p { margin-bottom: 0.1in; line-height: 120%; } Hi, I'm up to the end of section 5.7.1 and everything compiled successfully. The book now says to do a "sanity check" to see if all is working out. It doesn't say in what directory to do it, but I figured it must mean /tools/bin. I don't think it matters where the lfs user runs the sanity check. So I went to /tools/bin and tried compiling the test file (dummy.c) and it failed with the following error: /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/libc.so.6 inside /media/isaac/LFS /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/libc_nonshared.a inside /media/isaac/LFS /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/ld-linux-x86-64.so.2 inside /media/isaac/LFS collect2: error: ld returned 1 exit status Btw /tools is a symbolic link to /media/isaac/LFS/Programs/Compiler. I'm not sure if this is really a problem or did I just do the test in the wrong directory. If it is a real problem what does it mean? That seems an odd place to build LFS, unless you intend to tar it up and install it elsewhere. I don't think that oddity is related to the problem, but when you get to the end of the book and try to boot the new LFS it needs to be the top level directory in its filesystem. To try to be clear, /mnt/lfs/ should be a separate filesystem, with at this stage some directories including bin and tools, so that when it boots that bin directory will be /bin. According to my logs, glibc installed all those libraries in /tools/lib. Perhaps something is wrong with the /tools symlink ? I checked the /tools symlink. ls /tools produced the same results as ls /media/isaac/LFS/Programs/Compiler. So the symlink seems to be working. You should be able to run ls -l /tools/lib/libc.so.6 and find /media/isaac/LFS/ -name libc.so.6 The former command produces the following output: lrwxrwxrwx 1 isaac isaac 12 Jun 21 17:25 /tools/lib/libc.so.6 - libc-2.25.so I checked in the forlder and both of those files are there so what can I do to help gcc find them? Normally I would run that 'find' for /mnt/lfs, but we know your build is looking somewhere under that LFS directory. Isaac -- 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] Testing toolchain after first pass
Hi, I'm up to the end of section 5.7.1 and everything compiled successfully. The book now says to do a "sanity check" to see if all is working out. It doesn't say in what directory to do it, but I figured it must mean /tools/bin. So I went to /tools/bin and tried compiling the test file (dummy.c) and it failed with the following error: /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/libc.so.6 inside /media/isaac/LFS /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/libc_nonshared.a inside /media/isaac/LFS /media/isaac/LFS/Programs/Compiler/bin/../lib/gcc/x86_64-lfs-linux- gnu/6.3.0/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find /tools/lib/ld-linux-x86-64.so.2 inside /media/isaac/LFS collect2: error: ld returned 1 exit status Btw /tools is a symbolic link to /media/isaac/LFS/Programs/Compiler. I'm not sure if this is really a problem or did I just do the test in the wrong directory. If it is a real problem what does it mean? Thank you very much, Isaac D. Cohen -- 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] gcc error cannot compute suffix of files
On Thu, 15 Jun 2017 21:04:34 -0400 Bruce Dubbs bruce.du...@gmail.com wrote Isaac D. Cohen wrote: Hi, I fixed all the errors. Not just the one about gawk. Here is the current version: bash, version 4.3.48(1)-release /bin/sh - /bin/bash Binutils: (GNU Binutils) 2.28 bison (GNU Bison) 3.0.4 /usr/bin/yacc - /usr/bin/bison.yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.25 diff (GNU diffutils) 3.3 find (GNU findutils) 4.7.0-git GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0) /usr/bin/awk - /usr/bin/gawk gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 (Ubuntu GLIBC 2.23-0ubuntu7) 2.23 grep (GNU grep) 2.25 gzip 1.6 Linux version 4.11.3-041103-generic (kernel@gomeisa) (gcc version 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2) ) #201705251233 SMP Thu May 25 16:34:52 UTC 2017 m4 (GNU M4) 1.4.17 GNU Make 4.1 GNU patch 2.7.5 Perl version='5.22.1'; sed (GNU sed) 4.2.2 tar (GNU tar) 1.28 texi2any (GNU texinfo) 6.1 xz (XZ Utils) 5.1.0alpha g++ compilation OK That looks good. Now I suggest you: rm -rf /mnt/lfs/tools/* and restart Chapter 5 as the lfs user. -- Bruce Thank you very much. It works now. Isaac D. Cohen -- 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] gcc error cannot compute suffix of files
Hi, I fixed all the errors. Not just the one about gawk. Here is the current version: bash, version 4.3.48(1)-release /bin/sh - /bin/bash Binutils: (GNU Binutils) 2.28 bison (GNU Bison) 3.0.4 /usr/bin/yacc - /usr/bin/bison.yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.25 diff (GNU diffutils) 3.3 find (GNU findutils) 4.7.0-git GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0) /usr/bin/awk - /usr/bin/gawk gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 (Ubuntu GLIBC 2.23-0ubuntu7) 2.23 grep (GNU grep) 2.25 gzip 1.6 Linux version 4.11.3-041103-generic (kernel@gomeisa) (gcc version 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2) ) #201705251233 SMP Thu May 25 16:34:52 UTC 2017 m4 (GNU M4) 1.4.17 GNU Make 4.1 GNU patch 2.7.5 Perl version='5.22.1'; sed (GNU sed) 4.2.2 tar (GNU tar) 1.28 texi2any (GNU texinfo) 6.1 xz (XZ Utils) 5.1.0alpha g++ compilation OK Thank you very much, Isaac D. Cohen -- 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] gcc error cannot compute suffix of files
Hi, I installed gawk. But the compilation still fails. Here is the error: checking for suffix of object files... configure: error: in `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Makefile:12212: recipe for target 'configure-target-libgcc' failed And here is the part that I posted last time from config.log: /media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not found configure:3465: $? = 1 configure:3653: checking for suffix of object files configure:3675: /media/isaac/LFS/Source_Code/build-gcc/./gcc/xgcc -B/media/isaac/LFS/Source_Code/build-gcc/./gcc/ -B/tools/i686-elf/bin/ -B/tools/i686-elf/lib/ -isystem /tools/i686-elf/include -isystem /tools/i686-elf/sys-include -c -g -O2 conftest.c gt;amp;5 /media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not found configure:3679: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/; | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3693: error: in `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc': configure:3696: error: cannot compute suffix of object files: cannot compile I still don't understand what's causing the error and what I can do about it. Thank you very much, Isaac D. Cohen -- 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] gcc error cannot compute suffix of files
Hi, Yes, the script in section 2.2 returns "G++ compilation OK". Here is the full output: bash, version 4.3.48(1)-release /bin/sh - /bin/dash ERROR: /bin/sh does not point to bash Binutils: (GNU Binutils) 2.28 bison (GNU Bison) 3.0.4 /usr/bin/yacc - /usr/bin/bison.yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.25 diff (GNU diffutils) 3.3 find (GNU findutils) 4.7.0-git gawk: not an option: --version /usr/bin/awk - /usr/bin/mawk gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 (Ubuntu GLIBC 2.23-0ubuntu7) 2.23 grep (GNU grep) 2.25 gzip 1.6 Linux version 4.11.3-041103-generic (kernel@gomeisa) (gcc version 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2) ) #201705251233 SMP Thu May 25 16:34:52 UTC 2017 m4 (GNU M4) 1.4.17 GNU Make 4.1 GNU patch 2.7.5 Perl version='5.22.1'; sed (GNU sed) 4.2.2 tar (GNU tar) 1.28 texi2any (GNU texinfo) 6.1 xz (XZ Utils) 5.1.0alpha g++ compilation OK The only error I see is that /bin/sh points to /bin/dash instead of /bin/bash. But I don't see how that would be relevant here, if anywhere. Thank you very much, Isaac D. Cohen -- 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] gcc error cannot compute suffix of files
Hi, I checked the config.log file and found the error. But I don't know what it means. I included the lines leading up to the error below: /media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not found configure:3465: $? = 1 configure:3653: checking for suffix of object files configure:3675: /media/isaac/LFS/Source_Code/build-gcc/./gcc/xgcc -B/media/isaac/LFS/Source_Code/build-gcc/./gcc/ -B/tools/i686-elf/bin/ -B/tools/i686-elf/lib/ -isystem /tools/i686-elf/include -isystem /tools/i686-elf/sys-include -c -g -O2 conftest.c 5 /media/isaac/LFS/Source_Code/build-gcc/./gcc/as: 106: exec: -o: not found configure:3679: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/; | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3693: error: in `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc': configure:3696: error: cannot compute suffix of object files: cannot compile Thank you very much, Isaac D. Cohen PS. The download_prerequisites script can't be the problem.That script is included in the GCC folder itself. It would download the wrong versions of the prerequisites. -- 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] gcc error cannot compute suffix of files
Hi, While compiling GCC on the first pass I got the following error: checking for suffix of object files... configure: error: in `/media/isaac/LFS/Source_Code/build-gcc/i686-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Makefile:12212: recipe for target 'configure-target-libgcc' failed As the books says I used GCC 6.3.0 this time. I ran the download_prerequisites script after unpacking the zipped folder. So I have the correct versions of GMP, MPC and MPFR. What can be the problem? In the FAQ (https://gcc.gnu.org/wiki/FAQ#configure_suffix) it says an error like mine can either result from not running the download_prerequisites script, or from a bug in the compiler. My system compiler is gcc-5.4.0 and Imy system binutils is version 2.28. Can that be the problem? Or is there another reason it might happen on LFS? Thank you very much, Isaac D. Cohen -- 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] Error when compiling gcc, can't find /usr/include
Hi everyone, I recently started building an LFS and I a few questions. I am using LFS book version 8.0. On page 36 before building binutils (pass 1) the book says that all sources should be put in a directory where they will accessible from the chroot environment. Does this mean that I should chroot to /media/LFS/ before building binutils? The book doesn't say to do so, but I just want to make sure. Also, in the ./configure lines for both GCC and Binutils I noticed that whenever there is a path (besides --sysroot) is always begins with /tools. Is this because all paths here are offset from --sysroot=/media/LFS? Or does this have to do with chroot? Finally, the reason I'm asking all these questions is because when compiling gcc (I'm using version 3.4.6) I get the following error: The directory that should contain system headers does not exist: /media/isaac/LFS/usr/include Makefile:2569: recipe for target 'stmp-fixinc' failed make[1]: *** [stmp-fixinc] Error 1 What does this error mean? It seems like it is looking for a /usr/include directory on my LFS volume. But I thought that command before the build (that replaces /usr/include in gcc) was supposed to take care of that. Anyway, what can I do about this error? Thank you very much, Isaac D. Cohen PS. The reason I'm using such old versions of the packages (ex. gcc-4.3.6 and binutils 2.14) is because I have a book that goes through the Linux kernel part by part and explains how it works internally and I want to be able to follow along. The version used in the book is Linux kernel 2.6.11. If I'm going to use that kernel, I have to build the system out of packages from back then. -- 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