homebrew-r | a homebrew repository for goodwithtech/r/xxxxx
kandi X-RAY | homebrew-r Summary
kandi X-RAY | homebrew-r Summary
a homebrew repository for goodwithtech/r/xxxxx
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of homebrew-r
homebrew-r Key Features
homebrew-r Examples and Code Snippets
Community Discussions
Trending Discussions on homebrew-r
QUESTION
I'm using homebrew-riscv toolchain on mac machine.
I want to compile a simple multithreading program that is written using pthread library in C using riscv gnu cross compiler. So that, I've used the below command:
riscv64-unknown-elf-gcc -march=rv32i -mabi=ilp32 pthreadExample.c -o pthreadExample -lpthread
And I've got the following warning and error:
...ANSWER
Answered 2022-Jan-10 at 19:24you are using the bare metal cross compiler, what you need is:
riscv64-unknown-linux-gnu-gcc
additionally, you are using the -march=rv32i
flag, but you are using the 64 bit version of the compiler, that doesn't seem correct to me. If the target machine is a 32 bit one, then perhaps you should use the riscv32-unknown-linux-gnu-gcc
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install homebrew-r
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page