This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to pass gcc extra configs with special character to ct-ng


ct-ng version 1.8

I want pass below extra config to gcc-core and gcc

--with-specs=%{funwind-tables|
fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}
%{O2:%{!fno-remove-local-statics: -fremove-local-statics}}
%{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics:
-fremove-local-statics}}}

The error will be
/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/functions: line 82: printf:
`{': invalid format character
[ERROR]ÂÂÂ Build failed in step 'Installing static core C compiler'
[ERROR]ÂÂÂ Error happened in
'/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/functions' in function
'CT_DoLog' (line unknown, sorry)
[ERROR]ÂÂÂÂÂÂÂÂÂ called from
'/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/functions' at line # 119 in
function 'CT_DoExecLog'
[ERROR]ÂÂÂÂÂÂÂÂÂ called from
'/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/build/cc/gcc.sh' at line #
187 in function 'do_cc_core'
[ERROR]ÂÂÂÂÂÂÂÂÂ called from
'/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/build/cc/gcc.sh' at line #
52 in function 'do_cc_core_pass_1'
[ERROR]ÂÂÂÂÂÂÂÂÂ called from
'/home/cmchao/tool/lib/ct-ng-1.8.0/scripts/crosstool-NG.sh' at line #
586 in function 'main'

It is because percent symbol is the special char for printf. But if
i replace % by ïï, the continuing configure command will fail

I have ever try '--with-spec=blahblah'ÂÂ or --with-spec='blahblah' and
other configuration failed in gcc will occur.

What can i do ??

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]