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]

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


Chih-Min, All,

On Tuesday 24 August 2010 15:03:31 Chih-Min Chao wrote:
> >> The error will be
> >> /home/cmchao/tool/lib/ct-ng-1.8.0/scripts/functions: line 82: printf:
> >> `{': invalid format character
> > Care to test the attached patch, please?
> The patch works
> The printf format problem is solved

Good! I'll push it later. Thanks for testing! :-)

> but another occurs 
> [DEBUG]    ==> Executing:
> '/home/cmchao/tool/test/x-ng/targets/src/gcc-4.4.3/configure
> --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
> --target=arm-igs-linux-gnueabi
> --prefix=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/gcc-core-static
> --with-local-prefix=/home/cmchao/x-tools/arm-igs-linux-gnueabi/arm-igs-linux-gnueabi//sys-root
> --disable-multilib --disable-libmudflap
> --with-sysroot=/home/cmchao/x-tools/arm-igs-linux-gnueabi/arm-igs-linux-gnueabi//sys-root
> --with-newlib --enable-threads=no --disable-shared
> --with-pkgversion=crosstool-NG-1.8.0 --with-arch=armv5te
> --enable-__cxa_atexit
> --with-gmp=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> --with-mpfr=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> --with-ppl=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> --with-cloog=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> --enable-target-optspace --disable-nls --enable-symvers=gnu
> --enable-languages=c --disable-libssp --disable-lto --disable-libgomp
> --disable-decimal-float --disable-libffi --enable-threads
> '--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}}}''
> [ERROR]    configure: error: invalid variable name: '--with-specs

Ah! But, according to:
  http://gcc.gnu.org/install/configure.html

--with-specs is not a valid, recognised option. So in this case, I'm not sure
how ./configure treats it. It seems it tries to assign the right-hand part
(after the '=' ) to the variable whose name in on the left-hand part (before
the '=' ).

What are you trying to do by passing specs at _build_ time?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



--
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]