ssp test failed

Nabil SEFRIOUI admin at osmium-work.com
Fri Feb 25 08:12:22 PST 2005


Le Vendredi 25 Février 2005 13:08, Robert Connolly a écrit :
> On February 25, 2005 02:42 am, Nabil SEFRIOUI wrote:
> > hi
> >
> > i'm building a hlfs system, and when try to compile test.c program
> > at section  5.12.3. i got this :
> > gcc: installation problem, cannot exec `*cpp_pie:': No such file or
> > directory
> >
> > before this step, all tests suite was ok
> >
> > what's wrong ?
>
> Do:
> gcc -dumpspecs > $(gcc --print-file specs)
>
> make the hardened-spes.sh script again, and retry.

i have already do this before, the result is the same.

here is the content 
of /tools/bin/../lib/gcc/i686-tools-linux-gnu/3.4.3/specs after 
executing hardened-spes.sh :

*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}

*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 %|.s |
 as %(asm_options) %|.s %A }

*cpp:
%(cpp_pie) %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}

*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} 
%{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} 
%{undef}

*cpp_debug_options:
%{d*}

*cpp_unique_options:
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} 
%{nostdinc*} %{C} %{CC} %{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 %*}}}}} %{trigraphs} 
%{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}

*trad_capable_cpp:
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}

*cc1:
%(cc1_pie) %(cc1_ssp) %(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*} %{c|S:
%{o*:-auxbase-strip %*
}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} 
%{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} 
%{Qn:-fno-ident}
 %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:
%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*}
*cc1plus:%(cc1_pie) %(cc1_ssp)

*link_gcc_c_sequence:
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}

*endfile:
%{shared|!no-pie|pie:crtendS.o%s;:crtend.o%s} crtn.o%s

*link:
%{!static:--eh-frame-hdr} -m elf_i386 %{shared:-shared}   %{!shared:     
%{!ibcs:       %{!static:         %{rdynamic:-export-dynamic}         
%{!dynami
c-linker:-dynamic-linker /tools/lib/ld-linux.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-libgcc:-lgcc --as-needed -lgcc_s%M 
--no-as-needed}%{shared-libgcc:-lgcc_s%M%{
!shared: -lgcc}}}}

*startfile:
%{!shared: %{pg|p|profile:gcrt1.o%s;!no-pie|pie:Scrt1.o%s;:crt1.o%s}}    
crti.o%s %{static:crtbeginT.o%s;shared|!no-pie|
pie:crtbeginS.o%s;:crtbegin.o%s}

*switches_need_spaces:


*cross_compile:
0

*version:
3.4.3

*multilib:
. ;

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*multilib_exclusions:


*multilib_options:


*linker:
collect2

*link_libgcc:
%D

*md_exec_prefix:


*md_startfile_prefix:


*md_startfile_prefix_1:


*startfile_prefix_spec:


*sysroot_suffix_spec:


*sysroot_hdrs_suffix_spec:

*cc1_cpu:
%{!mtune*: %{m386:mtune=i386 %n`-m386' is deprecated. Use `-march=i386' 
or `-mtune=i386' instead.
} %{m486:-mtune=i486 %n`-m486' is deprecated. Use `-march=i486' or 
`-mtune=i486' instead.
} %{mpentium:-mtune=pentium %n`-mpentium' is deprecated. Use 
`-march=pentium' or `-mtune=pentium' instead.
} %{mpentiumpro:-mtune=pentiumpro %n`-mpentiumpro' is deprecated. Use 
`-march=pentiumpro' or `-mtune=pentiumpro' instead.
} %{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or 
'-march=' instead.
}} %<mcpu=* %{mpni:-msse3 %n`-mpni' is deprecated. Use `-msse3' instead.
} %{mno-pni:-mno-sse3 %n`-mno-pni' is deprecated. Use `-mno-sse3' 
instead.
} %{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 %(link_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 %{fprofile-arcs|fprofile-generate:-lgcov}    
%{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}}    %{!A:
%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

*cc1_ssp: %{!fno-stack-protector*: -fstack-protector-all}
*cpp_pie: %{!static:%{!no-pie:%{!pie: -D__PIC__ -DPIC}}}
*cc1_pie: %{!static:%{!no-pie:%{!pie: -fPIC}}}
*link_pie: %{pie:-pie}%{!no-pie:%{!static:%{!Bstatic:%{!i:%{!r: 
%{!nonow: -z now} %{!norelro: -z relro} %{!shared:%{!Bshareable:%{!pie: 
-pie}}}}}}}}

-- 
__________________________________
Osmium Work - Ingénierie Open Source
http://www.osmium-work.com/



More information about the hlfs-dev mailing list