Installing crosstool-ng fails on Debian

View: New views
4 Messages — Rating Filter:   Alert me  

Installing crosstool-ng fails on Debian

by Hendrik Sattler-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

the configure script of crosstool-ng 1.5 is not able to find bash on a current
Debian testing:
$ ./configure --prefix=/opt/toolchains/
Checking for 'grep'... /bin/grep                                                        
Checking whether '/bin/grep' supports -E... yes                                        
Checking for 'sed'... /bin/sed                                                          
Checking whether '/bin/sed' supports -i and -e... yes                                  
Checking for 'bash'... no                                                              

bash 3.1 or above was not found

Either you are missing entirely the needed tool,
or the version you have is too old.            
You can give the path to this tool using: --with-bash=PATH

configure: Bailing out...
$ dpkg -l bash
[...]
ii  bash            4.0-4             The GNU Bourne Again SHell                                                            


Using --with-bash=/bin/bash works for configure but the resulting Makefile has
bash=@@bash@@ set and many installed files also. This make ct-ng fail
completely. I fixed it locally by modifying Makefile and running make again.
Still, lib/ct-ng-1.5.0/paths.mk had still the @@bash@@ after installation.
After fixing that, "ct-ng works".

I want to use crosstool-ng to build a toolchain for the AVR NGW100 board :)

HS

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


Re: Installing crosstool-ng fails on Debian

by Yann E. MORIN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hendrik,
All,

On Friday 09 October 2009 23:15:26 Hendrik Sattler wrote:
> the configure script of crosstool-ng 1.5 is not able to find bash on a
> current Debian testing:

It Works For Me (TM) on my lenny system. It has bash-3.2.39 but a simple
wrapper pretending to be bash-4.0 makes configure happy here.

[--SNIP--]
> $ dpkg -l bash
> [...]
> ii  bash            4.0-4             The GNU Bourne Again SHell                                                            
> Using --with-bash=/bin/bash works for configure but the resulting Makefile has
> bash=@@bash@@ set and many installed files also. This make ct-ng fail
> completely. I fixed it locally by modifying Makefile and running make again.
> Still, lib/ct-ng-1.5.0/paths.mk had still the @@bash@@ after installation.
> After fixing that, "ct-ng works".

Hmmm. Something is deeply screwed, then. Sigh... :-(
Care to try attached patch? It should fix all --with-foo options.

I'm still interested to understand why configure can't find bash.
I'll see if I can setup a qemu with a testing in it this WE, but
I'd really appreciate if you could try to see through this...

> I want to use crosstool-ng to build a toolchain for the AVR NGW100 board :)

Yes, support for avr has just made it into crosstool-NG, but it's hidden
behind the EXPERIMENTAL option; be sure to activate it, or avr will not
be available. Also, EXPERIMENTAL really means that: it is experimental
support! Good luck, and report success/failure, please! :-)

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.  |
`------------------------------^-------^------------------^--------------------'

[attachment removed]
--
For unsubscribe information see http://sourceware.org/lists.html#faq

Re: Installing crosstool-ng fails on Debian

by Hendrik Sattler-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Samstag 10 Oktober 2009 00:59:59 schrieb Yann E. MORIN:

> > $ dpkg -l bash
> > [...]
> > ii  bash            4.0-4             The GNU Bourne Again SHell
> > Using --with-bash=/bin/bash works for configure but the resulting
> > Makefile has bash=@@bash@@ set and many installed files also. This make
> > ct-ng fail completely. I fixed it locally by modifying Makefile and
> > running make again. Still, lib/ct-ng-1.5.0/paths.mk had still the
> > @@bash@@ after installation. After fixing that, "ct-ng works".
>
> Hmmm. Something is deeply screwed, then. Sigh... :-(
> Care to try attached patch? It should fix all --with-foo options.

That fixes the problem, indeed :)

> I'm still interested to understand why configure can't find bash.
> I'll see if I can setup a qemu with a testing in it this WE, but
> I'd really appreciate if you could try to see through this...

I just did and your problem is locale based. I have German locale here which
makes the match string (line 334) fail. You have to run those commands with
LC_ALL set to C locale!

$ bash --version
GNU bash, Version 4.0.28(1)-release (x86_64-pc-linux-gnu)
[..]
$ LC_ALL=C bash --version
GNU bash, version 4.0.28(1)-release (x86_64-pc-linux-gnu)

Note: v != V

> > I want to use crosstool-ng to build a toolchain for the AVR NGW100 board
> > :)
>
> Yes, support for avr has just made it into crosstool-NG, but it's hidden
> behind the EXPERIMENTAL option; be sure to activate it, or avr will not
> be available. Also, EXPERIMENTAL really means that: it is experimental
> support! Good luck, and report success/failure, please! :-)

I just realized that avr != avr32. There is very little information on the web
on how to build an avr32 toolchain since avr32linux.org is down, except AVR's
buildroot stuff . The patches do not seem to be in gcc & co., yet, or their
websites are totally outdated.

Have fun

HS

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


Re: Installing crosstool-ng fails on Debian

by Yann E. MORIN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hendrik,
All,

On Saturday 10 October 2009 13:54:32 Hendrik Sattler wrote:
> > Care to try attached patch? It should fix all --with-foo options.
> That fixes the problem, indeed :)

Ok, will apply, then.

> > I'd really appreciate if you could try to see through this...
> I just did and your problem is locale based. I have German locale here which
> makes the match string (line 334) fail. You have to run those commands with
> LC_ALL set to C locale!

Yes, things like that happen from time to time... Sigh. Thanks for
pinpointing snd solving the issue.

> $ bash --version
> GNU bash, Version 4.0.28(1)-release (x86_64-pc-linux-gnu)
> [..]
> $ LC_ALL=C bash --version
> GNU bash, version 4.0.28(1)-release (x86_64-pc-linux-gnu)
> Note: v != V

Yes, v-V=0x20 :-)

> I just realized that avr != avr32. There is very little information on the web
> on how to build an avr32 toolchain since avr32linux.org is down, except AVR's
> buildroot stuff . The patches do not seem to be in gcc & co., yet, or their
> websites are totally outdated.

Nope, indeed, avr is 8-bit, while avr32 is, well, 32-bit. crtosstool-NG does
not support avr(8), but with some good will from an interested party... :-)

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