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

avr-gcc is broken due to isl 0.22 update #136

Closed
drashna opened this issue Dec 31, 2019 · 13 comments
Closed

avr-gcc is broken due to isl 0.22 update #136

drashna opened this issue Dec 31, 2019 · 13 comments
Labels

Comments

@drashna
Copy link

drashna commented Dec 31, 2019

Brew updated isl to 0.22, and avr-gcc (8, and 9, at least) require 0.21.

dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.21.dylib
  Referenced from: /usr/local/Cellar/avr-gcc/9.2.0/libexec/gcc/avr/9.2.0/cc1
  Reason: image not found
avr-gcc: internal compiler error: Abort trap: 6 signal terminated program cc1
@ubidefeo
Copy link

boom!
same here :(

@ubidefeo
Copy link

temporary solution, @drashna
you might need some extra tools, I have a ton of development stuff on my machine.

  • go to http://isl.gforge.inria.fr
  • download the 0.21 (.xz)
  • unpack it (double click)
  • enter the directory in terminal
  • ./configure
  • make check
    if everything works you'll get something like this
PASS: isl_test
PASS: codegen_test.sh
PASS: pip_test.sh
PASS: bound_test.sh
PASS: isl_test_int
PASS: flow_test.sh
PASS: schedule_test.sh
PASS: isl_test_cpp
============================================================================
Testsuite summary for isl 0.21
============================================================================
# TOTAL: 8
# PASS:  8
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in doc
make[2]: Nothing to be done for `check'.

if tests are good, just go make install
if it all works out just brew uninstall --ignore-dependencies isl
after that you won't have that issue anymore
it fixed mine on Mojave, at least :)

@drashna
Copy link
Author

drashna commented Dec 31, 2019

I just forcibly rolled back homebrew-core, and disabled autoupdate. Your solution is better, though. However, neither are "good" solutions.

@ladislas
Copy link
Member

I'm out on holiday with my family with no computer. I'll update the formula when I get back next Monday.

@drashna
Copy link
Author

drashna commented Dec 31, 2019

No worries, and enjoy your holiday!

@darthburrito
Copy link

updating the reference worked for me

brew install isl
install_name_tool -change '/usr/local/opt/isl/lib/libisl.21.dylib' /usr/local/opt/isl/lib/libisl.dylib /usr/local/Cellar/avr-gcc/9.2.0/libexec/gcc/avr/9.2.0/cc1

@ubidefeo
Copy link

ubidefeo commented Jan 1, 2020

@darthburrito
I saw this as a possible fix on some other place, but it's an even dirtier trick in my opinion :D

@drashna
Copy link
Author

drashna commented Jan 2, 2020

@darthburrito you may also need to do that for lto1 as well. At least, I have had to.

@ladislas
Copy link
Member

ladislas commented Jan 5, 2020

@drashna @ubidefeo I think the easiest solution for now is to uninstall avr-gcc and build from source with brew install avr-gcc --build-from-source avr-gcc.

I'm working on fixing the issue: the CI should have caught the broken linkage and fix it but it's not.

@ladislas ladislas added the bug label Jan 5, 2020
@ladislas
Copy link
Member

ladislas commented Jan 5, 2020

issue is now fixed with the latest revision bump, closing now. :)

@ladislas ladislas closed this as completed Jan 5, 2020
@mys721tx
Copy link

mys721tx commented Jan 5, 2020

@ladislas Is there an ETA for the GCC 8 bottle?

@ladislas
Copy link
Member

ladislas commented Jan 5, 2020

@mys721tx working on it, still getting some errors with those.

@ladislas
Copy link
Member

ladislas commented Jan 5, 2020

@mys721tx should be good now! let me know if you have any issues.

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

5 participants