Wilfred / bfc

An industrial-grade brainfuck compiler
https://bfc.wilfred.me.uk
GNU General Public License v2.0
508 stars 31 forks source link

"Pass is not initialized" on LLVM 8 #27

Closed easyaspi314 closed 5 years ago

easyaspi314 commented 5 years ago
Pass 'Interprocedural Sparse Conditional Constant Propagation' is not initialized.
Verify if there is a pass dependency cycle.
Required Passes:
Segmentation fault: 11

Even when I updated llvm-sys to v80, it just crashes.

Wilfred commented 5 years ago

What platform are you running on? How are you running bfc?

easyaspi314 commented 5 years ago

Oof, I put the info in the wrong tab. The side effect of having 201 tabs open. >.<

macOS Mojave 10.14.2 2.0 GHz MacBook Pro (15-inch, Early 2011) Clang 8.0.0 from Homebrew This file

../bfc/target/release/bfc -O2 ../mandelbrot.bf

If I compile against Clang 7.0.1, it works fine.

I tried to compile for Termux on ARMv7-A, but I got a bunch of linker errors. I'll try to reproduce on Linux.

apaprocki commented 5 years ago

@Wilfred I see this happening on a vanilla x86_64 RHEL server as well with Clang 8.0.0.

BambooL commented 5 years ago

Same issue here. vanilla x86_64 with llvm@8. Same error message with every single compile.

Wilfred commented 5 years ago

I can reproduce this on release builds on bfc, but not debug builds.

Wilfred commented 5 years ago

I specifically said "doesn't fix" in the commit message!

Wilfred commented 5 years ago

The above commit should fix it, let me know if not :)

apaprocki commented 5 years ago

@Wilfred thanks, that does it. Is there an expected date for the 1.8.0 release? If you're holding off a bit, I'll pull the patches out. Thanks

Wilfred commented 5 years ago

I've just tagged 1.8.0 and published it. I screwed up slightly and the published release is 700a2ae, but hopefully that should meet your needs.

I'm flattered and rather surprised that people actually want releases of this project! It was purely intended as a {well,over}engineered toy.

BambooL commented 5 years ago

Thanks Wilfred,

for addressing this issue and releasing a new version!

Xiao

On Tue, Oct 1, 2019 at 8:20 AM Wilfred Hughes notifications@github.com wrote:

I've just tagged 1.8.0 and published it. I screwed up slightly and the published release is 700a2ae https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWilfred%2Fbfc%2Fcommit%2F700a2ae0b227bb53f651dff3172c196a22d70ff2&data=02%7C01%7Cxvl5190%40psu.edu%7C33260bb1e90c47d1f2cc08d746052e79%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C637054860384840658&sdata=GF3ZTkXWTeLO7l11oe%2F4PCSSJnLHZxbTw4%2FRH%2BxpjWg%3D&reserved=0, but hopefully that should meet your needs.

I'm flattered and rather surprised that people actually want releases of this project! It was purely intended as a {well,over}engineered toy.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWilfred%2Fbfc%2Fissues%2F27%3Femail_source%3Dnotifications%26email_token%3DABJGRNHEMS6ZWVSKBWKXTA3QMKJVDA5CNFSM4HC3ZKCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD77PZMY%23issuecomment-536804531&data=02%7C01%7Cxvl5190%40psu.edu%7C33260bb1e90c47d1f2cc08d746052e79%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C637054860384850656&sdata=6Us5C0G21l6BiZdzWm8SCFteRRJnILC5jqPd6GlRTTI%3D&reserved=0, or mute the thread https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABJGRNDZJJ3MQVBG2C7U743QMKJVDANCNFSM4HC3ZKCA&data=02%7C01%7Cxvl5190%40psu.edu%7C33260bb1e90c47d1f2cc08d746052e79%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C637054860384850656&sdata=LWFVjGUPDE2Ry6L6q8P%2B2d%2FvkExZda6K7fYaPayeVcI%3D&reserved=0 .