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

Examples in sbench directory fail to compile #178

Closed
JamesTimothyMeech opened this issue Oct 5, 2020 · 2 comments
Closed

Examples in sbench directory fail to compile #178

JamesTimothyMeech opened this issue Oct 5, 2020 · 2 comments
Assignees
Labels

Comments

@JamesTimothyMeech
Copy link
Contributor

JamesTimothyMeech commented Oct 5, 2020

When running sunflower on CPU1 (Linux) and compiling for the superH architecture
all of the examples in the sbench directory fail to compile.

Adding the line #include <stdint.h> to the file sf-types.h fixes the compilation issue.

Running any of the examples in sbench after this fix produces this message from sunflower: Exiting: Failed to allocate memory for S->MEM. Writing all node information to sunflower.out

To Reproduce
Steps to reproduce the behavior:

  1. make in any sbench benchmark
  2. See error.

Expected behavior
Benchmarks should compile and run without errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Host OS (please complete the following information):

  • OS: Linux.

You local changes (please complete the following information):

  • Output of git diff:
index 3b9c51c..b5caf49 100755
--- a/sim/sf-types.h
+++ b/sim/sf-types.h
@@ -34,7 +34,7 @@
        ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
        POSSIBILITY OF SUCH DAMAGE.
 */
-
+#include <stdint.h>
 #define nil    ((void*)0)
 #define USED(x)
 #define uchar  uint8_t
diff --git a/sunflower-toolchain b/sunflower-toolchain
index 20c35a7..14a1e96 160000
--- a/sunflower-toolchain
+++ b/sunflower-toolchain
@@ -1 +1 @@
-Subproject commit 20c35a7caf51db8b080eeaa44d823295bba24e6e
+Subproject commit 14a1e96c111a326c348c7db80b1f9f7022630476-dirty```
- Output of `git remote -v`":
```origin	git@github.com:JamesTimothyMeech/sunflower-simulator.git (fetch)
origin	git@github.com:JamesTimothyMeech/sunflower-simulator.git (push)```
@phillipstanleymarbell
Copy link
Member

I would be happy to merge a pull request.

@JamesTimothyMeech
Copy link
Contributor Author

This was fixed here: #179

Sorry, I forgot to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants