Hi,

Any idea about this issue?
this still pending....





> I dont missed, the tail output that I send is from a unpatched gcc source.
> follow lfs's history:
>
>  tar jxf gcc-4.1.1.tar.bz2
>   cd gcc-4.1.1
>  patch -Np1 -i ../gcc-4.1.1-PR20425-1.patch
>  patch -Np1 -i ../gcc-4.1.1-specs-1.patch
>  patch -Np1 -i ../gcc-4.1.1-posix-1.patch
>  patch -Np1 -i ../gcc-4.1.1-cross_search_paths-1.patch
>  echo "
> #undef STARTFILE_PREFIX_SPEC
> #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h
>  cp -v gcc/Makefile.in{,.orig}
>  sed -e "[EMAIL PROTECTED](^CROSS_SYSTEM_HEADER_DIR =\)[EMAIL PROTECTED] 
> /tools/[EMAIL PROTECTED]"
> gcc/Makefile.in.orig > gcc/Makefile.in
>  cp -v configure{,.orig}
>  sed -e  '/FLAGS_FOR_TARGET.*\/lib\//[EMAIL PROTECTED] ]*/lib/@@g' 
> configure.orig
>>configure
>  mkdir -v ../gcc-build
> cd ../gcc-build
>  ../gcc-4.1.1/configure --prefix=/cross-tools     --target=${LFS_TARGET}
> --host=${LFS_HOST}     --with-local-prefix=/tools --disable-nls
> --enable-shared     --enable-languages=c,c++ --enable-__cxa_atexit
> --enable-c99 --enable-long-long --enable-threads=posix
> make AS_FOR_TARGET="${LFS_TARGET}-as"     LD_FOR_TARGET="${LFS_TARGET}-ld"
>
> ...
> ..
> ...
> .
>
> checking float.h usability... yes
> checking float.h presence... yes
> checking for float.h... yes
> checking for endian.h... (cached) yes
> checking for inttypes.h... (cached) yes
> checking locale.h usability... yes
> checking locale.h presence... yes
> checking for locale.h... yes
> checking for float.h... (cached) yes
> checking for stdint.h... (cached) yes
> checking for ld that supports -Wl,-z,relro... yes
> checking for main in -lm... configure: error: Link tests are not allowed
> after
> GCC_NO_EXECUTABLES.
> make[1]: *** [configure-target-libstdc++-v3] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
> make: *** [all] Error 2
>
> lfs:/mnt/lfs/sources/gcc-build$ cd ../gcc-4.1.1
> lfs:/mnt/lfs/sources/gcc-4.1.1$ tail -n 5 gcc/config/linux.h
> #undef STANDARD_INCLUDE_DIR
> #define STANDARD_INCLUDE_DIR 0
>
> #undef STARTFILE_PREFIX_SPEC
> #define STARTFILE_PREFIX_SPEC "/tools/lib/"
>
>
> Regards,
>
> Marlon
>
>> sysadmin wrote:
>> > lfs:/mnt/lfs/sources/gcc-4.1.1$ tail -n 5 gcc/config/linux.h
>> > /* Determine whether the entire c99 runtime
>> >    is present in the runtime library.  */
>> > #define TARGET_C99_FUNCTIONS 1
>> >
>> > #define TARGET_POSIX_IO
>>
>> You missed a very important step. Here's what you missed.
>>
>> Change the StartFile Spec to point to the correct library location:
>>
>> echo "
>> #undef STARTFILE_PREFIX_SPEC
>> #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h


Regards,

Marlon



_______________________________________________
Clfs-support mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/clfs-support

Reply via email to