On Mon, Feb 5, 2024 at 10:38 AM Ahmed Juba <
ahmed.j...@gmail.com> wrote:
>
> Yes, i think so but it's a different situation.
> I was trying to setup RISC-V GNU Compiler Toolchain from here: riscv-collab/riscv-gnu-toolchain: GNU toolchain for RISC-V, including GCC (
github.com)
>
> by the following commands:
> ```
> git clone
https://github.com/riscv-collab/riscv-gnu-toolchain.git gcc-demo
> sudo yum install autoconf automake python3 libmpc-devel mpfr-devel gmp-devel \ gawk bison flex texinfo patchutils gcc gcc-c++ zlib-devel expat-devel
> cd gcc-demo/ mkdir build cd build/
> ../configure --prefix=/home/ICer/riscv-demo export PATH="$HOME/riscv-demo/bin:$PATH"
> sudo make
Independent of the actual issue: please, never use "sudo make".
Only install into directories where you have the necessary permissions
(ensure this before calling make).
I'm not sure if out of tree builds (mkdir build; cd build;
../configure) work with that repository.
So, instead of out of tree building, I suggest using git worktree (if
multiple builds are needed) and
in-tree builds.
Also note that " cd gcc-demo/ mkdir build cd build/ " (copied from
your instruction list) will not even enter the directory gcc-demo,
because you are missing semicolons (';') between the commands.
Given your build started, it seems you did not put the instructions in
the email that were actually used to build the toolchain.
Further, I don't understand why you are setting PATH.
BR
Christoph
> ```
> --
> You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sw-dev+un...@groups.riscv.org.
> To view this discussion on the web visit
https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/23f4385d-c181-4a0f-81e6-cd132479e717n%40groups.riscv.org.