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

Sunflower-toolchain installation error in macOS - resolved #123

Open
btsouts opened this issue Oct 3, 2019 · 1 comment
Open

Sunflower-toolchain installation error in macOS - resolved #123

btsouts opened this issue Oct 3, 2019 · 1 comment
Labels

Comments

@btsouts
Copy link
Collaborator

btsouts commented Oct 3, 2019

Description
This issue contains notes for successful installation of sunflower in macOS.

In macOS 10.14.6 sunflower-toolchain installation fails if isl library
is a higher version than 0.18. The errors related to this library have
the following form:

../../gcc/graphite-isl-ast-to-gimple.c:83:7: error: use of undeclared identifier 'isl_id_free'
isl_id_free (it->first);
^
../../gcc/graphite-isl-ast-to-gimple.c:262:3: error: use of undeclared identifier 'isl_id_free'
isl_id_free (tmp_isl_id);
^
../../gcc/graphite-isl-ast-to-gimple.c:598:5: error: use of undeclared identifier 'isl_id_free'
isl_id_free (res->first);
^
All the following have been tested with [email protected].
I am not aware of what happens with other versions of gcc.

To check your isl version
To identify the isl installed package, execute:
port installed | grep isl
and/or
brew list | grep isl

More info about the package can be found using:
port contents package
and/or
brew info package

To solve the issue
Remove the installed isl library using port or brew.
Then install [email protected] with brew.
The compilation should then be successful.

@js2597
Copy link

js2597 commented Jan 24, 2024

For a quick fix on homebrew strapped darwin without downgrading isl, under repository root

gsed -i 's/8.2.0/8.5.0/g' tools/source/downloads.sh
gsed -i 's/8.2.0/8.5.0/g' sunflower-toolchain/tools/Makefile

Will potentially require a corresponding PR on the toolchain repo (related 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

3 participants