Open dejl opened 11 years ago
I don't think it's a hard fault, you have to configure crosstool-ng to use ggrep instead of grep. In the end, you will find those path definitions inside the paths.sh file, for example crosstool-ng/1.18.0/lib/ct-ng.1.18.0/paths.sh.
My paths.sh: export install="/usr/local/bin/ginstall -c" export bash="/brew2/local/bin/bash" export awk="/brew2/local/bin/gawk" export grep="/brew2/local/bin/ggrep" export make="/usr/bin/make" export sed="/brew2/local/bin/gsed" export libtool="/brew2/local/bin/glibtool" export libtoolize="/brew2/local/bin/glibtoolize" export objcopy="/brew2/local/bin/gobjcopyi" export objdump="/brew2/local/bin/gobjdump" export readelf="/brew2/local/bin/greadelf" export patch="/usr/bin/patch"
Log:
MBP:crosstool-arm-osx Daniel$ bash build.sh
Building toolchain...
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20131003.170129
[INFO ] Building environment variables
[WARN ] Directory '/Users/Daniel/src' does not exist.
[WARN ] Will not save downloaded tarballs to local storage.
[EXTRA] Preparing working directories
[ERROR] Static linking impossible on the host system 'x86_64-build_apple-darwin12.5.0'
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions@327]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@491]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/Volumes/CrossTool2NG/crosstool-ng-1.17.0/docs/B - Known issues.txt'
[ERROR]
[ERROR](elapsed: 0:02.00)
[00:02] / make[1]: * [build] Error 1
make: * [build.4] Error 2
@dejl , did you ever figure how to correct it? I am having the same problem and I have no idea of what to do :S
@AugustoQueiroz Sorry, I haven't used this tool in years. Try adding the g prefix in paths.sh
Homebrew adds a "g" prefix to all the dupes (ggrep, ginstall, gar) etc.. ct-ng build will fail because of that
MacBookPro:arm-unknown-linux-gnueabi daniel$ PATH=$BrewHome/bin:$PATH ../${CrossToolVersion}/ct-ng build.4 [INFO ] Performing some trivial sanity checks [INFO ] Build started 20130806.054021 [ERROR]
[ERROR] >> [ERROR] >> Build failed in step 'Dumping user-supplied crosstool-NG configuration' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@258] [ERROR] >> called from: main[scripts/crosstool-NG.sh@114] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/Volumes/CrossTool2NG/crosstool-ng-1.17.0/docs/B - Known issues.txt' [ERROR]
[ERROR](elapsed: 0:00.00) [00:01] / gmake[1]: * [build] Error 2 gmake: * [build.4] Error 2
build.log:
[DEBUG] ================================================================= [DEBUG] Dumping user-supplied crosstool-NG configuration [DEBUG] ==> Executing: 'grep' '-E' '^(# |)CT_' '.config' [DEBUG] grep: empty (sub)expression [ERROR]
[ERROR] >> [ERROR] >> Build failed in step 'Dumping user-supplied crosstool-NG configuration' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@258] [ERROR] >> called from: main[scripts/crosstool-NG.sh@114] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/Volumes/CrossTool2NG/crosstool-ng-1.17.0/docs/B - Known issues.txt' [ERROR]
[ERROR](elapsed: 0:00.00)