Comments (1)
All you need is to point --sysroot at the CheriBSD rootfs directory, i.e. ~/cheri/output/rootfs-riscv64-purecap (~/cheri/output/sdk/sysroot-riscv64-purecap should also work, but it's not what cheribuild tends to use) and -B at ~/cheri/output/sdk/bin, plus any other compiler flags needed to set the triple, architecture, ABI, etc. For example, a minimal correct use would be:
-target riscv64-unknown-freebsd14 --sysroot=$HOME/cheri/output/rootfs-riscv64-purecap -B$HOME/cheri/output/sdk/bin -march=rv64imafdcxcheri -mabi=l64pc128d -mno-relax
~/cheri/output/sdk/utils/cheribsd-riscv64-purecap-clang exists as a convenient wrapper for users to use rather than having to specify those command-line arguments manually (it automatically picks up the set of arguments in ~/cheri/output/sdk/bin/cheribsd-riscv64-purecap.cfg, which you will note is the same as I gave above), though that is intended for users, not machines, to use, i.e. it is not guaranteed to be a stable interface (and hence why it's in utils/ not bin/).
- I tried installing the cheribsd-sdk-native target
But GDB failed to configure, complaining of missing GMP
Give cheribsd-sdk-native is not a thing that exists, I don't know if this was you trying to build gdb-native or cross-compile GDB for RISC-V. For the former it should pick up gmp from the system, but I guess there's a chance it's broken. gmp-native does exist as a target you can build for that though. If you're cross-compiling then you will of course need a cross-compiled gmp, for which you can use gmp-<target> to match gdb-<target>.
from cheribuild.
Related Issues (20)
- Building cheribsd-morello-purecap on macOS (Aarch64) HOT 6
- Failing freebsd and cheribsd builds on macOS. pkg-config --exists libarchive HOT 1
- freebsd-aarch64 on macOS Ventura HOT 5
- Fails to build on CheriBSD 14.0 on Morello platform HOT 3
- Building -morello-purecap targets on a Morello system should suggest -native
- Build error - cheribuild.py cheribsd-aarch64 -d HOT 2
- Error in cross compilation HOT 7
- gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 checksum mismatch HOT 4
- About Rebuilding Images HOT 2
- Failed when build pkg-riscv64-purecap HOT 2
- Stuck synthesizing Cheri on AWS F1 Ubuntu 18.04
- How to enable caprevoke feature and build freeBSD with it? HOT 6
- Re-enable lib32 by default (and remove option?)
- Switch to new Morello ABI
- Being asked for a password to login as root on SSH HOT 3
- Switch parity of --cheribsd/caprevoke-kernel HOT 1
- How to enable caprevoke in cheribsd? HOT 2
- GMP mercurial host blocks certain IP ranges HOT 2
- Workflow of adding instruction in CHERI RISC-V HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheribuild.