crosstool cleanup, again ;-)

Dr. H. Nikolaus Schaller hns@computer.org
Tue Feb 20 15:46:00 GMT 2007


I am working on the new ct-ng to make it run on MacOS X.

It now loads perfectly and the menu-config application works.

But I run immediately into a strange error:

/Volumes/Xtoolchain/ct-ng/scripts/crosstool.sh: line 19: set: -E:  
invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

What I have found is that the Makefile runs scripts/crosstool.sh  
which begins with the line

#!/bin/bash

i.e. the script will be executed using bash.

This script includes

. "${CT_TOP_DIR}/scripts/functions"

But that file appears to be in csh syntax since it defines e.g.

     for((step=(CT_STEP_COUNT-1); step>1; step--)); do

and uses

    set -E

So, how do you solve to include a csh script into bash on your hosts?

-- hns

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



More information about the crossgcc mailing list