Re: [lfs-support] Compiling GCC pass 1 of Linux From Scratch
Hello everyone, On Tue, Oct 9, 2012 at 1:35 AM, Aleksandar Kuktin akuk...@gmail.com wrote: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 Just to be sure that I didn't do anything wrong, I started all over again and it compiled successfully. I'm pretty sure the requirements were correct since binutils compiled successfully and also pretty sure that I specified --enable-languages=c since it is specified in the LFS 7.2 book. I think it should've been environment variable value not set-I just noticed that logging in via 'su - lfs' doesn't execute .bashrc despite bash being the default shell. This time, I noticed something during configure (not sure if it was there last time since I don't have those logs). checking for version 0.11 (revision 0 or later) of PPL... no *** This configuration is not supported in the following subdirectories: target-libquadmath gnattools target-libada target-libstdc++-v3 target-libgfortran target-libgo target-libffi target-zlib target-libjava target-libobjc target-libgomp target-libmudflap target-libssp target-boehm-gc target-libitm (Any other directories should still work fine.) Is this something that should normally happen? Or should something more be done at this point? -- Arvind S Raj Research Associate Amrita Centre for Cyber Security, Amritapuri http://arvindsraj.wordpress.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] Compiling GCC pass 1 of Linux From Scratch
Hello everyone, I'm trying Linux from scratch and am really excited about it. I have encountered an error when I compile GCC. The error is http://paste.pound-python.org/show/26539/. I noticed that many others have faced this error(a few threads in the GCC mailing list) and there is a thread in LFS mailing list too but none have a solution(at least the ones I looked at). Could anyone help me out here by pointing me to right direction? Some info on the Ubuntu 12.04 machine I'm running. If any more information is required, do let me know and I'll gladly provide the same. Linux 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) -- Arvind S Raj Research Associate Amrita Centre for Cyber Security, Amritapuri http://arvindsraj.wordpress.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Compiling GCC pass 1 of Linux From Scratch
On 08/10/12 13:08, Arvind S Raj wrote: Hello everyone, I'm trying Linux from scratch and am really excited about it. I have encountered an error when I compile GCC. The error is http://paste.pound-python.org/show/26539/. I noticed that many others have faced this error(a few threads in the GCC mailing list) and there is a thread in LFS mailing list too but none have a solution(at least the ones I looked at). Could anyone help me out here by pointing me to right direction? Some info on the Ubuntu 12.04 machine I'm running. If any more information is required, do let me know and I'll gladly provide the same. Linux 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) -- Arvind S Raj Research Associate Amrita Centre for Cyber Security, Amritapuri http://arvindsraj.wordpress.com http://arvindsraj.wordpress.com/ I would post the output of host system requirements http://www.linuxfromscratch.org/lfs/view/7.2/prologue/hostreqs.html That info would help to start with -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Compiling GCC pass 1 of Linux From Scratch
Arvind S Raj wrote: Hello everyone, I'm trying Linux from scratch and am really excited about it. I have encountered an error when I compile GCC. The error is http://paste.pound-python.org/show/26539/. I noticed that many others have faced this error(a few threads in the GCC mailing list) and there is a thread in LFS mailing list too but none have a solution(at least the ones I looked at). Could anyone help me out here by pointing me to right direction? Some info on the Ubuntu 12.04 machine I'm running. If any more information is required, do let me know and I'll gladly provide the same. What is the output of the Host Requirements script in Section iii? Specifically, are the symbolic links correct? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Compiling GCC pass 1 of Linux From Scratch
On Mon, Oct 08, 2012 at 05:38:43PM +0530, Arvind S Raj wrote: Hello everyone, I'm trying Linux from scratch and am really excited about it. I have encountered an error when I compile GCC. The error is http://paste.pound-python.org/show/26539/. I noticed that many others have faced this error(a few threads in the GCC mailing list) and there is a thread in LFS mailing list too but none have a solution(at least the ones I looked at). Could anyone help me out here by pointing me to right direction? It would have been easier if you had pasted the error here, and omitted the host's 'gcc -v' output unless someone asked for it. The error is: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1 Some info on the Ubuntu 12.04 machine I'm running. If any more information is required, do let me know and I'll gladly provide the same. Linux 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ gcc -v I *think* the reports on the gnu/gcc lists are mostly irrelevant to this problem on LFS : we are doing a pseudo cross-compile, they are often trying to bring up a new platform, with a real cross-compile. But, they do show that this error is related to libstdc++ - more on this at the end. Since many of the lfs-related reports seem to be from ubuntu, did you check the host system requirements in the book's preface ? Best to fix any missing programs before starting. Also check that LFS and LFS_TGT match the book : /mnt/lfs and x86_64-lfs-linux-gnu. After checking those essential (lots of people on ubuntu have problems because they skip the prerequisite checks, or think they can change the values of those two variables with ease), the normal last-stop is to get down and dirty looking at the detailed output from config.log : there is more than one config.log file in gcc, you want the one which reportes the fatal error, and then you need to look at the actual error which the last program fragment reported, not the message which configure reports. However, I think I can point you to the problem : you should not be building c++ in gcc pass 1. In the 7.1 book there are 19 switches passed to configure. The 17th switch is --enable-languages=c. You appear to have missed that, and perhaps some of the others. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Compiling GCC pass 1 of Linux From Scratch
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 I *think* I had something like this when first compiling a 32-bit subsystem for my LFS. Please, please, copy and paste more of the compilation log. At least 4-5 aditional commands executed. I will then untar my old logs and see if I can find a match. What are the architectures involved? What is the architecture you are building on and what is the target architecture? Please post the beginning of configure's output, so that it includes the architectures (host, build, target). -- Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page