LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   5.10. GCC-4.5.1 - Pass 2(lfs-6.7-pageno-46) (https://www.linuxquestions.org/questions/linux-from-scratch-13/5-10-gcc-4-5-1-pass-2-lfs-6-7-pageno-46-a-873537/)

janakiramulu 04-07-2011 03:32 AM

5.10. GCC-4.5.1 - Pass 2(lfs-6.7-pageno-46)
 
5.10. GCC-4.5.1 - Pass 2
lfs:/mnt/lfs/sources$ tar -jxf gcc-4.5.1.tar.bz2
lfs:/mnt/lfs/sources$ cd gcc-4.5.1

lfs:/mnt/lfs/sources/gcc-4.5.1$ patch -Np1 -i ../gcc-4.5.1-startfiles_fix-1.patch
patching file gcc/gcc.c
Hunk #1 succeeded at 7083 with fuzz 1 (offset 713 lines).

lfs:/mnt/lfs/sources/gcc-4.5.1$ cp -v gcc/Makefile.in{,.orig}
`gcc/Makefile.in' -> `gcc/Makefile.in.orig'

lfs:/mnt/lfs/sources/gcc-4.5.1$ sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in

lfs:/mnt/lfs/sources/gcc-4.5.1$ cp -v gcc/Makefile.in{,.tmp}
`gcc/Makefile.in' -> `gcc/Makefile.in.tmp'

lfs:/mnt/lfs/sources/gcc-4.5.1$ sed 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
> > gcc/Makefile.in


////////////////////////////////////////////////////
lfs6.7(page no-46)
--------------------------------
for file in \
$(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
cp -uv $file{,.orig}
sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
-e 's@/usr@/tools@g' $file.orig > $file
echo '
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0
#define STANDARD_STARTFILE_PREFIX_1 ""
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
touch $file.orig
done
----------------------------------------------

lfs:/mnt/lfs/sources/gcc-4.5.1$ $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
bash: gcc/config/cris/linux.h: Permission denied

here i am strucking,plz any help

druuna 04-07-2011 09:27 AM

Don't double post the same question, it is against the LQ rules.

Continue in this thread: strucking gcc-4.5.1-pass2(lfs-6.7)

Reported.

XavierP 04-07-2011 01:01 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 07:24 AM.