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

Add buildsuccess.txt file #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions PrintCapabilityValue.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*

How do I printf a capability value
we use calloc() and still producing same results
However, the memory allocation with calloc() will be initialized to zero

by Joseph Kaberuka
*/

#include<stdio.h>
#include<stdlib.h>

int main() {

void *x =(void *)calloc(1, 1);
printf("The address in this capability is %p\n", x);
printf("The full capability (incl metadata) is %#p\n", x);
// Freeing the allocated memory
free(x);

return 0;

}
9 changes: 9 additions & 0 deletions buildsuccess.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
1. Following the README file, when adapting the build configuration, the file cheribuild.json can be configured at ~/.config/cheribuild.json

2. However, during my build with this file, unhandled exceptions has been issues time and time and prevented a successful build process

3. I had to remove this file from ~/ directory and also from cheribuild cloned directory

4. Removing the same file from both locations, python3 cheribuild.py run-morello-purecap completed successfully