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

Build issue on Virtualbox with Ubuntu 18.04 virtual machine #10

Open
phillipstanleymarbell opened this issue Feb 3, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@phillipstanleymarbell
Copy link
Member

Describe the bug
The newlib C library compilation process was looking for tools installed with the prefix riscv-unknown-elf-xyz whereas the tools built in the gcc and binutils build phases did not include unknown in the tool names.

To Reproduce
Steps to reproduce the behavior:

  1. Clone ef8ca61
  2. Configure based on README.md instructions (see diff below).

Expected behavior
Binutils, gcc, and newly should build cleanly.

Screenshots
N/A.

Host OS (please complete the following information):

  • OS: Ubuntu 18.04 virtual machine.

You local changes (please complete the following information):

  • Output of git diff
git diff
diff --git a/conf/setup.conf b/conf/setup.conf
index 80ff556..4408e16 100755
--- a/conf/setup.conf
+++ b/conf/setup.conf
@@ -1,19 +1,22 @@
##
## You will want to change the following to suit your setup:
##
-SUNFLOWERROOT = /usr/local/src/git/sunflower-simulator-github-clone
+
+
+
+SUNFLOWERROOT = /home/user/sunflower-simulator

OSTYPE = linux
MACHTYPE = i386
-TARGET = superH
+TARGET = riscv
TARGET-ARCH-FLAGS = -DM32
-TARGET-ARCH = sh-elf
+TARGET-ARCH = riscv32-elf
GMAKE = /usr/bin/make

#
# Specifies the architecture used. Uncomment for riscv builds.
#
-#ADDITIONAL_ARCH_FLAGS = --with-cpu=rv32i#fd
+ADDITIONAL_ARCH_FLAGS = --with-cpu=rv32i#fd

#
# On newer versions of macOS, you will need to install gcc

Additional context
The newlib C library compilation process was looking for tools installed with the prefix riscv-unknown-elf-xyz whereas the tools built in the gcc and binutils build phases did not include unknown in the tool names. Can remedy this by aliasing / creating symbolic links to what the C library compilation process needed in tools/bin and then re-run the last stage of the make cross process (i.e., make newlib).

@phillipstanleymarbell phillipstanleymarbell added the bug Something isn't working label Feb 3, 2019
@phillipstanleymarbell phillipstanleymarbell self-assigned this Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant