https://wiki.pine64.org/wiki/Ox64
Here are some guides originating from my experiences with the Pine Ox64 on macOS.
https://wiki.pine64.org/wiki/Ox64
Here are some guides originating from my experiences with the Pine Ox64 on macOS.
updated all build tools and source before
$ brew update; brew upgrade
$ cd xuantie-gnu-toolchain
$ git pull --force
$ git submodule update --remote --force --recursive
$ make distclean
$ ./configure --prefix=/opt/riscv-toolchain/xuantie --with-cmodel=medany --enable-multilib --disable-gdb
$ make newlib -j$(nproc)
but the build still fails somewhere
g++ -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -no-pie -o build/genautomata \
build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o ../build-arm-apple-darwin22.4.0/libiberty/libiberty.a -lm
clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: -no_pie ignored for arm64
build/genautomata ../.././riscv-gcc/gcc/common.md ../.././riscv-gcc/gcc/config/riscv/riscv.md \
insn-conditions.md > tmp-automata.c
/bin/sh ../.././riscv-gcc/gcc/../move-if-change tmp-automata.c insn-automata.c
automatav=$(echo $(LC_MESSAGES=C csplit insn-automata.c /parallel\ compilation/ -k -s {20} -f insn-automata -b "%d.c" 2>&1));\
[ ! "$automatav" ] || grep "match not found" <<< $automatav
make[2]: *** [Makefile:2411: s-automata] Error 1
make[2]: Leaving directory '/Users/jbrunk/Development/riscv/xuantie-gnu-toolchain/build-gcc-newlib-stage1/gcc'
make[1]: *** [Makefile:4429: all-gcc] Error 2
make[1]: Leaving directory '/Users/jbrunk/Development/riscv/xuantie-gnu-toolchain/build-gcc-newlib-stage1'
make: *** [Makefile:553: stamps/build-gcc-newlib-stage1] Error 2
Hello,
I got the bellow error:
In file included from ../.././riscv-gcc/gcc/config/riscv/riscv.c:7069:
In file included from ../.././riscv-gcc/gcc/config/riscv/riscv-thead.c:4:
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:1:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_e9_tune_info = {
^ ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:17:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c906v_tune_info = {
^ ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:33:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c910_tune_info = {
^ ~
../.././riscv-gcc/gcc/config/riscv/riscv-thead-tune.h:49:31: error: non-aggregate type 'const struct riscv_tune_param' cannot be initialized with an initializer list
const struct riscv_tune_param thead_c908_tune_info = {
Any ideas to solve it?
Hi thanks so much for this.
I was able to build the toolchain, but my builds fail with fatal error: stdlib.h: No such file or directory
Do you happen to know a solution for this?
Perhaps it could be a useful addition to the instructions, if this is something encountered by other users.
Thanks again, very excited to use this toolchain on my new mac.
Hello there, I followed all the steps but got stuck in the:
./configure --prefix=/opt/riscv-toolchain/xuantie --with-cmodel=medany --enable-multilib
with the issue on the title, has this happened to you before?, I already installed gawk via brew on the m1 but still no luck
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.