ct-ng fails building mpfr

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Mon Nov 17 18:25:00 GMT 2008


Hello Zoltan!
Hello All!

On Monday 17 November 2008 11:55:16 Zoltan Devai wrote:
> This has been already mentioned [1], here's some more info
> about it, hope it helps fixing:
> [ERROR]    configure: error: cannot run /bin/sh
> /home/z/ct-ng_c/targets/src/mpfr-2.3.1/config.sub

Yep. I didn't know how to solve it...

> relevant code in lib/scripts/build/mpfr.sh:
[--SNIP--]
> So, ExtractAndPatch extracts mpfr with its original config.sub/guess and then
> overrides them with the ct-ng version depending on the config.
> Independent of that, libtoolize -f will delete the both files.

Yes, right. That is supposed to workaround a problem on Gentoo where the
version number check is strict, but the libtool.m4 and ltmain.sh from
MPFR do not have the same version number.

> I have autoconf v. 2.61 and libtool 2.2.4.

Should that cause a problem? IIRC, both files are from libtool, and
the version of autoconf is not problem.

> When commenting out the both commands in the above functions, the
> toolchain builds just fine.

That's not an option.

For the records, Gentoo is the only distribution I am aware of that exhibits
the problem, but the fix is quite sane anyway.

> Changing to 'libtoolize -fi' works also. 

The -i flag is not documented in my version (1.5.26 from Debian lenny).
  libtoolize -f -i
  libtoolize: unrecognized option `-i'

> But this means that the configs are always rebuilt whether they're
> overriden or not.

Yes they are. That can be changed, but I don't have the time for this. Also,
I don't have Gentoo, so can't reproduce anything. You're welcome to provide
a patch... ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  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



More information about the crossgcc mailing list