From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2492 Path: news.gmane.org!not-for-mail From: ojab Newsgroups: gmane.linux.lib.musl.general Subject: Re: Status of 1.0 wishlist items? Date: Mon, 17 Dec 2012 16:47:06 +0400 Message-ID: <50CF144A.9080708@ojab.ru> References: <20121204235937.GA23989@brightrain.aerifal.cx> <20121213220324.GH20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060901020102010300040907" X-Trace: ger.gmane.org 1355748442 4278 80.91.229.3 (17 Dec 2012 12:47:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 12:47:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2493-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 17 13:47:36 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Tka6Y-00068u-5m for gllmg-musl@plane.gmane.org; Mon, 17 Dec 2012 13:47:34 +0100 Original-Received: (qmail 18424 invoked by uid 550); 17 Dec 2012 12:47:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18415 invoked from network); 17 Dec 2012 12:47:20 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:x-gm-message-state; bh=N0F0P1jDq5xsCIuheiBtyJH3eJd/YwyYB0P7w8I7QqQ=; b=SJi9CbRFCYXUkuZcfpLI52g1aG0Gsj3IwreCmoAVzzWq9FVBOeQDt50PH3VUXNpftW rhj2wRe6FLoE/K4TwA2HHi1B/XyGRGUPuOwixv1eI5/QOHenfhY0egbdYKH8n13ouCYF ap5ubrCStqWgzbNtq+tBFrgoJhCjRI+8KOPtGEB70P1jmBYkn2byyrZ+5nb2cl0ZHg+q 1cGmo7+5lIY/oP3Ey7pPUzC3D6E3qWx9GyumBvyS7tZawdoy4wzYlkFr/KNiFr/NVOPx x5jnX0zO9RZYHxtVc9oM/MM+tHRnl1XR8jbaoAOtqucaaKh7jw+uHvKoGQzsUCTNOKbJ wnNw== User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Thunderbird/20.0a1 In-Reply-To: <20121213220324.GH20323@brightrain.aerifal.cx> X-Gm-Message-State: ALoCoQkEuQkTSGMfMIOc2Qc7QGXxLXxNllH9PUMNyS8ZYxh9u67MyFyfX4zOO8FZh9rmGZ/wJRIi Xref: news.gmane.org gmane.linux.lib.musl.general:2492 Archived-At: This is a multi-part message in MIME format. --------------060901020102010300040907 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 14.12.2012 02:03, Rich Felker wrote: >> - Development stack (GCC, LLVM/clang, GDB, strace, ...) > Has anybody built LLVM/clang on musl? I believe the set of patches > needed for GDB has been reduced quite a bit now, but I'm not sure what > the status on strace is... > LLVM/clang (x86_64) builds (on sabotage) with the small patch (in the attached file), but there are 15 test failing (mostly segfaults at include/llvm/Type.h:133, see attached log): Failing Tests (15): LLVM :: Instrumentation/AddressSanitizer/instrument_global.ll LLVM :: Instrumentation/AddressSanitizer/instrument_initializer_metadata.ll LLVM :: Instrumentation/ThreadSanitizer/atomic.ll LLVM :: Instrumentation/ThreadSanitizer/read_before_write.ll LLVM :: Instrumentation/ThreadSanitizer/read_from_global.ll LLVM :: Instrumentation/ThreadSanitizer/tsan_basic.ll LLVM :: Instrumentation/ThreadSanitizer/vptr_update.ll LLVM :: Other/close-stderr.ll LLVM :: Transforms/InstCombine/fprintf-1.ll LLVM :: Transforms/InstCombine/fputs-1.ll LLVM :: Transforms/InstCombine/osx-names.ll LLVM :: Transforms/InstCombine/stpcpy-1.ll LLVM :: Transforms/InstCombine/stpcpy_chk-1.ll LLVM :: Transforms/InstCombine/strcmp-1.ll LLVM :: Transforms/InstCombine/strcpy_chk-1.ll In "[musl] Summary of 1.0 marketing plan/scheme/nefarious plot from IRC." thread there is pt. "- push "musl support" patches to other projects upstream all at once" — it's better to send patches to musl@ mail-list and leave it here or what? //wbr ojab --------------060901020102010300040907 Content-Type: text/plain; charset=UTF-8; name="llvm-musl.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="llvm-musl.diff" Index: lib/Support/DynamicLibrary.cpp =================================================================== --- lib/Support/DynamicLibrary.cpp (revision 170294) +++ lib/Support/DynamicLibrary.cpp (working copy) @@ -155,7 +155,7 @@ // This macro returns the address of a well-known, explicit symbol #define EXPLICIT_SYMBOL(SYM) \ - if (!strcmp(symbolName, #SYM)) return &SYM + if (!strcmp(symbolName, #SYM)) return (void *) &SYM // On linux we have a weird situation. The stderr/out/in symbols are both // macros and global variables because of standards requirements. So, we Index: utils/unittest/googletest/gtest.cc =================================================================== --- utils/unittest/googletest/gtest.cc (revision 170294) +++ utils/unittest/googletest/gtest.cc (working copy) @@ -120,6 +120,7 @@ #if GTEST_CAN_STREAM_RESULTS_ # include // NOLINT +# include // NOLINT # include // NOLINT #endif --------------060901020102010300040907 Content-Type: text/plain; charset=UTF-8; name="llvm_fails.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="llvm_fails.log" ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/AddressSanitizer/instrument_global.ll -asan -asan-module -S Assertion failed: (ST->isOpaque() || ST->getNumElements() == V.size()) && "Incorrect # elements specified to ConstantStruct::get" (/root/llvm/lib/VMCore/Constants.cpp: get: 846) Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -asan -asan-module -S 1. Running pass 'AddressSanitizerModule' on module ''. Killed ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/AddressSanitizer/instrument_initializer_metadata.ll -asan -asan-module -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -asan -asan-module -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'AddressSanitizerFunctionPass' on function '@_GLOBAL__I_a' Segmentation fault (core dumped) ... #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x606060600000000) at /root/llvm/include/llvm/Type.h:133 No locals. #1 0x0000000001270a26 in llvm::Type::isFirstClassType (this=0x606060600000000) at /root/llvm/include/llvm/Type.h:236 No locals. #2 0x00000000013cf6cc in llvm::FunctionType::isValidArgumentType (ArgTy=0x606060600000000) at /root/llvm/lib/VMCore/Type.cpp:396 No locals. #3 0x00000000013cf3fb in llvm::FunctionType::FunctionType (this=0x389c8e0, Result=0x38944a0, Params=..., IsVarArgs=false) at /root/llvm/lib/VMCore/Type.cpp:351 i = 2 e = 6 SubTys = 0x389c8f8 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/ThreadSanitizer/atomic.ll -tsan -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -tsan -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'ThreadSanitizer' on function '@atomic8_load_unordered' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/ThreadSanitizer/read_before_write.ll -tsan -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -tsan -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'ThreadSanitizer' on function '@IncrementMe' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/ThreadSanitizer/read_from_global.ll -tsan -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -tsan -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'ThreadSanitizer' on function '@read_from_const_global' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll -tsan -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -tsan -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'ThreadSanitizer' on function '@read_4_bytes' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll -tsan -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -tsan -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'ThreadSanitizer' on function '@Foo' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 LLVM :: Other/close-stderr.ll hangs ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/fprintf-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test_simplify1' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x7fff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/fputs-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test_simplify1' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x7fff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/osx-names.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test1' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x7fff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/stpcpy-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test_simplify2' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x1700000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/stpcpy_chk-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test_simplify1' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/strcmp-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test5' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0x7fff00000000) at /root/llvm/include/llvm/Type.h:133 ~ # /root/llvm-build/Release+Asserts/bin/opt < /root/llvm/test/Transforms/InstCombine/strcpy_chk-1.ll -instcombine -S Stack dump: 0. Program arguments: /root/llvm-build/Release+Asserts/bin/opt -instcombine -S 1. Running pass 'Function Pass Manager' on module ''. 2. Running pass 'Combine redundant instructions' on function '@test_simplify1' Segmentation fault (core dumped) #0 0x00000000009315ba in llvm::Type::getTypeID (this=0xffffffff00000000) at /root/llvm/include/llvm/Type.h:133 --------------060901020102010300040907--