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: crosstool cleanup, again ;-)


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


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