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

llvm@4: fix C++ compilation for Mojave and Catalina #45958

Closed
wants to merge 1 commit into from

Conversation

smorimoto
Copy link
Contributor

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Port from #45693. Thank you @jamiesnape.

Related issue and PR: #45061 and #45304.

@smorimoto
Copy link
Contributor Author

@BrewTestBot test this please!

@fxcoudert
Copy link
Member

fxcoudert commented Oct 31, 2019

/tmp/llvm@4-20191030-5941-10nafpo/llvm-4.0.1.src/tools/lld/ELF/LTO.cpp:161:32: error: 'template' keyword not permitted here
template void BitcodeCompiler::template add<ELF32LE>(BitcodeFile &);
                               ^~~~~~~~~
/tmp/llvm@4-20191030-5941-10nafpo/llvm-4.0.1.src/tools/lld/ELF/LTO.cpp:162:32: error: 'template' keyword not permitted here
template void BitcodeCompiler::template add<ELF32BE>(BitcodeFile &);
                               ^~~~~~~~~
/tmp/llvm@4-20191030-5941-10nafpo/llvm-4.0.1.src/tools/lld/ELF/LTO.cpp:163:32: error: 'template' keyword not permitted here
template void BitcodeCompiler::template add<ELF64LE>(BitcodeFile &);
                               ^~~~~~~~~
/tmp/llvm@4-20191030-5941-10nafpo/llvm-4.0.1.src/tools/lld/ELF/LTO.cpp:164:32: error: 'template' keyword not permitted here
template void BitcodeCompiler::template add<ELF64BE>(BitcodeFile &);
                               ^~~~~~~~~

Possibly this is just too old to compile with Xcode 11

@smorimoto
Copy link
Contributor Author

This should work.

template void BitcodeCompiler::add<ELF32BE>(BitcodeFile &);

@smorimoto
Copy link
Contributor Author

Oh, it's the LLVM source code... Possibly it can't build on Mojave or later. I guess.

@fxcoudert
Copy link
Member

Given it's an old version, we'll keep it as is. Thanks @imbsky nonetheless for this PR, and all the others!

@fxcoudert fxcoudert closed this Nov 1, 2019
@smorimoto smorimoto deleted the llvm@4-sysroot branch November 1, 2019 12:18
@smorimoto
Copy link
Contributor Author

@fxcoudert I think that's fine. Nooo! Review, merge, and manage are really hard work than most people think! Thank you!

@lock lock bot added the outdated PR was locked due to age label Jan 3, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants