toolchain
toolchain copied to clipboard
Where is arc-elf32-gcc and how do i set it to PATH?
Hello, I am new to linux. I was following the steps to install the ARC GNU Toolchain in https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain. i reached the step "Preparing Crosstool-NG". And after that, i do not know where to find arc-elf32-gcc and how to set it to my PATH. Can anyone please advise? thanks :)
Hi @weijunawj please refer to this section of the documentation - https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain#usage-examples.
Please note that built toolchain by default gets installed in the current users's
~/x-tools/TOOLCHAIN_TUPLE
folder, whereTOOLCHAIN_TUPLE
is by default dynamically generated based on the toolchain type (bare-metal, glibc or uclibc), CPU's bitness (32- or 64-bit), provided vendor name etc.For example:
With snps-arc-multilib-elf32 sample built toolchain will be installed in
~/x-tools/arc-snps-elf
With snps-arc64-unknown-elf sample built toolchain will be installed in~/x-tools/arc64-snps-elf
So depending on ARC processor you were building your toolchain for you need to add ~/x-tools/arc-snps-elf/bin
or ~/x-tools/arc64-snps-elf/bin
to your PATH
environment variable. And in that folder you'll find arc-elf32-gcc
.
Does that answer your question?
Sorry i'm really bad at this. Do you mind telling me what commands should i enter after reaching "preparing crosstool-ng"? also, what does the "~" in ~/x-tools/arc-snps-elf stands for? so sorry i'm very new to linux..
~
("tilde") is a "shortcut" to a user's home directory on UNIX systems. I.e. if your user name is say weijunawj
then your home directory on a Linux machine would be /home/weijunawj
, or you may just use ~
for that. In other words aforementioned path to arc-elf32-gcc
on your Linux machine would be either /home/weijunawj/x-tools/arc-snps-elf/bin/arc-elf32-gcc
or simply ~/x-tools/arc-snps-elf/bin/arc-elf32-gcc
. Does that help?
No activity.