This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Adrian Michaud wrote: >Does anyone know of, or have a pointer to instructions on how to build the latest >GCC on Cygwin that targets a PowerPC processor? IE: GCC hosted on Windows that >builds PowerPC .elf object files... yep. see attached text file. if you have any problems feel free to ask. Rob Taylor Flying Pig Systems
Building a gcc crosscompiler for powerpc on win32 get cygwin, and source for binutils-2.10 gcc-2.95.2-core, gcc-2.85.2, newlib-1.82 Install cygwin [add instructions here] run cygwin. you'll get a bash prompt (...oh my god it's unix!) make a folder to do all the work in and cd to it (e.g. mkdir /cygdrive/d/gcc-win32, cd /cygdrive/d/gcc-win32 - this translates to d:/gcc-win32 in MS land) unzip binutils and gcc-core and gcc and newlib into there make a build directory (build-win32, say) mkdir build-win32/binutils cd build-win32/binutils ../../binutils-2.10/configure --prefix=/usr/target-powerpc --target=powerpc-unknown-eabi make make install export PATH=/usr/target-powerpc/bin:$PATH cd .. mkdir gcc-core cd gcc-core ../../gcc-2.95.2-core/configure --prefix=/usr/target-powerpc --target=powerpc-unknown-eabi --with-exeext=".exe" --with-newlib make make install for some reason the build produces a gcc spec file with CR/LF's rather than LF line endings, so convert the line endings on /usr/target-powerpc/lib/gcc-lib/powerpc-unknown-eabi/2.95.2/spec [ NOTE: (if you dont have a suitable tool use the following shell script - create a file called dos2unix with this in and stick it in your /usr/local/bin) #!/bin/sh cat $1 | sed "s/^M\{1,\}$//" | sed "$ s/^Z//" > $2 ] ----- these following stages are only useful if you want a standard c library or c++/java/chill ---- compile newlib cd .. mkdir newlib ../../newlib-1.82/configure --prefix=/usr/target-powerpc/ --target=powerpc-unknown-eabi make make install and finally build a full gcc cd .. mkdir gcc cd gcc ../../gcc-2.95.2/configure --prefix=/usr/target-powerpc --target=powerpc-unknown-eabi --with-exeext=".exe" --with-newlib make make install
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |