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

Fix CMOD Makefile calling system GCC linker instead of user GCC #191

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix CMOD Makefile calling system GCC linker instead of user GCC #191

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 31, 2018

It's not big problem, but I think it's just overlooked use of $(CC). I checked with grep -Rw CC, and it's defined nowhere therefore it defaults to /usr/bin/cc which is 'out of control'.

Good idea would be defining CC := $(GCC) in make/common.make or somewhere else.

@ghost
Copy link
Author

ghost commented Aug 9, 2018

By the way, if you were interested in adding support for newer compiler for CMOD, you could consider upgrading Algorithmic C in cmod/hls/include. I checked this version https://github.com/hlslibs/ac_types which worked with GCC 8.1. At least one problem was missing 'template' keyword which was added in version 3.7.2 (https://github.com/hlslibs/ac_types/blob/master/include/ac_fixed.h#L410)

@ghost
Copy link
Author

ghost commented Aug 10, 2018

note: added new commit that should allow run ./tools/bin/tmake -build cmod_top -opt_m -j`nproc` without errors.

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

Successfully merging this pull request may close these issues.

0 participants