search for: musl

Displaying 20 results from an estimated 222 matches for "musl".

Did you mean: mul
2016 Dec 09
4
Strange clang behavior when compiled against musl
I have managed to compile llvm and clang against musl, but it behaves really strange: At first I tried to launch the compiler with musl dynamic loader: $ LD_LIBRARY_PATH=/path/to/musl/lib /path/to/musl/lib/ld-musl-x86_64.so.1 /path/to/llvm/bin/clang -v clang version 4.0.0 (https://github.com/llvm-mirror/clang 40adebeca0f99006d407508653c2cbd2...
2018 Apr 02
2
LLD-linked binary segfaults at runtime on alpine linux
Alpine linux is a distribution that uses musl libc instead glibc. Here are my steps to reproduce: On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org, and build them from source. $ clang -c hello_world.c $ ld.lld --gc-sections -m elf_x86_64 -o hello_world /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1....
2018 Apr 02
0
LLD-linked binary segfaults at runtime on alpine linux
...ates repro.tar in your current directory which contains all input files. And then please compress and upload it somewhere so that we can take a look. On Mon, Apr 2, 2018 at 9:18 AM Andrew Kelley via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Alpine linux is a distribution that uses musl libc instead glibc. Here are > my steps to reproduce: > > On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org, > and build them from source. > > $ clang -c hello_world.c > $ ld.lld --gc-sections -m elf_x86_64 -o hello_world > /usr/lib/gcc/x86_64-alpine-l...
2018 Apr 02
1
LLD-linked binary segfaults at runtime on alpine linux
...directory which contains all input files. And > then please compress and upload it somewhere so that we can take a look. > > > On Mon, Apr 2, 2018 at 9:18 AM Andrew Kelley via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Alpine linux is a distribution that uses musl libc instead glibc. Here >> are my steps to reproduce: >> >> On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org, >> and build them from source. >> >> $ clang -c hello_world.c >> $ ld.lld --gc-sections -m elf_x86_64 -o hello_world >&...
2012 Jul 09
1
[LLVMdev] [cfe-dev] ELLCC and musl
> ELLCC (http://ellcc.org), my clang/LLVM based cross development tool chain for > ARM, Microblaze, Mips, Power PC, and X86, now incorporates musl > (http://www.etalabs.net/musl) as its standard C library for Linux. musl is a > MIT licensed, highly POSIX compliant library offering high performance and a > small foot print. I spent several weeks evaluating musl before deciding to use > it in ELLCC. The clarity and consistency of it...
2019 Mar 25
3
Trying to create a pure LLVM toolchain on musl based distribution
Hello, I'm trying to create a pure LLVM toolchain (that will not depend on GNU and produce GNU-free code too) on a musl based distribution. For now, I use gcc to bootstrap and build all LLVM components. I do it individually because I was running out of space and memory trying to build all using LLVM_ENABLE_PROJECTS. Also, I don't want to create a all-in-one package. Then, once I'm able to build program w...
2016 Feb 04
3
Fwd: [musl] strptime() question
There is incompatibility between R strptime and musl libc. I posted about it on their mailing list, but they need more information I can't provide, so I'm forwarding the message here in hope R developers can help. Thanks. ---------- Forwarded message ---------- From: Rich Felker <dalias at libc.org> Date: Thu, Feb 4, 2016 at 2:07 PM S...
2016 Feb 01
1
More problems with building R on a musl platform
Here is tests/reg-tests-1c.Rout.fail - http://pastebin.com/raw/3QVDUBwT About the libm, I don't know which one R uses. musl has its on libm. http://git.musl-libc.org/cgit/musl/tree/src/math I think I also have openlibm installed, but I don't think that's used. Any more information I can give to help debug this? Thanks. On Mon, Feb 1, 2016 at 3:49 PM, Martin Maechler <maechler at stat.math.ethz.ch> wrot...
2017 Aug 05
3
Cross compiling C++ program
...cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_INSTALL_PREFIX=/tmp/x86-sysroot ../../source/llvm # make -j4 # make install It was fun learning how to manualy compile compiler for the first time. Now how to cross compile for bare? Given that I have musl-1.1.16 directory and that I'm preseeding sysroot with: # rm -rf /tmp/barearm-sysroot # mkdir -p /tmp/barearm-sysroot # cp -r musl-1.1.16/include /tmp/barearm-sysroot/ # Thanx for the tip! So I tried to use it, and clang/llvm build, but compiler-rt fails: # cmake -G 'Unix Makefiles' -...
2015 Mar 12
2
[LLVMdev] Customize Standard C Library Using LLVM (to support llvm backend optimization)
2015-03-11 16:22 GMT-05:00 Richard Gorton < rcgorton at cognitive-electronics.com>: > I can confirm that musl builds and works correctly with clang/llvm. We > are using musl as a libc for our architecture. > It has a much smaller code footprint than newlib or glibc. > I successfully cross-compile the must-libc using clang, with the configuration: C=clang CFLAGS=--target=arm-none-linux-gnueabi\...
2016 Dec 02
2
Failed to configure LLVM for use with Musl
I want to build LLVM-based toolchain with Musl, I have LLVM sources with clang and lld (under `tools` directory) and libunwind, compiler-rt, libcxx and libcxxabi (under `projects` directory). All are the latest versions cloned from GitHub mirror, branch `master`. I'm trying to configure with the following options: CLANG_DEFAULT_CXX_STD...
2019 Aug 03
3
conflicting builtins in clang with musl (stddef.h)
Hello there, I'm building a Linux distribution based on musl and LLVM as default toolchain (including lld/libc++/libc++abi/libunwind rather than GNU). For most of the time this works pretty well. However I'm having troubles with few packages, webkit for instance fails because of max_align_t being redeclared in musl's stddef.h I see that stddef.h is...
2017 Jun 04
2
LLVM compilation problem with musl
I'm trying to compile LLVM with musl libc library. The compilation process fails on the following: x86_64-linux-musl-g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I../lib/Support -Iinclude -I../include -fPIC -fvisibility-inlines-hidden -Werror=...
2013 Oct 22
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
For example, I execute the following command sequences: H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s #.globl _sqrt .global sqrt #.type sqrt, at function #_sqrt: sqrt: fldl 4(%esp) fsqrt fstsw %ax sub $12,%esp fld %st(0) fstpt (%esp) mov (%esp),%ecx and $0x7ff,%ecx cmp $0x400,%ecx jnz 1f a...
2019 Mar 25
2
Trying to create a pure LLVM toolchain on musl based distribution
Le 25/03/2019 à 14:41, Peter Smith a écrit : > Hello David, > > I don't know much about the specifics of Musl, so I'm responding generally. > > As I understand it, clang expects to find the compiler-rt libraries > relative to the resource directory, which you can find out the > location of with clang --print-resource-dir . By default it is > lib/clang/9.0.0 assuming you are building fro...
2016 Feb 01
3
Wrong config check for __libc_stack_end
...>> processor - http://pastebin.com/raw/N6SYAuFX Here is >>>>> Isaac's log from 'make check' using an Intel Atom 32-bit >>>>> processor - http://pastebin.com/raw/sey6DEk9 >>>> >>>>> We are both on Alpine Linux, which uses the musl >>>>> libc. http://www.musl-libc.org/ >>>> >>>>> Thank you very much. >>>> >>>> It probably would have helped to choose a different subject >>>> which I now do. >>>> >>> >>> Agreed, since the...
2013 Oct 22
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...the _ prefix on win32 x86. clang will run the C preprocessor for you if you use the .S file suffix (case matters). On Tue, Oct 22, 2013 at 7:08 AM, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>wrote: > For example, I execute the following command sequences: > > H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s > #.globl _sqrt > .global sqrt > #.type sqrt, at function > #_sqrt: > sqrt: fldl 4(%esp) > fsqrt > fstsw %ax > sub $12,%esp > fld %st(0) > fstpt (%esp) > mov (%esp),%ecx > and...
2016 Feb 01
3
Wrong config check for __libc_stack_end
...from 'make check' using an Intel i5 64-bit > processor - http://pastebin.com/raw/N6SYAuFX Here is > Isaac's log from 'make check' using an Intel Atom 32-bit > processor - http://pastebin.com/raw/sey6DEk9 > We are both on Alpine Linux, which uses the musl > libc. http://www.musl-libc.org/ > Thank you very much. It probably would have helped to choose a different subject which I now do. > On Thu, Jan 28, 2016 at 9:54 AM, Alba Pompeo > <albapompeo at gmail.com> wrote: >> Hello, developers of R. >&g...
2012 Jul 09
0
[LLVMdev] ELLCC and musl
ELLCC (http://ellcc.org), my clang/LLVM based cross development tool chain for ARM, Microblaze, Mips, Power PC, and X86, now incorporates musl (http://www.etalabs.net/musl) as its standard C library for Linux. musl is a MIT licensed, highly POSIX compliant library offering high performance and a small foot print. I spent several weeks evaluating musl before deciding to use it in ELLCC. The clarity and consistency of its code base and...
2016 Feb 01
3
Wrong config check for __libc_stack_end
...9; using an Intel i5 64-bit >>> processor - http://pastebin.com/raw/N6SYAuFX Here is >>> Isaac's log from 'make check' using an Intel Atom 32-bit >>> processor - http://pastebin.com/raw/sey6DEk9 >> >>> We are both on Alpine Linux, which uses the musl >>> libc. http://www.musl-libc.org/ >> >>> Thank you very much. >> >> It probably would have helped to choose a different subject >> which I now do. >> > > Agreed, since there is actually no abuse, case was easily dismissed as bogus given the su...