@@ -128,6 +128,10 @@ consumed and time to clone the repository.
128128By default ` toolchain ` repository will be checked out to the current
129129development branch ` arc-dev ` .
130130
131+ If current working directory is not a "toolchain" directory, then change to it:
132+
133+ $ cd toolchain
134+
131135Following command will check out repository to the latest release:
132136
133137 $ git checkout arc-releases
@@ -257,20 +261,24 @@ officially supported and not recommended by Synopsys, due to severe performance
257261penalty of those environments on build time and possible compatibility issue.
258262
259263Some limitation apply:
260- * CGEN simulator is not support on Windows hosts, thus should be disabled with
261- ` --no-sim ` option.
262- * Only bare metal (elf32) tool chain can be built this way.
263- * It is required to have tool chain for Linux hosts in the ` PATH ` for Canadian
264+ - CGEN simulator is not supported on Windows hosts, thus should be disabled
265+ with ` --no-sim ` option.
266+ - Only bare metal (elf32) tool chain can be built this way.
267+ - It is required to have tool chain for Linux hosts in the ` PATH ` for Canadian
264268 cross-build to succeed - it will be used to compile standard library of tool
265269 chain.
270+ - Expat library is required for GDB to parse XML target description files. This
271+ library might be not available in some Mingw setup. Easiest solution is to
272+ let ` build-all.sh ` script to build Expat by passing option
273+ ` --no-system-expat ` .
266274
267- To cross-compile tool chain on Linux, mingw tool chain should be installed. On
275+ To cross-compile tool chain on Linux, Mingw tool chain should be installed. On
268276Ubuntu that can be done with ` mingw-w64 ` package:
269277
270278 # apt-get install mingw-w64
271279
272- RHEL 6 has a very antique mingw (4.4-something), so it is recommended to first
273- add EPEL repository, then install mingw from it. In CentOS:
280+ RHEL 6 has a very antique Mingw (4.4-something), so it is recommended to first
281+ add EPEL repository, then install Mingw from it. In CentOS:
274282
275283 # yum install epel-release
276284 # yum install mingw-binutils-generic mingw-filesystem-base \
@@ -283,7 +291,8 @@ For instruction how to install EPEL on RHEL, see
283291
284292After prerequisites are installed and Linux tools are in the ` PATH ` , do:
285293
286- $ ./build-all.sh --no-uclibc --no-sim --host i686-w64-mingw32
294+ $ ./build-all.sh --no-uclibc --no-sim --host i686-w64-mingw32 \
295+ --no-system-expat
287296
288297Note that value of host triplet depends on what mingw tool chain is being used.
289298Triplet ` i686-w64-mingw32 ` is valid for mingw tool chain currently used in
@@ -304,7 +313,7 @@ been added to the PATH:
304313
305314Build application:
306315
307- $ arc-elf32-gcc hello_world.c -marc700
316+ $ arc-elf32-gcc hello_world.c -marc700 -g
308317
309318To run it on CGEN-based simulator without debugger:
310319
0 commit comments