Skip to content

Instantly share code, notes, and snippets.

View Bigcheese's full-sized avatar

Michael Spencer Bigcheese

View GitHub Profile
package Image::Embroidery;
use 5.006;
use strict;
use warnings;
use Carp;
use IO::File;
use Bit::Vector;
use Data::Dumper;
/mnt/hgfs/Projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:547:35: error: too few arguments to function call, expected 4, have 1
EmitCheck(Builder.getFalse());
~~~~~~~~~ ^
/mnt/hgfs/Projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:2566:3: note: 'EmitCheck' declared here
void EmitCheck(llvm::Value *Checked, StringRef CheckName,
^
/mnt/host/llvm-project/libcxx/src/exception.cpp:50:38: error: use of undeclared identifier '__unexpected_handler'
return __sync_lock_test_and_set(&__unexpected_handler, func);
^
/mnt/host/llvm-project/libcxx/src/exception.cpp:56:34: error: use of undeclared identifier '__unexpected_handler'
return __sync_fetch_and_add(&__unexpected_handler, (unexpected_handler)0);
^
/mnt/host/llvm-project/libcxx/src/exception.cpp:71:38: error: use of undeclared identifier '__terminate_handler'
return __sync_lock_test_and_set(&__terminate_handler, func);
^
/mnt/host/llvm-project/libcxx/src/exception.cpp:77:34: error: use of undeclared identifier '__terminate_handler'
FINAL-ARCHIVE: clang_darwin/eprintf: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a
FINAL-ARCHIVE: clang_darwin/10.4: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a
FINAL-ARCHIVE: clang_darwin/ios: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/ios/libcompiler_rt.a
FINAL-ARCHIVE: clang_darwin/osx: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/osx/libcompiler_rt.a
FINAL-ARCHIVE: clang_darwin/cc_kext: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext/libcompiler_rt.a
ARCHIVE: clang_darwin/cc_kext_ios5/armv7: /Users/michael/Projects/llvm-project-build/llvm-Release+Asserts/tools/clang/runtime/compiler-rt/clang_darwin/cc_kext_ios5/armv7/libcomp
FAILED: : && /usr/local/bin/clang++ -Wall -std=c++11 -stdlib=libc++ -fcolor-diagnostics -fPIC -fvisibility-inlines-hidden -O3 -DNDEBUG -lpthread -ldl -rdynamic projects/compiler-rt/lib/asan/tests/asan_globals_test.cc.asan.o projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/asan_noinst_test.cc.o projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/asan_break_optimization.cc.o projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/asan_test_main.cc.o -o projects/compiler-rt/lib/asan/tests/Release/AsanTest -rdynamic -ldl -lpthread lib/libgtest.a lib/libgtest_main.a lib/libLLVMSupport.a lib/clang/3.2/lib/linux/libclang_rt.asan-x86_64.a lib/libgtest.a lib/libLLVMSupport.a -ldl -lpthread && :
projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o: In function `testing::internal::scoped_ptr<std::string>::operator->() const':
/mnt/host/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest-message.h:191: undefined reference to
/mnt/host/llvm-project/lold/lib/ReaderWriter/ELF/HexagonReference.cpp:47:22: fatal error: left shift of negative value -6
0 lld-core 0x000000000058ea72
1 lld-core 0x000000000058ee6f
2 libpthread.so.0 0x00007f084f7a8cb0
3 lld-core 0x0000000000590ea0
4 lld-core 0x00000000005916bc
5 lld-core 0x00000000004e2971 lld::elf::hexagon::reloc_B22_PCREL(unsigned char*, unsigned long, unsigned long, unsigned long) + 113
6 lld-core 0x00000000004e2ee7 lld::elf::KindHandler_hexagon::applyFixup(int, unsigned long, unsigned char*, unsigned long, unsigned long) + 119
7 lld-core 0x00000000004dfcbd lld::elf::StockSectionChunk<(llvm::support::endianness)1, false>::write(unsigned char*) + 653
8 lld-core 0x00000000004d4629 lld::elf::ELFWriter<(llvm::support::endianness)1, false>::writeFile(lld::File const&, llvm::StringRef) + 361
The C compiler identification is unknown
The CXX compiler identification is unknown
Looking for argz.h
CMake Error at L:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
The C compiler identification is unknown
The CXX compiler identification is unknown
Looking for argz.h
CMake Error at L:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
#include <type_traits>
template<class T, class V>
typename std::enable_if< std::is_constructible<T, V>::value
, typename std::remove_reference<V>::type>::type &&
moveIfMoveConstructible(V &t) {
return std::move(t);
}
template<class T, class V>
@Bigcheese
Bigcheese / gist:4472242
Created January 7, 2013 04:07
Finally... lld working with dietlibc.
michael@michael-VirtualBox:~/test$ lld -flavor ld /usr/lib/diet/lib/start.o hello-world.o /usr/lib/diet/lib/libc.a -o hello-world-lld
michael@michael-VirtualBox:~/test$ llvm-objdump -p hello-world-lld
hello-world-lld: file format ELF64-x86-64
Program Header:
LOAD off 0x0000000000000000 vaddr 0x0000000000400000 paddr 0x0000000000400000 align 2**12
filesz 0x00000000000004a8 memsz 0x00000000000004a8 flags r-x
LOAD off 0x0000000000001000 vaddr 0x0000000000401000 paddr 0x0000000000401000 align 2**12
filesz 0x0000000000000008 memsz 0x0000000000000050 flags rw-