Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build toolchain with Makefile #24

Closed
hossein1387 opened this issue Mar 23, 2021 · 0 comments
Closed

Unable to build toolchain with Makefile #24

hossein1387 opened this issue Mar 23, 2021 · 0 comments
Assignees

Comments

@hossein1387
Copy link
Contributor

hossein1387 commented Mar 23, 2021

I am unable to build the toolchain with the Makefile. Here is the error log:

mkdir -p /users/hemmat/MyRepos/ara/install/riscv-gcc
# Apply patch on riscv-binutils
cd /users/hemmat/MyRepos/ara/toolchain/riscv-gnu-toolchain/riscv-binutils && git reset --hard && git apply /users/hemmat/MyRepos/ara/patches/0001-riscv-binutils-patch
HEAD is now at c5ef83e Revert "Change the return type of `match_func` and `constraints` flag to `bfd_boolean`."
cd /users/hemmat/MyRepos/ara/toolchain/riscv-gnu-toolchain && rm -rf build && mkdir -p build && cd build && \
CC=gcc-7.2.0 CXX=g++-7.2.0 ../configure --prefix=/users/hemmat/MyRepos/ara/install/riscv-gcc --with-arch=rv64gcv --with-cmodel=medlow --enable-multilib && \
make MAKEINFO=true -j4
checking for gcc... gcc-7.2.0
checking whether the C compiler works... no
configure: error: in `/users/hemmat/MyRepos/ara/toolchain/riscv-gnu-toolchain/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [/users/hemmat/MyRepos/ara/install/riscv-gcc] Error 77

It looks like by default you are expecting the user to have gcc-7.2.0 which is set here:

ara/Makefile

Line 31 in 251ca46

CC = gcc-7.2.0

I propose to use only gcc and g++ without any specific version attach to it. Refer to this PR: #25

@suehtamacv suehtamacv self-assigned this Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants