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 6.0.1 #29774

Closed
Closed

Conversation

matiasgarciaisaia
Copy link
Contributor

Bugfix release of LLVM - includes some bugs that prevent Crystal to be built with LLVM 6.0.0

Changes included fixes tracked in https://bugs.llvm.org/show_bug.cgi?id=36649

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 5, 2018

Yay!

@commitay
Copy link
Contributor

commitay commented Jul 6, 2018

Thanks @matiasgarciaisaia!

@commitay commitay closed this in 1ccbe76 Jul 6, 2018
@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 6, 2018

@matiasgarciaisaia crystal fails with 6.0.1:

==> make deps
Using /usr/local/opt/llvm/bin/llvm-config [version=6.0.1]
clang++ -c  -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/local/Cellar/llvm/6.0.1/include  -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -DNDEBUG   -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
clang -fPIC    -c -o src/ext/sigfault.o src/ext/sigfault.c
ar -rcs src/ext/libcrystal.a src/ext/sigfault.o
==> bin/crystal build -D without_openssl -D without_zlib -o .build/crystal src/compiler/crystal.cr --release --no-debug
duplicate symbol _LLVMDIBuilderCreateCompileUnit in:
    /private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/src/llvm/ext/llvm_ext.o
    /usr/local/Cellar/llvm/6.0.1/lib/libLLVMCore.a(DebugInfo.cpp.o)
duplicate symbol _LLVMDIBuilderFinalize in:
    /private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/src/llvm/ext/llvm_ext.o
    /usr/local/Cellar/llvm/6.0.1/lib/libLLVMCore.a(DebugInfo.cpp.o)
duplicate symbol _LLVMDIBuilderCreateFile in:
    /private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/src/llvm/ext/llvm_ext.o
    /usr/local/Cellar/llvm/6.0.1/lib/libLLVMCore.a(DebugInfo.cpp.o)
ld: 3 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `clang "${@}" -o '/private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/.build/crystal'  -rdynamic  /private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/src/llvm/ext/llvm_ext.o `/usr/local/opt/llvm/bin/llvm-config --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lgc -lpthread /private/tmp/crystal-20180705-2405-il54nx/crystal-0.25.1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`
/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
BuildError: Failed executing: bin/crystal build -D without_openssl -D without_zlib -o .build/crystal src/compiler/crystal.cr --release --no-debug
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 

@lock lock bot added the outdated PR was locked due to age label Aug 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2018
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.

3 participants