Sunflower-toolchain installation error in macOS - resolved
btsouts opened this issue · 1 comments
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 gcc@4.9.
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 isl@0.18 with brew.
The compilation should then be successful.
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)