Re: confused at chapter 5.6
Rajinder Yadav wrote: Hi Justin, after Michael Tsang feedback on where to put mpfr and gmp, I went to the GCC build page and it states that if the sources are put under the gcc source, they will get built when gcc is built: Ref: http://gcc.gnu.org/install/prerequisites.html Multiple Precision Library (GMP) version 4.2 (or later) Necessary to build GCC. If you do not have it installed in your library search path, you will have to configure with the --with-gmp configure option. See also --with-gmp-lib and --with-gmp-include. Alternatively, if a GMP source distribution is found in a subdirectory of your GCC sources named gmp, it will be built together with GCC. Kind Regards, Rajinder Yadav --- On Sun, 7/5/09, Justin P. Mattockjustinmatt...@gmail.com wrote: From: Justin P. Mattockjustinmatt...@gmail.com Subject: Re: confused at chapter 5.6 To: LFS Support Listlfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 12:25 AM Rajinder Yadav wrote: Hi Justin, thanks that cleared things up and I was able to proceed. Also, I was able to build and install GCC without any issues but I didn't build the supporting packages (mpfr and gmp) and I don't have the devel package for them installed. I guess it would be safe to rebuild GCC =) after building mpfr and gmp! Kind Regards, Rajinder Yadav --- On Sat, 7/4/09, Justin P. Mattockjustinmatt...@gmail.com wrote: From: Justin P. Mattockjustinmatt...@gmail.com Subject: Re: confused at chapter 5.6 To: LFS Support Listlfs-support@linuxfromscratch.org Received: Saturday, July 4, 2009, 11:04 PM Rajinder Yadav wrote: I am confused at what needs to be done in chapter 5.6. Linux-2.6.27.4 API Headers. do I need to unzip the linux kernel at this point? which direction is this command executed from? where is 'headers_check' defined for 'make headers_check' step? Also in the prior step for building gcc, were we just to unzip and rename files mpfr and gmp without building these packages? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ Well firstly you would have untar the tar ball from kernel.org, then move into the new kernel's source tree to execute those commands. or if your distribution already has a kernel move to it's source tree to execute those commands. mpfr and gmp need to be built and installed before compiling gcc(or use the hosts systems gmp/mpfr i.g. apt-get install * if your on debian/ubuntu). Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca Whatever distro you have probably has those headers and libs, but once you boot into the new system and decide to compile gcc, you probably will need those. (but could be wrong) As for compiling mpfr/gmp, Ive heard about putting those into the gcc source tree, but never did that approach I just compiled separately and then told gcc where they are located. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ Cool thanks for that, makes things easier. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
SELinux
I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
On Sunday 05 July 2009 16:43:10 Rajinder Yadav wrote: I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ In which ver. and ch. does the book told you to do so? The book does not told me to do so (I am using SVN-20090629). Also, you need to enable SELinux in the kernel to make it works. Michael Tsang signature.asc Description: This is a digitally signed message part. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
--- On Sun, 7/5/09, Michael Tsang mikl...@gmail.com wrote: From: Michael Tsang mikl...@gmail.com Subject: Re: SELinux To: LFS Support List lfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 5:21 AM On Sunday 05 July 2009 16:43:10 Rajinder Yadav wrote: I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ In which ver. and ch. does the book told you to do so? The book does not told me to do so (I am using SVN-20090629). Also, you need to enable SELinux in the kernel to make it works. Michael Tsang -Inline Attachment Follows- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Hi Micheal, I have been using the online book (Linux From Scratch - Version 6.4 ) as stated in section 5.7.1. Installation of Glibc http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html Maybe I should use the same one you're going by in SVN =) Thank you for the info, will incorporate the changes Kind Regards, Rajinder Yadav __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
Michael Tsang wrote: On Sunday 05 July 2009 16:43:10 Rajinder Yadav wrote: I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ In which ver. and ch. does the book told you to do so? The book does not told me to do so (I am using SVN-20090629). Also, you need to enable SELinux in the kernel to make it works. Michael Tsang Even under hlfs there's not much about SELinux. If you wanted SELinux I would imagine you would start by having all of the security headers/libs(libselinux,libaudit,libattr,etc..) before building libc, then after libc making sure all other apps/libs that give an SElinux switch are turned on. Then once thats done grab refpolicy and start locking down your system. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
On Sun, Jul 5, 2009 at 3:43 AM, Rajinder Yadavdev...@ymail.com wrote: The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ Althrought this is unleated, I ROFL'D at the above line. I don't think Yahoo knows that this is a Linux mailing list... William -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
William Immendorf wrote: On Sun, Jul 5, 2009 at 3:43 AM, Rajinder Yadavdev...@ymail.com wrote: The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ Althrought this is unleated, I ROFL'D at the above line. I don't think Yahoo knows that this is a Linux mailing list... William I was wondering were/what that was. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
--- On Sun, 7/5/09, Justin P. Mattock justinmatt...@gmail.com wrote: From: Justin P. Mattock justinmatt...@gmail.com Subject: Re: SELinux To: LFS Support List lfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 10:46 AM Michael Tsang wrote: On Sunday 05 July 2009 16:43:10 Rajinder Yadav wrote: I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ In which ver. and ch. does the book told you to do so? The book does not told me to do so (I am using SVN-20090629). Also, you need to enable SELinux in the kernel to make it works. Michael Tsang Even under hlfs there's not much about SELinux. If you wanted SELinux I would imagine you would start by having all of the security headers/libs(libselinux,libaudit,libattr,etc..) before building libc, then after libc making sure all other apps/libs that give an SElinux switch are turned on. Then once thats done grab refpolicy and start locking down your system. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Hi Justin, thank you for the pointers, SeLinux LFS sounds like a plan down the road, something else to get into and learn =) Kind Regards, Rajinder Yadav __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: SELinux
Rajinder Yadav wrote: --- On Sun, 7/5/09, Justin P. Mattockjustinmatt...@gmail.com wrote: From: Justin P. Mattockjustinmatt...@gmail.com Subject: Re: SELinux To: LFS Support Listlfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 10:46 AM Michael Tsang wrote: On Sunday 05 July 2009 16:43:10 Rajinder Yadav wrote: I noticed one of the switch passed when building glibc is --without-selinux I assume the resulting LFS system, will it be missing Security Enhancement? If so what is required to build a SE LFS system. I assume SE is part of the Linux kernel and thus needs to be built as part of the Linux kernel? Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ In which ver. and ch. does the book told you to do so? The book does not told me to do so (I am using SVN-20090629). Also, you need to enable SELinux in the kernel to make it works. Michael Tsang Even under hlfs there's not much about SELinux. If you wanted SELinux I would imagine you would start by having all of the security headers/libs(libselinux,libaudit,libattr,etc..) before building libc, then after libc making sure all other apps/libs that give an SElinux switch are turned on. Then once thats done grab refpolicy and start locking down your system. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Hi Justin, thank you for the pointers, SeLinux LFS sounds like a plan down the road, something else to get into and learn =) Kind Regards, Rajinder Yadav __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ Well, If you need to its possible, I myself run an LFS system with an SELinux policy running(latest refpolicy from tresys). just remember that you need to tell your packages early in the build process that you want to enable SELinux, or for example coreutils ls -Z won't show the contexts) Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
lib paths, Section: 5.9.1
Linux From Scratch - Version SVN-20090629 Section: 5.9.1. Installation of Binutils Question about the 3 commands: make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib cp -v ld/ld-new /tools/bin I assume the 1st command cleans the current build ld directory The 2nd command doesn't make sense to me. If we're building off the LFS bintools in the 2nd phase, why a need to point to the host system lib files '/use/lib:/lib' should the 2nd statement not be: make -C ld LIB_PATH=/tools/lib Kind Regards, Rajinder Yadav __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lib paths, Section: 5.9.1
Rajinder Yadav wrote: should the 2nd statement not be: make -C ld LIB_PATH=/tools/lib Not from within the chroot environment in Chapter 6. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lib paths, Section: 5.9.1
--- On Sun, 7/5/09, Bruce Dubbs bruce.du...@gmail.com wrote: From: Bruce Dubbs bruce.du...@gmail.com Subject: Re: lib paths, Section: 5.9.1 To: LFS Support List lfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 7:58 PM Rajinder Yadav wrote: should the 2nd statement not be: make -C ld LIB_PATH=/tools/lib Not from within the chroot environment in Chapter 6. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I am not at chapter 6 yet on in chroot, not sure if your reply answer my question? Kind Regards, Rajinder Yadav __ Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lib paths, Section: 5.9.1
Rajinder Yadav wrote: --- On Sun, 7/5/09, Bruce Dubbs bruce.du...@gmail.com wrote: should the 2nd statement not be: make -C ld LIB_PATH=/tools/lib Not from within the chroot environment in Chapter 6. I am not at chapter 6 yet on in chroot, not sure if your reply answer my question? But you will be in Chapter 6. Yes, it was a reply to your question. BTW, you are bottom posting. That's good. Please also trim the quoted material to the minimum needed to maintain context. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
error building, gcc pass 2
Linux From Scratch - Version SVN-20090629 On CentOS 5.3 $ uname -a Linux localhost.localdomain 2.6.18-128.1.16.el5 #1 SMP Tue Jun 30 06:10:28 EDT 2009 i686 athlon i386 GNU/Linux I got a following build error after make step on pg 47 /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file or directory I am logged in as devguy Here is the content of the director $ls -l /tools/i686-pc-linux-gnu/bin/ total 25948 -rwxr-xr-x 2 devguy devguy 2872501 Jul 6 07:23 ar -rwxr-xr-x 2 devguy devguy 4012199 Jul 6 07:24 as -rwxr-xr-x 2 devguy devguy 3645665 Jul 6 07:24 ld -rwxr-xr-x 2 devguy devguy 2781169 Jul 6 07:24 nm -rwxr-xr-x 2 devguy devguy 3268788 Jul 6 07:23 objcopy -rwxr-xr-x 2 devguy devguy 3762249 Jul 6 07:23 objdump -rwxr-xr-x 2 devguy devguy 2872532 Jul 6 07:23 ranlib -rwxr-xr-x 2 devguy devguy 3268787 Jul 6 07:24 strip I've copied the last few line of the build output: # @multilib_dir@ is not really necessary, but sometimes it has # more uses than just a directory name. /bin/sh ../../../gcc-4.4.0/libgcc/../mkinstalldirs . /mnt/custom_linux/sources/gcc-build/./gcc/xgcc -B/mnt/custom_linux/sources/gcc-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o tf-signs_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc rm -f ./libgcc_s.so if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 ln -s libgcc_s.so.1 ./libgcc_s.so /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file or directory collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/mnt/custom_linux/sources/gcc-build/i686-pc-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/custom_linux/sources/gcc-build' make: *** [all] Error 2 Kind Regards, Rajinder Yadav __ Get the name you've always wanted @ymail.com or @rocketmail.com! Go to http://ca.promos.yahoo.com/jacko/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: error building, gcc pass 2
Linux From Scratch - Version SVN-20090629 On CentOS 5.3 $ uname -a Linux localhost.localdomain 2.6.18-128.1.16.el5 #1 SMP Tue Jun 30 06:10:28 EDT 2009 i686 athlon i386 GNU/Linux I got a following build error after make step on pg 47 /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file or directory I am logged in as devguy Here is the content of the director $ls -l /tools/i686-pc-linux-gnu/bin/ total 25948 -rwxr-xr-x 2 devguy devguy 2872501 Jul 6 07:23 ar -rwxr-xr-x 2 devguy devguy 4012199 Jul 6 07:24 as -rwxr-xr-x 2 devguy devguy 3645665 Jul 6 07:24 ld -rwxr-xr-x 2 devguy devguy 2781169 Jul 6 07:24 nm -rwxr-xr-x 2 devguy devguy 3268788 Jul 6 07:23 objcopy -rwxr-xr-x 2 devguy devguy 3762249 Jul 6 07:23 objdump -rwxr-xr-x 2 devguy devguy 2872532 Jul 6 07:23 ranlib -rwxr-xr-x 2 devguy devguy 3268787 Jul 6 07:24 strip I've copied the last few line of the build output: # @multilib_dir@ is not really necessary, but sometimes it has # more uses than just a directory name. /bin/sh ../../../gcc-4.4.0/libgcc/../mkinstalldirs . /mnt/custom_linux/sources/gcc-build/./gcc/xgcc -B/mnt/custom_linux/sources/gcc-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o tf-signs_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc rm -f ./libgcc_s.so if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 ln -s libgcc_s.so.1 ./libgcc_s.so /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file or directory collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/mnt/custom_linux/sources/gcc-build/i686-pc-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/custom_linux/sources/gcc-build' make: *** [all] Error 2 Also $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) devguy:/mnt/custom_linux/sources/gcc-build$ __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lib paths, Section: 5.9.1
On Monday 06 July 2009 07:31:58 Rajinder Yadav wrote: make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib cp -v ld/ld-new /tools/bin The 2nd and 3rd command creates /tools/bin/ld-new After doing that: /tools/bin/ld uses /tools/lib for linking /tools/bin/ld-new uses /usr/lib:/lib for linking If you didn't do so, you will need to install binutils 2 times in chapter 6: 0. original /tools/bin/ld uses /tools/lib for linking. 1. create a /usr/bin/ld that uses /usr/lib:/lib for linking but itself still linked to /tools/lib/* 2. create a /usr/bin/ld that uses /usr/lib:/lib for linking and itself linked to /lib/* signature.asc Description: This is a digitally signed message part. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: error building, gcc pass 2
On Monday 06 July 2009 10:45:28 Rajinder Yadav wrote: (omitted) It seems that you have used the wrong gcc. If you are following the book strictly, you should be using $LFS-TGT-gcc when compiling Michael Tsang signature.asc Description: This is a digitally signed message part. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: error building, gcc pass 2
--- On Sun, 7/5/09, Michael Tsang mikl...@gmail.com wrote: From: Michael Tsang mikl...@gmail.com Subject: Re: error building, gcc pass 2 To: LFS Support List lfs-support@linuxfromscratch.org Received: Sunday, July 5, 2009, 10:53 PM On Monday 06 July 2009 10:45:28 Rajinder Yadav wrote: (omitted) It seems that you have used the wrong gcc. If you are following the book strictly, you should be using $LFS-TGT-gcc when compiling Michael Tsang Michael got that thanks! After su, I sourced .bash_profile instead .bashrc Kind Regards, Rajinder Yadav __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page