From: "Thies Peter Thiesen" <Thies-Peter.Thiesen@gmx.de>
To: crosstool-ng <crossgcc@sourceware.org>
Subject: one true example, crosstool-ng ct-ng build i686-nptl-linux-gnu in cygwin 64 bit
Date: Wed, 11 Jan 2017 15:44:00 -0000 [thread overview]
Message-ID: <trinity-1f24f918-32d1-4d49-aa83-e32a0ba13917-1484149454061@3capp-gmx-bs31> (raw)
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
reply other threads:[~2017-01-11 15:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-1f24f918-32d1-4d49-aa83-e32a0ba13917-1484149454061@3capp-gmx-bs31 \
--to=thies-peter.thiesen@gmx.de \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).