This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG 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]

one true example, crosstool-ng ct-ng build i686-nptl-linux-gnu in cygwin 64 bit


Hi crosstool-ng (ct-ng) Users,

this is a one example on true running on
ct-ng for the building on i686-nptl-linux-gnu cross compiler toolsweat under cygwin 64 bit.
Example from 11.01.2017

1. Install an Cygwin 64 Bit version on host PC.
2. Install on all needes packages
...
uname -a
CYGWIN_NT-6.1 machine 2.6.1(0.305/5/3) 2016-12-16 11:55 x86_64 Cygwin
I like to work in new define home directory: home_git_newest_2017_01_03

export HOME="/usr/src/home_git_newest_2017_01_03" 
export PATH="${PATH}:$HOME/.local/bin"
mkdir /usr/src/home_git_newest_2017_01_03
mkdir $HOME/src
mkdir $HOME/tc

cd $HOME
#download on newest git version from crosstool-ng
git clone https://github.com/diorcety-ctng/crosstool-ng.git 
cd crosstool-ng
./bootstrap
./configure --prefix=$HOME/.local 
make 
make install

which ct-ng
#$HOME/.local/bin/ct-ng
$ ct-ng -version
#GNU Make 4.2.1
#Gebaut für x86_64-unknown-cygwin
#Copyright (C) 1988-2016 Free Software Foundation, Inc.
#Lizenz GPLv3+: GNU GPL Version 3 oder später <http://gnu.org/licenses/gpl.html>
#Dies ist freie Software: Sie können sie nach Belieben ändern und weiter verteilen.
#Soweit es die Gesetze erlauben gibt es KEINE GARANTIE.

cd $HOME/tc
# get default .config file for i686-nptl-linux-gnu
ct-ng i686-nptl-linux-gnu
ct-ng build
#...
#... 
# tool chain breaks at D.U.M.A

#Now you needs a workaround D.U.M.A for cygwin.
;---------- patch ---------------------
#patch on duma_2_5_15
cd $HOME/src
#unpack duma
 tar -zxvf duma_2_5_15.tar.gz
cd duma_2_5_15
vi GNUmakefile (or other text editor)
...
# some defaults:
CC=gcc 
CXX=g++ 
AR=ar 
RANLIB=ranlib 
INSTALL=install 
RM=rm 
RMFORCE=rm -f 
ECHO=echo 
ECHOLF=echo 
OS=cygwin  <--------------- add here this line ----------<
...
#save GNUmakefile
cd ..
#pack duma
tar -zcvf duma_2_5_15.tar.gz duma_2_5_15
rm -r $HOME/tc/.build/src
;----------- end patch ---------------------------------


#in cgwin will does brak strace version 4.10.
#I change strace 4.10 to runningable version 4.9 in cygwin.

ct-ng menuconfig
Debug facilities --->| strace ---> | strace version (4.10) change to ( 4.9 )
save .config

#start toolchain again
ct-ng build
# [INFO ]  Performing some trivial sanity checks
#...
#[INFO ]  Finishing installation (may take a few seconds)...

#Now you have your toolchain.
cd $HOME/x-tools/i686-nptl-linux-gnu/bin
ls i686-nptl-linux-gnu-gcc.exe
ls *

Thank you to the crosstool-ng team.

     Thies Peter







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