AW: gcc 4.0.2 build error

Back Michael (extern) michael.back.ext at siemens.com
Mon Dec 5 06:07:53 PST 2005


Hi Matt.
Thanks for answer

PATH
/cross-tools/bin:/bin:/usr/bin

Which gcc
/usr/bin/gcc

gcc -dumpspec
*asm: %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} 
%{m32:--32} *asm_debug: %{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}} 
*asm_final: %| *asm_options: %a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o 
%d%w%u%O} *invoke_as: %{!S:-o %{|!pipe:%g.s} | as %(asm_options) 
%{!pipe:%g.s} %A } *cpp: %(cpp_cpu) %{fPIC|fpic|fPIE|fpie:-D__PIC__ 
-D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} 
%{!m32:-D__LONG_MAX__=9223372036854775807L -D__LP64__ -D_LP64} 
*cpp_options: %(cpp_unique_options) %{std*} %{d*} %{W*} %{w} 
%{pedantic*} %{fshow-column} %{fno-show-column} 
%{fsigned-char&funsigned-char} %{fleading-underscore} 
%{fno-leading-underscore} %{fno-operator-names} %{ftabstop=*} 
*cpp_unique_options: %{C:%{!E:%eGNU C does not support -C without using 
-E}} %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I %{MD:-MD 
%{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} 
%{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ 
%*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 
-D__GNUC_PATCHLEVEL__=%v3 -D__GXX_ABI_VERSION=102} 
%{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} 
%{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} 
%{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__} 
%{ffreestanding:-D__STDC_HOSTED__=0} %{fno-hosted:-D__STDC_HOSTED__=0} 
%{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=1}} %{remap} %{g3:-dD} 
%{H} %C %{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\ 
unsigned\ int} %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}} 
*trad_capable_cpp: %{traditional|ftraditional|traditional-cpp:trad}cpp0 
*cc1: %(cc1_cpu) %{profile:-p} *cc1_options: 
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are 
incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{g*} 
%{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi} %{traditional} 
%{v:-version} %{pg:-p} %{p} %{f*} %{Qn:-fno-ident} %{--help:--help} 
%{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o 
%b.s}}} %{fsyntax-only:-o %j} %{-param*} *cc1plus: *link_gcc_c_sequence: 
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G} 
*endfile: %{!shared:%{!pie:crtend.o%s}} %{shared|pie:crtendS.o%s} 
crtn.o%s *link: %{!static:--eh-frame-hdr} %{!m32:-m elf_x86_64 -Y 
P,/usr/lib64} %{m32:-m elf_i386} %{shared:-shared} %{!shared: %{!static: 
%{rdynamic:-export-dynamic} %{m32:%{!dynamic-linker:-dynamic-linker 
/lib/ld-linux.so.2}} %{!m32:%{!dynamic-linker:-dynamic-linker 
/lib64/ld-linux-x86-64.so.2}}} %{static:-static}} *lib: 
%{pthread:-lpthread} %{shared:-lc} %{!shared:%{mieee-fp:-lieee} 
%{profile:-lc_p}%{!profile:-lc}} *libgcc: %{static|static-libgcc:-lgcc 
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc 
-lgcc_eh}%{shared-libgcc:-lgcc_s%M 
-lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}} 
*startfile: %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} 
%{!p:%{profile:gcrt1.o%s} 
%{!profile:%{pie:Scrt1.o%s}%{!pie:crt1.o%s}}}}} crti.o%s 
%{static:crtbeginT.o%s} %{!static:%{!shared:%{!pie:crtbegin.o%s}} 
%{shared|pie:crtbeginS.o%s}} *switches_need_spaces: *predefines: 
-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem(posix) *cross_compile: 
0 *version: 3.2.3 *multilib: . !m64 !m32;64:../lib64 m64 !m32;32:../lib 
!m64 m32; *multilib_defaults: m64 *multilib_extra: *multilib_matches: 
m64 m64;m32 m32; *multilib_exclusions: *multilib_options: m64/m32 
*linker: collect2 *link_libgcc: %D *md_exec_prefix: 
*md_startfile_prefix: *md_startfile_prefix_1: *cpp_cpu_default: 
-D__tune_athlon__ -D__tune_athlon_sse__ *cpp_cpu: 
%{m32:%(cpp_cpu32)}%{!m32:%(cpp_cpu64)} %(cpp_cpucommon) *cpp_cpu32: 
-Acpu=i386 -Amachine=i386 %{!ansi:%{!std=c*:%{!std=i*:-Di386}}} -D__i386 
-D__i386__ %(cpp_cpu32sizet) *cpp_cpu64: -Acpu=x86_64 -Amachine=x86_64 
-D__x86_64 -D__x86_64__ %(cpp_cpu64sizet) *cpp_cpu32sizet: 
-D__SIZE_TYPE__=unsigned\ int -D__PTRDIFF_TYPE__=int *cpp_cpu64sizet: 
-D__SIZE_TYPE__=unsigned\ long\ int -D__PTRDIFF_TYPE__=long\ int 
*cpp_cpucommon: %{march=i386:%{!mcpu*:-D__tune_i386__ 
}}%{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ 
}}%{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium 
-D__pentium__ %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ 
}}%{march=pentium-mmx:-D__i586 -D__i586__ -D__pentium -D__pentium__ 
-D__pentium__mmx__ %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ 
-D__tune_pentium_mmx__}}%{march=pentiumpro|march=i686|march=pentium2|march=p
entium3:-D__i686 
-D__i686__ -D__pentiumpro -D__pentiumpro__ %{!mcpu*:-D__tune_i686__ 
-D__tune_pentiumpro__ }}%{march=pentium2|march=pentium3: -D__pentium2 
-D__pentium2__ %{!mcpu*:-D__tune_pentium2__ }}%{march=pentium3: 
-D__pentium3 -D__pentium3__ %{!mcpu*:-D__tune_pentium3__ 
}}%{march=k6:-D__k6 -D__k6__ %{!mcpu*:-D__tune_k6__ 
}}%{march=k6-2:-D__k6 -D__k6__ -D__k6_2__ %{!mcpu*:-D__tune_k6__ 
-D__tune_k6_2__ }}%{march=k6-3:-D__k6 -D__k6__ -D__k6_3__ 
%{!mcpu*:-D__tune_k6__ -D__tune_k6_3__ 
}}%{march=athlon|march=athlon-tbird:-D__athlon -D__athlon__ 
%{!mcpu*:-D__tune_athlon__ 
}}%{march=athlon-4|march=athlon-xp|march=athlon-mp:-D__athlon 
-D__athlon__ -D__athlon_sse__ %{!mcpu*:-D__tune_athlon__ 
-D__tune_athlon_sse__ 
}}%{march=pentium4|march=prescott|march=nocona:-D__pentium4 
-D__pentium4__ %{!mcpu*:-D__tune_pentium4__ 
}}%{m386|mcpu=i386:-D__tune_i386__ }%{m486|mcpu=i486:-D__tune_i486__ 
}%{mpentium|mcpu=pentium|mcpu=i586|mcpu=pentium-mmx:-D__tune_i586__ 
-D__tune_pentium__ 
}%{mpentiumpro|mcpu=pentiumpro|mcpu=i686|mcpu=pentium2|mcpu=pentium3:-D__tun
e_i686__ 
-D__tune_pentiumpro__ }%{mcpu=k6|mcpu=k6-2|mcpu=k6-3:-D__tune_k6__ 
}%{mcpu=athlon|mcpu=athlon-tbird|mcpu=athlon-4|mcpu=athlon-xp|mcpu=athlon-mp
:-D__tune_athlon__ 
}%{mcpu=athlon-4|mcpu=athlon-xp|mcpu=athlon-mp:-D__tune_athlon_sse__ 
}%{mcpu=pentium4|march=prescott|march=nocona:-D__tune_pentium4__ 
}%{march=athlon-xp|march=athlon-mp|march=pentium3|march=pentium4|march=presc
ott|march=nocona|msse|msse2|msse3|mpni:-D__SSE__ 
}%{march=pentium-mmx|march=k6|march=k6-2|march=k6-3|march=athlon|march=athlo
n-tbird|march=athlon-4|march=athlon-xp|march=athlon-mp|march=pentium2|march=
pentium3|march=pentium4|march=prescott|march=nocona|mmx|msse|msse2|msse3|mpn
i|m3dnow: 
-D__MMX__ 
}%{march=k6-2|march=k6-3|march=athlon|march=athlon-tbird|march=athlon-4|marc
h=athlon-xp|march=athlon-mp|m3dnow: 
-D__3dNOW__ 
}%{march=athlon|march=athlon-tbird|march=athlon-4|march=athlon-xp|march=athl
on-mp: 
-D__3dNOW_A__ 
}%{march=pentium4|march=prescott|march=nocona|msse2|msse3|mpni: 
-D__SSE2__ }%{march=prescott|march=nocona|msse3|mpni: -D__SSE3__ 
-D__PNI__ 
}%{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}} 
*cc1_cpu: %{!mcpu*: %{m386:-mcpu=i386 %n`-m386' is deprecated. Use 
`-march=i386' or `-mcpu=i386' instead. } %{m486:-mcpu=i486 %n`-m486' is 
deprecated. Use `-march=i486' or `-mcpu=i486' instead. } 
%{mpentium:-mcpu=pentium %n`-mpentium' is deprecated. Use 
`-march=pentium' or `-mcpu=pentium' instead. } 
%{mpentiumpro:-mcpu=pentiumpro %n`-mpentiumpro' is deprecated. Use 
`-march=pentiumpro' or `-mcpu=pentiumpro' instead. }} %{mpni:-msse3} 
%{mno-pni:-mno-sse3} %{mintel-syntax:-masm=intel %n`-mintel-syntax' is 
deprecated. Use `-masm=intel' instead. } %{mno-intel-syntax:-masm=att 
%n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead. } 
*link_command: %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l 
%{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} 
%{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} 
%(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} 
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

uname -a
Linux tux.mrz.med.siemens.de 2.6.9-RedHawk-2.3-custom #2 SMP Thu Aug 4 
09:43:12 CEST 2005 x86_64 x86_64 x86_64 GNU/Linux

I hope these are useful

Thanks
 Michael
 

-----Ursprüngliche Nachricht-----
Von: cross-lfs-bounces at linuxfromscratch.org
[mailto:cross-lfs-bounces at linuxfromscratch.org] Im Auftrag von Matt Darcy
Gesendet: Montag, 5. Dezember 2005 13:25
An: Cross-LFS Discussion List
Betreff: Re: gcc 4.0.2 build error

Back Michael (extern) wrote:
> Hey!
> I try to build CLFS develop on a x86_64 machine for a x86_64 machine!
> Why crosscomplie for the same machine? I tried LFS ... but it doesn't work
> and I want a reallt 64-Bit LFS without 32-bit things.
> Now the error I get:
> By doing GCC-4.0.2 - Cross Compiler Final
>
(<http://lfs.pagefault.net/clfs/view/cross-lfs/x86_64-64/cross-tools/gcc-fin
> al.html
>
<http://lfs.pagefault.net/clfs/view/cross-lfs/x86_64-64/cross-tools/gcc-fina
> l.html> >)
> I get the ERROR:
> /cross-tools/x86_64-pc-linux-gnu/bin/ld: crti.o: No such file: No such
file
> or directory
> 
> Any useful help for me?
> 
> Thanks
>  Michael
> 


Hello Michael,

yes you are correct that building a 64bit machine from an 64bit host 
using the LFS instructions won't work, so you have probably done the 
easier route of cross building it.

would you please show use the follow settings for your system please (in 
the same state it was in when you did this build and got the error)

PATH
which gcc
gcc -dumpspecs
uname -a

Thanks,

Matt.




-- 
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page



More information about the cross-lfs mailing list