toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

Where is arc-elf32-gcc and how do i set it to PATH?

Open weijunawj opened this issue 3 years ago • 3 comments

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 :)

weijunawj avatar Feb 21 '22 14:02 weijunawj

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, where TOOLCHAIN_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?

abrodkin avatar Feb 21 '22 16:02 abrodkin

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..

weijunawj avatar Feb 21 '22 16:02 weijunawj

~ ("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?

abrodkin avatar Feb 22 '22 09:02 abrodkin

No activity.

claziss avatar Jul 04 '23 06:07 claziss