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] |
My company purchased some industrial IO devices that run linux. After buying their SDK and poking around, it appears that they used Crosstool 0.42 to build a cygwin and a linux toolchain. Me being the geek that I am, I wanted to see if I could build a Mac OS X tool chain.
Here's what I have done so far: Downloaded crosstool 0.43 Used Fink to get Gnu versions of sed, awk, install, and wget. (per http://kegel.com/crosstool/crosstool-0.43/doc/crosstool-howto.html#mac ) Verified the Gnu versions are being used with "which"
The OEM toolchain contained a crosstool config file (attached below) config.txt) so I knew the toolchain worked on a 686 host. I was hoping all I would have to do is run the script and all would work.
First problem: Crosstool 0.43 lacks any scripts for powerpc-604. I looked at the 603 scripts and the known good crosstool config file from the OEM and guessed the command should be: eval `cat powerpc-604.dat gcc-4.0.2-glibc-2.3.5.dat` sh all.sh --notest
So that could be the root of my problem, I guessed at the 604 script. But that seemed to work for a while.
My error is the gprof folder of binutils. The error is gcc -g -O2 -c -o flat_bl.o /Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/flat_bl.m /Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5 /binutils-2.16.1/gprof/flat_bl.m:2: error: parse error before '%' token
I have attached the last few lines before the error that shows everything from the configure of gprof down to the error.
I'm definitely out of my depth, I've never touched .m files. I opened the offending .m and it looks more like plain text than a source file to me. Maybe worth noting is this is the first .m file it attempted to compile.
I don't have the knowledge or bandwidth to go very far with this but I thought I would post this in case there was a simple solution. If there is not a simple solution I'll let it go. Thanks for your time.
Begin error messag: gcc -DHAVE_CONFIG_H -I. -I/Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof -I. -D_GNU_SOURCE -DDEBUG -I../bfd -I/Users/dsmoot/Wyle/crosstool- 0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/../include -I/Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/../bfd -I/Users/dsmoot/Wyle/crosstool- 0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/../intl -I../intl -I. -DLOCALEDIR="\"/opt/crosstool/gcc-4.0.2-glibc-2.3.5/powerpc-604-linux-gnu/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /Users/dsmoot/Wyle/crosstool- 0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/mips.c gcc -g -O2 -c -o flat_bl.o /Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/flat_bl.m /Users/dsmoot/Wyle/crosstool-0.43/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5/binutils-2.16.1/gprof/flat_bl.m:2: error: parse error before '%' token make[3]: *** [flat_bl.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-gprof] Error 2 end error message
Begin OEM powerpc-604-linux-gnu.crosstoolconfig.txt: AR= BINUTILS_DIR=binutils-2.16.1 BINUTILS_EXTRA_CONFIG= BUILD=i686-pc-linux-gnu BUILD_DIR=/home/xxx/xxxxx/crosstool-0.42/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5 CC= DEJAGNU= EXTRA_TARGET_CFLAGS= GCC_BUILD= GCC_CORE_DIR=gcc-4.0.2 GCC_DIR=gcc-4.0.2 GCC_EXTRA_CONFIG=--with-cpu=604 --enable-cxx-flags=-mcpu=604 GCC_HOST= GCC_LANGUAGES=c,c++ GDB_DIR= GLIBC_ADDON_OPTIONS==linuxthreads, GLIBC_DIR=glibc-2.3.5 GLIBC_EXTRA_CC_ARGS= GLIBC_EXTRA_CONFIG=--without-tls --without-__thread GLIBC_EXTRA_ENV= JUST_DOWNLOAD= KERNELCONFIG= LINUX_DIR=linux-2.6.15.4 LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0 NO_DOWNLOAD= PREFIX=/opt/crosstool/gcc-4.0.2-glibc-2.3.5/powerpc-604-linux-gnu PTXDIST_DIR= SHARED_MODE=--enable-shared SRC_DIR=/home/xxx/xxxxx/crosstool-0.42/build/powerpc-604-linux-gnu/gcc-4.0.2-glibc-2.3.5 TARBALLS_DIR=/home/xxxx/downloads TARGET=powerpc-604-linux-gnu TARGET_CFLAGS=-O -mcpu=604 TOP_DIR=/home/xxxxx/xxxxx/crosstool- 0.42 USE_SYSROOT= End OEM powerpc-604-linux-gnu.crosstoolconfig.txt:
Thanks, David
-- 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] |