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

Mipsel-musl: build error in D runtime debug #4520

Open
kassane opened this issue Nov 4, 2023 · 5 comments
Open

Mipsel-musl: build error in D runtime debug #4520

kassane opened this issue Nov 4, 2023 · 5 comments

Comments

@kassane
Copy link
Contributor

kassane commented Nov 4, 2023

I'm trying to statically compile the LDC libraries and I haven't succeeded with the musl target.

Commands

#!/usr/bin/env bash

wget -c https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt76x8/openwrt-sdk-22.03.5-ramips-mt76x8_gcc-11.2.0_musl.Linux-x86_64.tar.xz
tar -xvf openwrt-sdk-22.03.5-ramips-mt76x8_gcc-11.2.0_musl.Linux-x86_64.tar.xz
mv openwrt-sdk-22.03.5-ramips-mt76x8_gcc-11.2.0_musl.Linux-x86_64 mipsel_musl

export STAGING_DIR="$PWD/mipsel_musl/staging_dir"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/${STAGING_DIR}/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib"
export PATH="$STAGING_DIR/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin:$PWD/ldc2-1.35.0-linux-x86_64/bin":$PATH
alias strip-mipsel="$STAGING_DIR/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-strip -s"
export CC="$STAGING_DIR/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc"

ldc-build-runtime --buildDir="build"  \
    --dFlags="-w;-mtriple=mipsel-linux;-mcpu=mipsel;-mcpu=mips32;--float-abi=soft;-L=-lm;-defaultlib=phobos2-ldc,druntime-ldc,:libatomic.a" \
    --cFlags="-fPIC;-march=24kec" \
    --linkerFlags="-lm;-l:libatomic.a" \
    --targetSystem="Linux;UNIX" CMAKE_C_COMPILER=$CC BUILD_SHARED_LIBS=OFF CMAKE_BUILD_TYPE=Release CMAKE_CROSSCOMPILING=TRUE CMAKE_SYSTEM_NAME=Linux
Output
.: Creating build directory: build
.: Downloading LDC source archive: https://github.com/ldc-developers/ldc/releases/download/v1.35.0/ldc-1.35.0-src.zip
.: Invoking: cmake -DLDC_EXE_FULL=/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/ldc2 -DDMDFE_MINOR_VERSION=105 -DDMDFE_PATCH_VERSION=2 '-DTARGET_SYSTEM=Linux;UNIX' '-DD_EXTRA_FLAGS=-w;-mtriple=mipsel-linux;-mcpu=mipsel;-mcpu=mips32;--float-abi=soft;-L=-lm;-defaultlib=phobos2-ldc,druntime-ldc,:libatomic.a' '-DRT_CFLAGS=-fPIC -march=24kec' '-DLD_FLAGS=-lm -l:libatomic.a' -DCMAKE_BUILD_TYPE=Release -DCMAKE_CROSSCOMPILING=TRUE -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=/home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc -DCMAKE_SYSTEM_NAME=Linux /home/kassane/ldc2-lib/build/ldc-src/runtime
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The ASM compiler identification is GNU
-- Found assembler: /home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc
-- -- LDC runtime configuration:
-- --  - Building 32/64-bit libraries (MULTILIB): OFF
-- --  - Building shared libraries (BUILD_SHARED_LIBS): OFF
-- --  - Building LTO libraries (BUILD_LTO_LIBS): OFF
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/kassane/ldc2-lib/build
.: Invoking: make all
[  0%] Generating objects/core/atomic.o, objects/core/attribute.o, objects/core/bitop.o, objects/core/builtins.o, objects/core/checkedint.o, objects/core/cpuid.o, objects/core/demangle.o, objects/core/exception.o, objects/core/factory.o, objects/core/gc/config.o, objects/core/gc/gcinterface.o, objects/core/gc/registry.o, objects/core/int128.o, objects/core/internal/abort.o, objects/core/internal/array/appending.o, objects/core/internal/array/arrayassign.o, objects/core/internal/array/capacity.o, objects/core/internal/array/casting.o, objects/core/internal/array/comparison.o, objects/core/internal/array/concatenation.o, objects/core/internal/array/construction.o, objects/core/internal/array/duplication.o, objects/core/internal/array/equality.o, objects/core/internal/array/operations.o, objects/core/internal/array/utils.o, objects/core/internal/atomic.o, objects/core/internal/attributes.o, objects/core/internal/backtrace/dwarf.o, objects/core/internal/backtrace/elf.o, objects/core/internal/backtrace/handler.o, objects/core/internal/backtrace/libunwind.o, objects/core/internal/backtrace/macho.o, objects/core/internal/backtrace/unwind.o, objects/core/internal/container/array.o, objects/core/internal/container/common.o, objects/core/internal/container/hashtab.o, objects/core/internal/container/treap.o, objects/core/internal/convert.o, objects/core/internal/dassert.o, objects/core/internal/destruction.o, objects/core/internal/elf/dl.o, objects/core/internal/elf/io.o, objects/core/internal/entrypoint.o, objects/core/internal/execinfo.o, objects/core/internal/gc/bits.o, objects/core/internal/gc/impl/conservative/gc.o, objects/core/internal/gc/impl/manual/gc.o, objects/core/internal/gc/impl/proto/gc.o, objects/core/internal/gc/os.o, objects/core/internal/gc/pooltable.o, objects/core/internal/gc/proxy.o, objects/core/internal/hash.o, objects/core/internal/lifetime.o, objects/core/internal/moving.o, objects/core/internal/parseoptions.o, objects/core/internal/postblit.o, objects/core/internal/qsort.o, objects/core/internal/spinlock.o, objects/core/internal/string.o, objects/core/internal/switch_.o, objects/core/internal/traits.o, objects/core/internal/utf.o, objects/core/internal/util/array.o, objects/core/internal/util/math.o, objects/core/internal/vararg/aarch64.o, objects/core/internal/vararg/sysv_x64.o, objects/core/lifetime.o, objects/core/math.o, objects/core/memory.o, objects/core/runtime.o, objects/core/simd.o, objects/core/stdc/assert_.o, objects/core/stdc/complex.o, objects/core/stdc/config.o, objects/core/stdc/ctype.o, objects/core/stdc/errno.o, objects/core/stdc/fenv.o, objects/core/stdc/float_.o, objects/core/stdc/inttypes.o, objects/core/stdc/limits.o, objects/core/stdc/locale.o, objects/core/stdc/math.o, objects/core/stdc/signal.o, objects/core/stdc/stdarg.o, objects/core/stdc/stddef.o, objects/core/stdc/stdint.o, objects/core/stdc/stdio.o, objects/core/stdc/stdlib.o, objects/core/stdc/string.o, objects/core/stdc/tgmath.o, objects/core/stdc/time.o, objects/core/stdc/wchar_.o, objects/core/stdc/wctype.o, objects/core/stdcpp/allocator.o, objects/core/stdcpp/array.o, objects/core/stdcpp/exception.o, objects/core/stdcpp/memory.o, objects/core/stdcpp/new_.o, objects/core/stdcpp/string.o, objects/core/stdcpp/string_view.o, objects/core/stdcpp/type_traits.o, objects/core/stdcpp/typeinfo.o, objects/core/stdcpp/utility.o, objects/core/stdcpp/vector.o, objects/core/stdcpp/xutility.o, objects/core/sync/barrier.o, objects/core/sync/condition.o, objects/core/sync/config.o, objects/core/sync/event.o, objects/core/sync/exception.o, objects/core/sync/mutex.o, objects/core/sync/package.o, objects/core/sync/rwmutex.o, objects/core/sync/semaphore.o, objects/core/sys/elf/package.o, objects/core/thread/context.o, objects/core/thread/fiber.o, objects/core/thread/osthread.o, objects/core/thread/package.o, objects/core/thread/threadbase.o, objects/core/thread/threadgroup.o, objects/core/thread/types.o, objects/core/time.o, objects/core/vararg.o, objects/core/volatile.o, objects/etc/valgrind/valgrind.o, objects/ldc/asan.o, objects/ldc/attributes.o, objects/ldc/dcompute.o, objects/ldc/eh_msvc.o, objects/ldc/sanitizer_common.o, objects/ldc/sanitizers_optionally_linked.o, objects/object.o, objects/rt/aApply.o, objects/rt/aApplyR.o, objects/rt/aaA.o, objects/rt/adi.o, objects/rt/arraycat.o, objects/rt/cast_.o, objects/rt/config.o, objects/rt/cover.o, objects/rt/critical_.o, objects/rt/deh.o, objects/rt/deh_win64_posix.o, objects/rt/dmain2.o, objects/rt/dso.o, objects/rt/dwarfeh.o, objects/rt/ehalloc.o, objects/rt/invariant.o, objects/rt/lifetime.o, objects/rt/memory.o, objects/rt/minfo.o, objects/rt/monitor_.o, objects/rt/msvc.o, objects/rt/msvc_math.o, objects/rt/profilegc.o, objects/rt/sections.o, objects/rt/sections_android.o, objects/rt/sections_darwin_64.o, objects/rt/sections_elf_shared.o, objects/rt/sections_ldc.o, objects/rt/sections_win64.o, objects/rt/tlsgc.o, objects/rt/trace.o, objects/rt/tracegc.o, objects/rt/util/typeinfo.o, objects/rt/util/utility.o, objects/core/sys/posix/aio.o, objects/core/sys/posix/arpa/inet.o, objects/core/sys/posix/config.o, objects/core/sys/posix/dirent.o, objects/core/sys/posix/dlfcn.o, objects/core/sys/posix/fcntl.o, objects/core/sys/posix/grp.o, objects/core/sys/posix/iconv.o, objects/core/sys/posix/inttypes.o, objects/core/sys/posix/libgen.o, objects/core/sys/posix/locale.o, objects/core/sys/posix/mqueue.o, objects/core/sys/posix/net/if_.o, objects/core/sys/posix/netdb.o, objects/core/sys/posix/netinet/in_.o, objects/core/sys/posix/netinet/tcp.o, objects/core/sys/posix/poll.o, objects/core/sys/posix/pthread.o, objects/core/sys/posix/pwd.o, objects/core/sys/posix/sched.o, objects/core/sys/posix/semaphore.o, objects/core/sys/posix/setjmp.o, objects/core/sys/posix/signal.o, objects/core/sys/posix/spawn.o, objects/core/sys/posix/stdc/time.o, objects/core/sys/posix/stdio.o, objects/core/sys/posix/stdlib.o, objects/core/sys/posix/string.o, objects/core/sys/posix/strings.o, objects/core/sys/posix/sys/filio.o, objects/core/sys/posix/sys/ioccom.o, objects/core/sys/posix/sys/ioctl.o, objects/core/sys/posix/sys/ipc.o, objects/core/sys/posix/sys/mman.o, objects/core/sys/posix/sys/msg.o, objects/core/sys/posix/sys/resource.o, objects/core/sys/posix/sys/select.o, objects/core/sys/posix/sys/shm.o, objects/core/sys/posix/sys/socket.o, objects/core/sys/posix/sys/stat.o, objects/core/sys/posix/sys/statvfs.o, objects/core/sys/posix/sys/time.o, objects/core/sys/posix/sys/ttycom.o, objects/core/sys/posix/sys/types.o, objects/core/sys/posix/sys/uio.o, objects/core/sys/posix/sys/un.o, objects/core/sys/posix/sys/utsname.o, objects/core/sys/posix/sys/wait.o, objects/core/sys/posix/syslog.o, objects/core/sys/posix/termios.o, objects/core/sys/posix/time.o, objects/core/sys/posix/ucontext.o, objects/core/sys/posix/unistd.o, objects/core/sys/posix/utime.o, objects/core/sys/linux/config.o, objects/core/sys/linux/dlfcn.o, objects/core/sys/linux/elf.o, objects/core/sys/linux/epoll.o, objects/core/sys/linux/err.o, objects/core/sys/linux/errno.o, objects/core/sys/linux/execinfo.o, objects/core/sys/linux/fcntl.o, objects/core/sys/linux/fs.o, objects/core/sys/linux/ifaddrs.o, objects/core/sys/linux/input.o, objects/core/sys/linux/input_event_codes.o, objects/core/sys/linux/io_uring.o, objects/core/sys/linux/link.o, objects/core/sys/linux/netinet/in_.o, objects/core/sys/linux/netinet/tcp.o, objects/core/sys/linux/perf_event.o, objects/core/sys/linux/sched.o, objects/core/sys/linux/stdio.o, objects/core/sys/linux/string.o, objects/core/sys/linux/sys/auxv.o, objects/core/sys/linux/sys/eventfd.o, objects/core/sys/linux/sys/file.o, objects/core/sys/linux/sys/inotify.o, objects/core/sys/linux/sys/mman.o, objects/core/sys/linux/sys/prctl.o, objects/core/sys/linux/sys/procfs.o, objects/core/sys/linux/sys/signalfd.o, objects/core/sys/linux/sys/socket.o, objects/core/sys/linux/sys/sysinfo.o, objects/core/sys/linux/sys/time.o, objects/core/sys/linux/sys/xattr.o, objects/core/sys/linux/termios.o, objects/core/sys/linux/time.o, objects/core/sys/linux/timerfd.o, objects/core/sys/linux/tipc.o, objects/core/sys/linux/uinput.o, objects/core/sys/linux/unistd.o, objects/core/sys/bionic/err.o, objects/core/sys/bionic/fcntl.o, objects/core/sys/bionic/stdlib.o, objects/core/sys/bionic/string.o, objects/core/sys/bionic/unistd.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/core/stdc/errno.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/etc/valgrind/valgrind.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/arm_unwind.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/msvc.c.o
[  0%] Building ASM object CMakeFiles/druntime-ldc.dir/druntime/src/core/threadasm.S.o
[  0%] Building ASM object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/eh_asm.S.o
[  0%] Linking D static library lib/libdruntime-ldc.a
[  0%] Built target druntime-ldc
[  0%] Generating objects/etc/c/curl.o, objects/etc/c/odbc/sql.o, objects/etc/c/odbc/sqlext.o, objects/etc/c/odbc/sqltypes.o, objects/etc/c/odbc/sqlucode.o, objects/etc/c/sqlite3.o, objects/etc/c/zlib.o, objects/std/algorithm/comparison.o, objects/std/algorithm/internal.o, objects/std/algorithm/iteration.o, objects/std/algorithm/mutation.o, objects/std/algorithm/package.o, objects/std/algorithm/searching.o, objects/std/algorithm/setops.o, objects/std/algorithm/sorting.o, objects/std/array.o, objects/std/ascii.o, objects/std/base64.o, objects/std/bigint.o, objects/std/bitmanip.o, objects/std/checkedint.o, objects/std/compiler.o, objects/std/complex.o, objects/std/concurrency.o, objects/std/container/array.o, objects/std/container/binaryheap.o, objects/std/container/dlist.o, objects/std/container/package.o, objects/std/container/rbtree.o, objects/std/container/slist.o, objects/std/container/util.o, objects/std/conv.o, objects/std/csv.o, objects/std/datetime/date.o, objects/std/datetime/interval.o, objects/std/datetime/package.o, objects/std/datetime/stopwatch.o, objects/std/datetime/systime.o, objects/std/datetime/timezone.o, objects/std/demangle.o, objects/std/digest/crc.o, objects/std/digest/hmac.o, objects/std/digest/md.o, objects/std/digest/murmurhash.o, objects/std/digest/package.o, objects/std/digest/ripemd.o, objects/std/digest/sha.o, objects/std/encoding.o, objects/std/exception.o, objects/std/experimental/allocator/building_blocks/affix_allocator.o, objects/std/experimental/allocator/building_blocks/aligned_block_list.o, objects/std/experimental/allocator/building_blocks/allocator_list.o, objects/std/experimental/allocator/building_blocks/ascending_page_allocator.o, objects/std/experimental/allocator/building_blocks/bitmapped_block.o, objects/std/experimental/allocator/building_blocks/bucketizer.o, objects/std/experimental/allocator/building_blocks/fallback_allocator.o, objects/std/experimental/allocator/building_blocks/free_list.o, objects/std/experimental/allocator/building_blocks/free_tree.o, objects/std/experimental/allocator/building_blocks/kernighan_ritchie.o, objects/std/experimental/allocator/building_blocks/null_allocator.o, objects/std/experimental/allocator/building_blocks/package.o, objects/std/experimental/allocator/building_blocks/quantizer.o, objects/std/experimental/allocator/building_blocks/region.o, objects/std/experimental/allocator/building_blocks/scoped_allocator.o, objects/std/experimental/allocator/building_blocks/segregator.o, objects/std/experimental/allocator/building_blocks/stats_collector.o, objects/std/experimental/allocator/common.o, objects/std/experimental/allocator/gc_allocator.o, objects/std/experimental/allocator/mallocator.o, objects/std/experimental/allocator/mmap_allocator.o, objects/std/experimental/allocator/package.o, objects/std/experimental/allocator/showcase.o, objects/std/experimental/allocator/typed.o, objects/std/experimental/checkedint.o, objects/std/experimental/logger/core.o, objects/std/experimental/logger/filelogger.o, objects/std/experimental/logger/multilogger.o, objects/std/experimental/logger/nulllogger.o, objects/std/experimental/logger/package.o, objects/std/file.o, objects/std/format/internal/floats.o, objects/std/format/internal/read.o, objects/std/format/internal/write.o, objects/std/format/package.o, objects/std/format/read.o, objects/std/format/spec.o, objects/std/format/write.o, objects/std/functional.o, objects/std/getopt.o, objects/std/int128.o, objects/std/internal/attributes.o, objects/std/internal/cstring.o, objects/std/internal/digest/sha_SSSE3.o, objects/std/internal/math/biguintarm.o, objects/std/internal/math/biguintcore.o, objects/std/internal/math/biguintnoasm.o, objects/std/internal/math/biguintx86.o, objects/std/internal/math/errorfunction.o, objects/std/internal/math/gammafunction.o, objects/std/internal/memory.o, objects/std/internal/scopebuffer.o, objects/std/internal/test/dummyrange.o, objects/std/internal/test/range.o, objects/std/internal/test/uda.o, objects/std/internal/unicode_comp.o, objects/std/internal/unicode_decomp.o, objects/std/internal/unicode_grapheme.o, objects/std/internal/unicode_norm.o, objects/std/internal/unicode_tables.o, objects/std/internal/windows/advapi32.o, objects/std/json.o, objects/std/logger/core.o, objects/std/logger/filelogger.o, objects/std/logger/multilogger.o, objects/std/logger/nulllogger.o, objects/std/logger/package.o, objects/std/math/algebraic.o, objects/std/math/constants.o, objects/std/math/exponential.o, objects/std/math/hardware.o, objects/std/math/operations.o, objects/std/math/package.o, objects/std/math/remainder.o, objects/std/math/rounding.o, objects/std/math/traits.o, objects/std/math/trigonometry.o, objects/std/mathspecial.o, objects/std/meta.o, objects/std/mmfile.o, objects/std/net/curl.o, objects/std/net/isemail.o, objects/std/numeric.o, objects/std/outbuffer.o, objects/std/package.o, objects/std/parallelism.o, objects/std/path.o, objects/std/process.o, objects/std/random.o, objects/std/range/interfaces.o, objects/std/range/package.o, objects/std/range/primitives.o, objects/std/regex/internal/backtracking.o, objects/std/regex/internal/generator.o, objects/std/regex/internal/ir.o, objects/std/regex/internal/kickstart.o, objects/std/regex/internal/parser.o, objects/std/regex/internal/tests.o, objects/std/regex/internal/tests2.o, objects/std/regex/internal/thompson.o, objects/std/regex/package.o, objects/std/signals.o, objects/std/socket.o, objects/std/stdint.o, objects/std/stdio.o, objects/std/string.o, objects/std/sumtype.o, objects/std/system.o, objects/std/traits.o, objects/std/typecons.o, objects/std/typetuple.o, objects/std/uni/package.o, objects/std/uri.o, objects/std/utf.o, objects/std/uuid.o, objects/std/variant.o, objects/std/zip.o, objects/std/zlib.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/adler32.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/compress.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/crc32.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/deflate.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzclose.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzlib.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzread.c.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzwrite.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/infback.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inffast.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inflate.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inftrees.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/trees.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/uncompr.c.o
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/zutil.c.o
[ 25%] Linking D static library lib/libphobos2-ldc.a
[ 25%] Built target phobos2-ldc
[ 25%] Generating objects-debug/core/atomic.o, objects-debug/core/attribute.o, objects-debug/core/bitop.o, objects-debug/core/builtins.o, objects-debug/core/checkedint.o, objects-debug/core/cpuid.o, objects-debug/core/demangle.o, objects-debug/core/exception.o, objects-debug/core/factory.o, objects-debug/core/gc/config.o, objects-debug/core/gc/gcinterface.o, objects-debug/core/gc/registry.o, objects-debug/core/int128.o, objects-debug/core/internal/abort.o, objects-debug/core/internal/array/appending.o, objects-debug/core/internal/array/arrayassign.o, objects-debug/core/internal/array/capacity.o, objects-debug/core/internal/array/casting.o, objects-debug/core/internal/array/comparison.o, objects-debug/core/internal/array/concatenation.o, objects-debug/core/internal/array/construction.o, objects-debug/core/internal/array/duplication.o, objects-debug/core/internal/array/equality.o, objects-debug/core/internal/array/operations.o, objects-debug/core/internal/array/utils.o, objects-debug/core/internal/atomic.o, objects-debug/core/internal/attributes.o, objects-debug/core/internal/backtrace/dwarf.o, objects-debug/core/internal/backtrace/elf.o, objects-debug/core/internal/backtrace/handler.o, objects-debug/core/internal/backtrace/libunwind.o, objects-debug/core/internal/backtrace/macho.o, objects-debug/core/internal/backtrace/unwind.o, objects-debug/core/internal/container/array.o, objects-debug/core/internal/container/common.o, objects-debug/core/internal/container/hashtab.o, objects-debug/core/internal/container/treap.o, objects-debug/core/internal/convert.o, objects-debug/core/internal/dassert.o, objects-debug/core/internal/destruction.o, objects-debug/core/internal/elf/dl.o, objects-debug/core/internal/elf/io.o, objects-debug/core/internal/entrypoint.o, objects-debug/core/internal/execinfo.o, objects-debug/core/internal/gc/bits.o, objects-debug/core/internal/gc/impl/conservative/gc.o, objects-debug/core/internal/gc/impl/manual/gc.o, objects-debug/core/internal/gc/impl/proto/gc.o, objects-debug/core/internal/gc/os.o, objects-debug/core/internal/gc/pooltable.o, objects-debug/core/internal/gc/proxy.o, objects-debug/core/internal/hash.o, objects-debug/core/internal/lifetime.o, objects-debug/core/internal/moving.o, objects-debug/core/internal/parseoptions.o, objects-debug/core/internal/postblit.o, objects-debug/core/internal/qsort.o, objects-debug/core/internal/spinlock.o, objects-debug/core/internal/string.o, objects-debug/core/internal/switch_.o, objects-debug/core/internal/traits.o, objects-debug/core/internal/utf.o, objects-debug/core/internal/util/array.o, objects-debug/core/internal/util/math.o, objects-debug/core/internal/vararg/aarch64.o, objects-debug/core/internal/vararg/sysv_x64.o, objects-debug/core/lifetime.o, objects-debug/core/math.o, objects-debug/core/memory.o, objects-debug/core/runtime.o, objects-debug/core/simd.o, objects-debug/core/stdc/assert_.o, objects-debug/core/stdc/complex.o, objects-debug/core/stdc/config.o, objects-debug/core/stdc/ctype.o, objects-debug/core/stdc/errno.o, objects-debug/core/stdc/fenv.o, objects-debug/core/stdc/float_.o, objects-debug/core/stdc/inttypes.o, objects-debug/core/stdc/limits.o, objects-debug/core/stdc/locale.o, objects-debug/core/stdc/math.o, objects-debug/core/stdc/signal.o, objects-debug/core/stdc/stdarg.o, objects-debug/core/stdc/stddef.o, objects-debug/core/stdc/stdint.o, objects-debug/core/stdc/stdio.o, objects-debug/core/stdc/stdlib.o, objects-debug/core/stdc/string.o, objects-debug/core/stdc/tgmath.o, objects-debug/core/stdc/time.o, objects-debug/core/stdc/wchar_.o, objects-debug/core/stdc/wctype.o, objects-debug/core/stdcpp/allocator.o, objects-debug/core/stdcpp/array.o, objects-debug/core/stdcpp/exception.o, objects-debug/core/stdcpp/memory.o, objects-debug/core/stdcpp/new_.o, objects-debug/core/stdcpp/string.o, objects-debug/core/stdcpp/string_view.o, objects-debug/core/stdcpp/type_traits.o, objects-debug/core/stdcpp/typeinfo.o, objects-debug/core/stdcpp/utility.o, objects-debug/core/stdcpp/vector.o, objects-debug/core/stdcpp/xutility.o, objects-debug/core/sync/barrier.o, objects-debug/core/sync/condition.o, objects-debug/core/sync/config.o, objects-debug/core/sync/event.o, objects-debug/core/sync/exception.o, objects-debug/core/sync/mutex.o, objects-debug/core/sync/package.o, objects-debug/core/sync/rwmutex.o, objects-debug/core/sync/semaphore.o, objects-debug/core/sys/elf/package.o, objects-debug/core/thread/context.o, objects-debug/core/thread/fiber.o, objects-debug/core/thread/osthread.o, objects-debug/core/thread/package.o, objects-debug/core/thread/threadbase.o, objects-debug/core/thread/threadgroup.o, objects-debug/core/thread/types.o, objects-debug/core/time.o, objects-debug/core/vararg.o, objects-debug/core/volatile.o, objects-debug/etc/valgrind/valgrind.o, objects-debug/ldc/asan.o, objects-debug/ldc/attributes.o, objects-debug/ldc/dcompute.o, objects-debug/ldc/eh_msvc.o, objects-debug/ldc/sanitizer_common.o, objects-debug/ldc/sanitizers_optionally_linked.o, objects-debug/object.o, objects-debug/rt/aApply.o, objects-debug/rt/aApplyR.o, objects-debug/rt/aaA.o, objects-debug/rt/adi.o, objects-debug/rt/arraycat.o, objects-debug/rt/cast_.o, objects-debug/rt/config.o, objects-debug/rt/cover.o, objects-debug/rt/critical_.o, objects-debug/rt/deh.o, objects-debug/rt/deh_win64_posix.o, objects-debug/rt/dmain2.o, objects-debug/rt/dso.o, objects-debug/rt/dwarfeh.o, objects-debug/rt/ehalloc.o, objects-debug/rt/invariant.o, objects-debug/rt/lifetime.o, objects-debug/rt/memory.o, objects-debug/rt/minfo.o, objects-debug/rt/monitor_.o, objects-debug/rt/msvc.o, objects-debug/rt/msvc_math.o, objects-debug/rt/profilegc.o, objects-debug/rt/sections.o, objects-debug/rt/sections_android.o, objects-debug/rt/sections_darwin_64.o, objects-debug/rt/sections_elf_shared.o, objects-debug/rt/sections_ldc.o, objects-debug/rt/sections_win64.o, objects-debug/rt/tlsgc.o, objects-debug/rt/trace.o, objects-debug/rt/tracegc.o, objects-debug/rt/util/typeinfo.o, objects-debug/rt/util/utility.o, objects-debug/core/sys/posix/aio.o, objects-debug/core/sys/posix/arpa/inet.o, objects-debug/core/sys/posix/config.o, objects-debug/core/sys/posix/dirent.o, objects-debug/core/sys/posix/dlfcn.o, objects-debug/core/sys/posix/fcntl.o, objects-debug/core/sys/posix/grp.o, objects-debug/core/sys/posix/iconv.o, objects-debug/core/sys/posix/inttypes.o, objects-debug/core/sys/posix/libgen.o, objects-debug/core/sys/posix/locale.o, objects-debug/core/sys/posix/mqueue.o, objects-debug/core/sys/posix/net/if_.o, objects-debug/core/sys/posix/netdb.o, objects-debug/core/sys/posix/netinet/in_.o, objects-debug/core/sys/posix/netinet/tcp.o, objects-debug/core/sys/posix/poll.o, objects-debug/core/sys/posix/pthread.o, objects-debug/core/sys/posix/pwd.o, objects-debug/core/sys/posix/sched.o, objects-debug/core/sys/posix/semaphore.o, objects-debug/core/sys/posix/setjmp.o, objects-debug/core/sys/posix/signal.o, objects-debug/core/sys/posix/spawn.o, objects-debug/core/sys/posix/stdc/time.o, objects-debug/core/sys/posix/stdio.o, objects-debug/core/sys/posix/stdlib.o, objects-debug/core/sys/posix/string.o, objects-debug/core/sys/posix/strings.o, objects-debug/core/sys/posix/sys/filio.o, objects-debug/core/sys/posix/sys/ioccom.o, objects-debug/core/sys/posix/sys/ioctl.o, objects-debug/core/sys/posix/sys/ipc.o, objects-debug/core/sys/posix/sys/mman.o, objects-debug/core/sys/posix/sys/msg.o, objects-debug/core/sys/posix/sys/resource.o, objects-debug/core/sys/posix/sys/select.o, objects-debug/core/sys/posix/sys/shm.o, objects-debug/core/sys/posix/sys/socket.o, objects-debug/core/sys/posix/sys/stat.o, objects-debug/core/sys/posix/sys/statvfs.o, objects-debug/core/sys/posix/sys/time.o, objects-debug/core/sys/posix/sys/ttycom.o, objects-debug/core/sys/posix/sys/types.o, objects-debug/core/sys/posix/sys/uio.o, objects-debug/core/sys/posix/sys/un.o, objects-debug/core/sys/posix/sys/utsname.o, objects-debug/core/sys/posix/sys/wait.o, objects-debug/core/sys/posix/syslog.o, objects-debug/core/sys/posix/termios.o, objects-debug/core/sys/posix/time.o, objects-debug/core/sys/posix/ucontext.o, objects-debug/core/sys/posix/unistd.o, objects-debug/core/sys/posix/utime.o, objects-debug/core/sys/linux/config.o, objects-debug/core/sys/linux/dlfcn.o, objects-debug/core/sys/linux/elf.o, objects-debug/core/sys/linux/epoll.o, objects-debug/core/sys/linux/err.o, objects-debug/core/sys/linux/errno.o, objects-debug/core/sys/linux/execinfo.o, objects-debug/core/sys/linux/fcntl.o, objects-debug/core/sys/linux/fs.o, objects-debug/core/sys/linux/ifaddrs.o, objects-debug/core/sys/linux/input.o, objects-debug/core/sys/linux/input_event_codes.o, objects-debug/core/sys/linux/io_uring.o, objects-debug/core/sys/linux/link.o, objects-debug/core/sys/linux/netinet/in_.o, objects-debug/core/sys/linux/netinet/tcp.o, objects-debug/core/sys/linux/perf_event.o, objects-debug/core/sys/linux/sched.o, objects-debug/core/sys/linux/stdio.o, objects-debug/core/sys/linux/string.o, objects-debug/core/sys/linux/sys/auxv.o, objects-debug/core/sys/linux/sys/eventfd.o, objects-debug/core/sys/linux/sys/file.o, objects-debug/core/sys/linux/sys/inotify.o, objects-debug/core/sys/linux/sys/mman.o, objects-debug/core/sys/linux/sys/prctl.o, objects-debug/core/sys/linux/sys/procfs.o, objects-debug/core/sys/linux/sys/signalfd.o, objects-debug/core/sys/linux/sys/socket.o, objects-debug/core/sys/linux/sys/sysinfo.o, objects-debug/core/sys/linux/sys/time.o, objects-debug/core/sys/linux/sys/xattr.o, objects-debug/core/sys/linux/termios.o, objects-debug/core/sys/linux/time.o, objects-debug/core/sys/linux/timerfd.o, objects-debug/core/sys/linux/tipc.o, objects-debug/core/sys/linux/uinput.o, objects-debug/core/sys/linux/unistd.o, objects-debug/core/sys/bionic/err.o, objects-debug/core/sys/bionic/fcntl.o, objects-debug/core/sys/bionic/stdlib.o, objects-debug/core/sys/bionic/string.o, objects-debug/core/sys/bionic/unistd.o
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
make[2]: *** [CMakeFiles/druntime-ldc-debug.dir/build.make:338: objects-debug/core/atomic.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:151: CMakeFiles/druntime-ldc-debug.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
.: Error: command failed with status 2

Reference:

@kinke
Copy link
Member

kinke commented Nov 4, 2023

I guess this might be caused by LLVM warnings (here apparently from the inline asm) recently being treated as compiler warnings, and -w making them errors. So -wi might get you further.

@kassane
Copy link
Contributor Author

kassane commented Nov 4, 2023

-w making them errors. So -wi might get you further.

core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/core/stdc/errno.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/etc/valgrind/valgrind.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/arm_unwind.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/msvc.c.o
[ 50%] Building ASM object CMakeFiles/druntime-ldc-debug.dir/druntime/src/core/threadasm.S.o
[ 50%] Building ASM object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/eh_asm.S.o
[ 50%] Linking D static library lib/libdruntime-ldc-debug.a
[ 50%] Built target druntime-ldc-debug
[ 50%] Generating objects-debug/etc/c/curl.o, objects-debug/etc/c/odbc/sql.o, objects-debug/etc/c/odbc/sqlext.o, objects-debug/etc/c/odbc/sqltypes.o, objects-debug/etc/c/odbc/sqlucode.o, objects-debug/etc/c/sqlite3.o, objects-debug/etc/c/zlib.o, objects-debug/std/algorithm/comparison.o, objects-debug/std/algorithm/internal.o, objects-debug/std/algorithm/iteration.o, objects-debug/std/algorithm/mutation.o, objects-debug/std/algorithm/package.o, objects-debug/std/algorithm/searching.o, objects-debug/std/algorithm/setops.o, objects-debug/std/algorithm/sorting.o, objects-debug/std/array.o, objects-debug/std/ascii.o, objects-debug/std/base64.o, objects-debug/std/bigint.o, objects-debug/std/bitmanip.o, objects-debug/std/checkedint.o, objects-debug/std/compiler.o, objects-debug/std/complex.o, objects-debug/std/concurrency.o, objects-debug/std/container/array.o, objects-debug/std/container/binaryheap.o, objects-debug/std/container/dlist.o, objects-debug/std/container/package.o, objects-debug/std/container/rbtree.o, objects-debug/std/container/slist.o, objects-debug/std/container/util.o, objects-debug/std/conv.o, objects-debug/std/csv.o, objects-debug/std/datetime/date.o, objects-debug/std/datetime/interval.o, objects-debug/std/datetime/package.o, objects-debug/std/datetime/stopwatch.o, objects-debug/std/datetime/systime.o, objects-debug/std/datetime/timezone.o, objects-debug/std/demangle.o, objects-debug/std/digest/crc.o, objects-debug/std/digest/hmac.o, objects-debug/std/digest/md.o, objects-debug/std/digest/murmurhash.o, objects-debug/std/digest/package.o, objects-debug/std/digest/ripemd.o, objects-debug/std/digest/sha.o, objects-debug/std/encoding.o, objects-debug/std/exception.o, objects-debug/std/experimental/allocator/building_blocks/affix_allocator.o, objects-debug/std/experimental/allocator/building_blocks/aligned_block_list.o, objects-debug/std/experimental/allocator/building_blocks/allocator_list.o, objects-debug/std/experimental/allocator/building_blocks/ascending_page_allocator.o, objects-debug/std/experimental/allocator/building_blocks/bitmapped_block.o, objects-debug/std/experimental/allocator/building_blocks/bucketizer.o, objects-debug/std/experimental/allocator/building_blocks/fallback_allocator.o, objects-debug/std/experimental/allocator/building_blocks/free_list.o, objects-debug/std/experimental/allocator/building_blocks/free_tree.o, objects-debug/std/experimental/allocator/building_blocks/kernighan_ritchie.o, objects-debug/std/experimental/allocator/building_blocks/null_allocator.o, objects-debug/std/experimental/allocator/building_blocks/package.o, objects-debug/std/experimental/allocator/building_blocks/quantizer.o, objects-debug/std/experimental/allocator/building_blocks/region.o, objects-debug/std/experimental/allocator/building_blocks/scoped_allocator.o, objects-debug/std/experimental/allocator/building_blocks/segregator.o, objects-debug/std/experimental/allocator/building_blocks/stats_collector.o, objects-debug/std/experimental/allocator/common.o, objects-debug/std/experimental/allocator/gc_allocator.o, objects-debug/std/experimental/allocator/mallocator.o, objects-debug/std/experimental/allocator/mmap_allocator.o, objects-debug/std/experimental/allocator/package.o, objects-debug/std/experimental/allocator/showcase.o, objects-debug/std/experimental/allocator/typed.o, objects-debug/std/experimental/checkedint.o, objects-debug/std/experimental/logger/core.o, objects-debug/std/experimental/logger/filelogger.o, objects-debug/std/experimental/logger/multilogger.o, objects-debug/std/experimental/logger/nulllogger.o, objects-debug/std/experimental/logger/package.o, objects-debug/std/file.o, objects-debug/std/format/internal/floats.o, objects-debug/std/format/internal/read.o, objects-debug/std/format/internal/write.o, objects-debug/std/format/package.o, objects-debug/std/format/read.o, objects-debug/std/format/spec.o, objects-debug/std/format/write.o, objects-debug/std/functional.o, objects-debug/std/getopt.o, objects-debug/std/int128.o, objects-debug/std/internal/attributes.o, objects-debug/std/internal/cstring.o, objects-debug/std/internal/digest/sha_SSSE3.o, objects-debug/std/internal/math/biguintarm.o, objects-debug/std/internal/math/biguintcore.o, objects-debug/std/internal/math/biguintnoasm.o, objects-debug/std/internal/math/biguintx86.o, objects-debug/std/internal/math/errorfunction.o, objects-debug/std/internal/math/gammafunction.o, objects-debug/std/internal/memory.o, objects-debug/std/internal/scopebuffer.o, objects-debug/std/internal/test/dummyrange.o, objects-debug/std/internal/test/range.o, objects-debug/std/internal/test/uda.o, objects-debug/std/internal/unicode_comp.o, objects-debug/std/internal/unicode_decomp.o, objects-debug/std/internal/unicode_grapheme.o, objects-debug/std/internal/unicode_norm.o, objects-debug/std/internal/unicode_tables.o, objects-debug/std/internal/windows/advapi32.o, objects-debug/std/json.o, objects-debug/std/logger/core.o, objects-debug/std/logger/filelogger.o, objects-debug/std/logger/multilogger.o, objects-debug/std/logger/nulllogger.o, objects-debug/std/logger/package.o, objects-debug/std/math/algebraic.o, objects-debug/std/math/constants.o, objects-debug/std/math/exponential.o, objects-debug/std/math/hardware.o, objects-debug/std/math/operations.o, objects-debug/std/math/package.o, objects-debug/std/math/remainder.o, objects-debug/std/math/rounding.o, objects-debug/std/math/traits.o, objects-debug/std/math/trigonometry.o, objects-debug/std/mathspecial.o, objects-debug/std/meta.o, objects-debug/std/mmfile.o, objects-debug/std/net/curl.o, objects-debug/std/net/isemail.o, objects-debug/std/numeric.o, objects-debug/std/outbuffer.o, objects-debug/std/package.o, objects-debug/std/parallelism.o, objects-debug/std/path.o, objects-debug/std/process.o, objects-debug/std/random.o, objects-debug/std/range/interfaces.o, objects-debug/std/range/package.o, objects-debug/std/range/primitives.o, objects-debug/std/regex/internal/backtracking.o, objects-debug/std/regex/internal/generator.o, objects-debug/std/regex/internal/ir.o, objects-debug/std/regex/internal/kickstart.o, objects-debug/std/regex/internal/parser.o, objects-debug/std/regex/internal/tests.o, objects-debug/std/regex/internal/tests2.o, objects-debug/std/regex/internal/thompson.o, objects-debug/std/regex/package.o, objects-debug/std/signals.o, objects-debug/std/socket.o, objects-debug/std/stdint.o, objects-debug/std/stdio.o, objects-debug/std/string.o, objects-debug/std/sumtype.o, objects-debug/std/system.o, objects-debug/std/traits.o, objects-debug/std/typecons.o, objects-debug/std/typetuple.o, objects-debug/std/uni/package.o, objects-debug/std/uri.o, objects-debug/std/utf.o, objects-debug/std/uuid.o, objects-debug/std/variant.o, objects-debug/std/zip.o, objects-debug/std/zlib.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/adler32.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/compress.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/crc32.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/deflate.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzclose.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzlib.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzread.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzwrite.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/infback.c.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inffast.c.o
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inflate.c.o
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inftrees.c.o
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/trees.c.o
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/uncompr.c.o
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/zutil.c.o
[100%] Linking D static library lib/libphobos2-ldc-debug.a
[100%] Built target phobos2-ldc-debug
.: Runtime libraries built successfully into: /home/kassane/ldc2-lib/build

Linking Hello_world.d

ls mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib 
Scrt1.o      ld-musl-mipsel-sf.so.1  libatomic.so.1      libcc1.so.0      libm.a              libstdc++.la                libstdc++fs.la
bfd-plugins  ldscripts               libatomic.so.1.2.0  libcc1.so.0.0.0  libpthread.a        libstdc++.so                libsupc++.a
crt1.o       lib                     libc.a              libcrypt.a       libresolv.a         libstdc++.so.6              libsupc++.la
crti.o       libatomic.a             libc.so             libdl.a          librt.a             libstdc++.so.6.0.29         libutil.a
crtn.o       libatomic.la            libcc1.la           libgcc_s.so      libssp_nonshared.a  libstdc++.so.6.0.29-gdb.py  libxnet.a
gcc          libatomic.so            libcc1.so           libgcc_s.so.1    libstdc++.a         libstdc++fs.a               rcrt1.o

LD_LIBRARY_PATH="$PWD/build/lib:$PWD/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib" ldc2 -Oz hello/source/app.d -mtriple=mipsel-linux-musl --gcc=mipsel-openwrt-linux-gcc -of=hello_mipsel -L-L$PWD/build/lib -L-L$PWD/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib

/home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/../lib/gcc/mipsel-openwrt-linux-musl/11.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld: cannot find -lunwind
collect2: error: ld returned 1 exit status
Error: /home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc failed with status: 1

Note

- ldc-build-runtime --buildDir="build"  \
-    --dFlags="-w;-mtriple=mipsel-linux;-mcpu=mipsel;-mcpu=mips32;--float-abi=soft;-L=-lm;-defaultlib=phobos2-ldc,druntime-ldc,:libatomic.a" \
+ ldc-build-runtime --buildDir="build"  \
+    --dFlags="-w;-mtriple=mipsel-linux-musl;-mcpu=mipsel;-mcpu=mips32;--float-abi=soft;-L=-lm;-defaultlib=phobos2-ldc,druntime-ldc,:libatomic.a" \

-mtriple=mipsel-linux-musl

-- The ASM compiler identification is GNU
-- Found assembler: /home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-gcc
-- -- LDC runtime configuration:
-- --  - Building 32/64-bit libraries (MULTILIB): OFF
-- --  - Building shared libraries (BUILD_SHARED_LIBS): OFF
-- --  - Building LTO libraries (BUILD_LTO_LIBS): OFF
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/kassane/ldc2-lib/build
.: Invoking: make all
[  0%] Generating objects/core/atomic.o, objects/core/attribute.o, objects/core/bitop.o, objects/core/builtins.o, objects/core/checkedint.o, objects/core/cpuid.o, objects/core/demangle.o, objects/core/exception.o, objects/core/factory.o, objects/core/gc/config.o, objects/core/gc/gcinterface.o, objects/core/gc/registry.o, objects/core/int128.o, objects/core/internal/abort.o, objects/core/internal/array/appending.o, objects/core/internal/array/arrayassign.o, objects/core/internal/array/capacity.o, objects/core/internal/array/casting.o, objects/core/internal/array/comparison.o, objects/core/internal/array/concatenation.o, objects/core/internal/array/construction.o, objects/core/internal/array/duplication.o, objects/core/internal/array/equality.o, objects/core/internal/array/operations.o, objects/core/internal/array/utils.o, objects/core/internal/atomic.o, objects/core/internal/attributes.o, objects/core/internal/backtrace/dwarf.o, objects/core/internal/backtrace/elf.o, objects/core/internal/backtrace/handler.o, objects/core/internal/backtrace/libunwind.o, objects/core/internal/backtrace/macho.o, objects/core/internal/backtrace/unwind.o, objects/core/internal/container/array.o, objects/core/internal/container/common.o, objects/core/internal/container/hashtab.o, objects/core/internal/container/treap.o, objects/core/internal/convert.o, objects/core/internal/dassert.o, objects/core/internal/destruction.o, objects/core/internal/elf/dl.o, objects/core/internal/elf/io.o, objects/core/internal/entrypoint.o, objects/core/internal/execinfo.o, objects/core/internal/gc/bits.o, objects/core/internal/gc/impl/conservative/gc.o, objects/core/internal/gc/impl/manual/gc.o, objects/core/internal/gc/impl/proto/gc.o, objects/core/internal/gc/os.o, objects/core/internal/gc/pooltable.o, objects/core/internal/gc/proxy.o, objects/core/internal/hash.o, objects/core/internal/lifetime.o, objects/core/internal/moving.o, objects/core/internal/parseoptions.o, objects/core/internal/postblit.o, objects/core/internal/qsort.o, objects/core/internal/spinlock.o, objects/core/internal/string.o, objects/core/internal/switch_.o, objects/core/internal/traits.o, objects/core/internal/utf.o, objects/core/internal/util/array.o, objects/core/internal/util/math.o, objects/core/internal/vararg/aarch64.o, objects/core/internal/vararg/sysv_x64.o, objects/core/lifetime.o, objects/core/math.o, objects/core/memory.o, objects/core/runtime.o, objects/core/simd.o, objects/core/stdc/assert_.o, objects/core/stdc/complex.o, objects/core/stdc/config.o, objects/core/stdc/ctype.o, objects/core/stdc/errno.o, objects/core/stdc/fenv.o, objects/core/stdc/float_.o, objects/core/stdc/inttypes.o, objects/core/stdc/limits.o, objects/core/stdc/locale.o, objects/core/stdc/math.o, objects/core/stdc/signal.o, objects/core/stdc/stdarg.o, objects/core/stdc/stddef.o, objects/core/stdc/stdint.o, objects/core/stdc/stdio.o, objects/core/stdc/stdlib.o, objects/core/stdc/string.o, objects/core/stdc/tgmath.o, objects/core/stdc/time.o, objects/core/stdc/wchar_.o, objects/core/stdc/wctype.o, objects/core/stdcpp/allocator.o, objects/core/stdcpp/array.o, objects/core/stdcpp/exception.o, objects/core/stdcpp/memory.o, objects/core/stdcpp/new_.o, objects/core/stdcpp/string.o, objects/core/stdcpp/string_view.o, objects/core/stdcpp/type_traits.o, objects/core/stdcpp/typeinfo.o, objects/core/stdcpp/utility.o, objects/core/stdcpp/vector.o, objects/core/stdcpp/xutility.o, objects/core/sync/barrier.o, objects/core/sync/condition.o, objects/core/sync/config.o, objects/core/sync/event.o, objects/core/sync/exception.o, objects/core/sync/mutex.o, objects/core/sync/package.o, objects/core/sync/rwmutex.o, objects/core/sync/semaphore.o, objects/core/sys/elf/package.o, objects/core/thread/context.o, objects/core/thread/fiber.o, objects/core/thread/osthread.o, objects/core/thread/package.o, objects/core/thread/threadbase.o, objects/core/thread/threadgroup.o, objects/core/thread/types.o, objects/core/time.o, objects/core/vararg.o, objects/core/volatile.o, objects/etc/valgrind/valgrind.o, objects/ldc/asan.o, objects/ldc/attributes.o, objects/ldc/dcompute.o, objects/ldc/eh_msvc.o, objects/ldc/sanitizer_common.o, objects/ldc/sanitizers_optionally_linked.o, objects/object.o, objects/rt/aApply.o, objects/rt/aApplyR.o, objects/rt/aaA.o, objects/rt/adi.o, objects/rt/arraycat.o, objects/rt/cast_.o, objects/rt/config.o, objects/rt/cover.o, objects/rt/critical_.o, objects/rt/deh.o, objects/rt/deh_win64_posix.o, objects/rt/dmain2.o, objects/rt/dso.o, objects/rt/dwarfeh.o, objects/rt/ehalloc.o, objects/rt/invariant.o, objects/rt/lifetime.o, objects/rt/memory.o, objects/rt/minfo.o, objects/rt/monitor_.o, objects/rt/msvc.o, objects/rt/msvc_math.o, objects/rt/profilegc.o, objects/rt/sections.o, objects/rt/sections_android.o, objects/rt/sections_darwin_64.o, objects/rt/sections_elf_shared.o, objects/rt/sections_ldc.o, objects/rt/sections_win64.o, objects/rt/tlsgc.o, objects/rt/trace.o, objects/rt/tracegc.o, objects/rt/util/typeinfo.o, objects/rt/util/utility.o, objects/core/sys/posix/aio.o, objects/core/sys/posix/arpa/inet.o, objects/core/sys/posix/config.o, objects/core/sys/posix/dirent.o, objects/core/sys/posix/dlfcn.o, objects/core/sys/posix/fcntl.o, objects/core/sys/posix/grp.o, objects/core/sys/posix/iconv.o, objects/core/sys/posix/inttypes.o, objects/core/sys/posix/libgen.o, objects/core/sys/posix/locale.o, objects/core/sys/posix/mqueue.o, objects/core/sys/posix/net/if_.o, objects/core/sys/posix/netdb.o, objects/core/sys/posix/netinet/in_.o, objects/core/sys/posix/netinet/tcp.o, objects/core/sys/posix/poll.o, objects/core/sys/posix/pthread.o, objects/core/sys/posix/pwd.o, objects/core/sys/posix/sched.o, objects/core/sys/posix/semaphore.o, objects/core/sys/posix/setjmp.o, objects/core/sys/posix/signal.o, objects/core/sys/posix/spawn.o, objects/core/sys/posix/stdc/time.o, objects/core/sys/posix/stdio.o, objects/core/sys/posix/stdlib.o, objects/core/sys/posix/string.o, objects/core/sys/posix/strings.o, objects/core/sys/posix/sys/filio.o, objects/core/sys/posix/sys/ioccom.o, objects/core/sys/posix/sys/ioctl.o, objects/core/sys/posix/sys/ipc.o, objects/core/sys/posix/sys/mman.o, objects/core/sys/posix/sys/msg.o, objects/core/sys/posix/sys/resource.o, objects/core/sys/posix/sys/select.o, objects/core/sys/posix/sys/shm.o, objects/core/sys/posix/sys/socket.o, objects/core/sys/posix/sys/stat.o, objects/core/sys/posix/sys/statvfs.o, objects/core/sys/posix/sys/time.o, objects/core/sys/posix/sys/ttycom.o, objects/core/sys/posix/sys/types.o, objects/core/sys/posix/sys/uio.o, objects/core/sys/posix/sys/un.o, objects/core/sys/posix/sys/utsname.o, objects/core/sys/posix/sys/wait.o, objects/core/sys/posix/syslog.o, objects/core/sys/posix/termios.o, objects/core/sys/posix/time.o, objects/core/sys/posix/ucontext.o, objects/core/sys/posix/unistd.o, objects/core/sys/posix/utime.o, objects/core/sys/linux/config.o, objects/core/sys/linux/dlfcn.o, objects/core/sys/linux/elf.o, objects/core/sys/linux/epoll.o, objects/core/sys/linux/err.o, objects/core/sys/linux/errno.o, objects/core/sys/linux/execinfo.o, objects/core/sys/linux/fcntl.o, objects/core/sys/linux/fs.o, objects/core/sys/linux/ifaddrs.o, objects/core/sys/linux/input.o, objects/core/sys/linux/input_event_codes.o, objects/core/sys/linux/io_uring.o, objects/core/sys/linux/link.o, objects/core/sys/linux/netinet/in_.o, objects/core/sys/linux/netinet/tcp.o, objects/core/sys/linux/perf_event.o, objects/core/sys/linux/sched.o, objects/core/sys/linux/stdio.o, objects/core/sys/linux/string.o, objects/core/sys/linux/sys/auxv.o, objects/core/sys/linux/sys/eventfd.o, objects/core/sys/linux/sys/file.o, objects/core/sys/linux/sys/inotify.o, objects/core/sys/linux/sys/mman.o, objects/core/sys/linux/sys/prctl.o, objects/core/sys/linux/sys/procfs.o, objects/core/sys/linux/sys/signalfd.o, objects/core/sys/linux/sys/socket.o, objects/core/sys/linux/sys/sysinfo.o, objects/core/sys/linux/sys/time.o, objects/core/sys/linux/sys/xattr.o, objects/core/sys/linux/termios.o, objects/core/sys/linux/time.o, objects/core/sys/linux/timerfd.o, objects/core/sys/linux/tipc.o, objects/core/sys/linux/uinput.o, objects/core/sys/linux/unistd.o, objects/core/sys/bionic/err.o, objects/core/sys/bionic/fcntl.o, objects/core/sys/bionic/stdlib.o, objects/core/sys/bionic/string.o, objects/core/sys/bionic/unistd.o
core/internal/backtrace/libunwind.d(50): Error: undefined identifier `_LIBUNWIND_CONTEXT_SIZE`
core/internal/backtrace/libunwind.d(56): Error: undefined identifier `_LIBUNWIND_CURSOR_SIZE`
core/sys/posix/sys/stat.d(316): Error: static assert:  `184u == 160u` is false
make[2]: *** [CMakeFiles/druntime-ldc.dir/build.make:338: objects/core/atomic.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/druntime-ldc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
.: Error: command failed with status 2

Missing MIPS on

else version (RISCV64) // 32 is not supported
{
enum _LIBUNWIND_CONTEXT_SIZE = 64;
enum _LIBUNWIND_CURSOR_SIZE = 76;
}
else
static assert(0, "Platform not supported");

LLVM 16.x
https://github.com/llvm/llvm-project/blob/7cbf1a2591520c2491aa35339f227775f4d3adf6/libunwind/include/__libunwind_config.h#L101-L132

@kassane
Copy link
Contributor Author

kassane commented Nov 4, 2023

New build test

  • LDC 1.35.0 (LLVM 16.0.6)
  • zig cc v0.11.0 (clang) + libunwind (LLVM 16.0.6)
build - ldc-build-runtime

zigcxx

#!/usr/bin/env bash
zig cc -lunwind -fno-sanitize=all -target mipsel-linux-musl -mcpu=mips32r2 $@
$> export CC=$PWD/zigcxx; \
    ldc-build-runtime --buildDir="build"  \
    --dFlags="-wi;-mtriple=mipsel-linux;-mcpu=mips32r2" \
    --targetSystem="Linux;UNIX" CMAKE_C_COMPILER=$CC BUILD_SHARED_LIBS=OFF CMAKE_BUILD_TYPE=Release CMAKE_CROSSCOMPILING=TRUE CMAKE_SYSTEM_NAME=Linux

.: Creating build directory: build
.: Downloading LDC source archive: https://github.com/ldc-developers/ldc/releases/download/v1.35.0/ldc-1.35.0-src.zip
.: Invoking: cmake -DLDC_EXE_FULL=/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/ldc2 -DDMDFE_MINOR_VERSION=105 -DDMDFE_PATCH_VERSION=2 '-DTARGET_SYSTEM=Linux;UNIX' '-DD_EXTRA_FLAGS=-wi;-mtriple=mipsel-linux;-mcpu=mips32r2' -DCMAKE_BUILD_TYPE=Release -DCMAKE_CROSSCOMPILING=TRUE -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=/home/kassane/ldc2-lib/zigcxx -DCMAKE_SYSTEM_NAME=Linux /home/kassane/ldc2-lib/build/ldc-src/runtime
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/kassane/ldc2-lib/zigcxx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /home/kassane/ldc2-lib/zigcxx
-- -- LDC runtime configuration:
-- --  - Building 32/64-bit libraries (MULTILIB): OFF
-- --  - Building shared libraries (BUILD_SHARED_LIBS): OFF
-- --  - Building LTO libraries (BUILD_LTO_LIBS): OFF
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Configuring done (7.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/kassane/ldc2-lib/build
.: Invoking: make all
[  0%] Generating objects/core/atomic.o, objects/core/attribute.o, objects/core/bitop.o, objects/core/builtins.o, objects/core/checkedint.o, objects/core/cpuid.o, objects/core/demangle.o, objects/core/exception.o, objects/core/factory.o, objects/core/gc/config.o, objects/core/gc/gcinterface.o, objects/core/gc/registry.o, objects/core/int128.o, objects/core/internal/abort.o, objects/core/internal/array/appending.o, objects/core/internal/array/arrayassign.o, objects/core/internal/array/capacity.o, objects/core/internal/array/casting.o, objects/core/internal/array/comparison.o, objects/core/internal/array/concatenation.o, objects/core/internal/array/construction.o, objects/core/internal/array/duplication.o, objects/core/internal/array/equality.o, objects/core/internal/array/operations.o, objects/core/internal/array/utils.o, objects/core/internal/atomic.o, objects/core/internal/attributes.o, objects/core/internal/backtrace/dwarf.o, objects/core/internal/backtrace/elf.o, objects/core/internal/backtrace/handler.o, objects/core/internal/backtrace/libunwind.o, objects/core/internal/backtrace/macho.o, objects/core/internal/backtrace/unwind.o, objects/core/internal/container/array.o, objects/core/internal/container/common.o, objects/core/internal/container/hashtab.o, objects/core/internal/container/treap.o, objects/core/internal/convert.o, objects/core/internal/dassert.o, objects/core/internal/destruction.o, objects/core/internal/elf/dl.o, objects/core/internal/elf/io.o, objects/core/internal/entrypoint.o, objects/core/internal/execinfo.o, objects/core/internal/gc/bits.o, objects/core/internal/gc/impl/conservative/gc.o, objects/core/internal/gc/impl/manual/gc.o, objects/core/internal/gc/impl/proto/gc.o, objects/core/internal/gc/os.o, objects/core/internal/gc/pooltable.o, objects/core/internal/gc/proxy.o, objects/core/internal/hash.o, objects/core/internal/lifetime.o, objects/core/internal/moving.o, objects/core/internal/parseoptions.o, objects/core/internal/postblit.o, objects/core/internal/qsort.o, objects/core/internal/spinlock.o, objects/core/internal/string.o, objects/core/internal/switch_.o, objects/core/internal/traits.o, objects/core/internal/utf.o, objects/core/internal/util/array.o, objects/core/internal/util/math.o, objects/core/internal/vararg/aarch64.o, objects/core/internal/vararg/sysv_x64.o, objects/core/lifetime.o, objects/core/math.o, objects/core/memory.o, objects/core/runtime.o, objects/core/simd.o, objects/core/stdc/assert_.o, objects/core/stdc/complex.o, objects/core/stdc/config.o, objects/core/stdc/ctype.o, objects/core/stdc/errno.o, objects/core/stdc/fenv.o, objects/core/stdc/float_.o, objects/core/stdc/inttypes.o, objects/core/stdc/limits.o, objects/core/stdc/locale.o, objects/core/stdc/math.o, objects/core/stdc/signal.o, objects/core/stdc/stdarg.o, objects/core/stdc/stddef.o, objects/core/stdc/stdint.o, objects/core/stdc/stdio.o, objects/core/stdc/stdlib.o, objects/core/stdc/string.o, objects/core/stdc/tgmath.o, objects/core/stdc/time.o, objects/core/stdc/wchar_.o, objects/core/stdc/wctype.o, objects/core/stdcpp/allocator.o, objects/core/stdcpp/array.o, objects/core/stdcpp/exception.o, objects/core/stdcpp/memory.o, objects/core/stdcpp/new_.o, objects/core/stdcpp/string.o, objects/core/stdcpp/string_view.o, objects/core/stdcpp/type_traits.o, objects/core/stdcpp/typeinfo.o, objects/core/stdcpp/utility.o, objects/core/stdcpp/vector.o, objects/core/stdcpp/xutility.o, objects/core/sync/barrier.o, objects/core/sync/condition.o, objects/core/sync/config.o, objects/core/sync/event.o, objects/core/sync/exception.o, objects/core/sync/mutex.o, objects/core/sync/package.o, objects/core/sync/rwmutex.o, objects/core/sync/semaphore.o, objects/core/sys/elf/package.o, objects/core/thread/context.o, objects/core/thread/fiber.o, objects/core/thread/osthread.o, objects/core/thread/package.o, objects/core/thread/threadbase.o, objects/core/thread/threadgroup.o, objects/core/thread/types.o, objects/core/time.o, objects/core/vararg.o, objects/core/volatile.o, objects/etc/valgrind/valgrind.o, objects/ldc/asan.o, objects/ldc/attributes.o, objects/ldc/dcompute.o, objects/ldc/eh_msvc.o, objects/ldc/sanitizer_common.o, objects/ldc/sanitizers_optionally_linked.o, objects/object.o, objects/rt/aApply.o, objects/rt/aApplyR.o, objects/rt/aaA.o, objects/rt/adi.o, objects/rt/arraycat.o, objects/rt/cast_.o, objects/rt/config.o, objects/rt/cover.o, objects/rt/critical_.o, objects/rt/deh.o, objects/rt/deh_win64_posix.o, objects/rt/dmain2.o, objects/rt/dso.o, objects/rt/dwarfeh.o, objects/rt/ehalloc.o, objects/rt/invariant.o, objects/rt/lifetime.o, objects/rt/memory.o, objects/rt/minfo.o, objects/rt/monitor_.o, objects/rt/msvc.o, objects/rt/msvc_math.o, objects/rt/profilegc.o, objects/rt/sections.o, objects/rt/sections_android.o, objects/rt/sections_darwin_64.o, objects/rt/sections_elf_shared.o, objects/rt/sections_ldc.o, objects/rt/sections_win64.o, objects/rt/tlsgc.o, objects/rt/trace.o, objects/rt/tracegc.o, objects/rt/util/typeinfo.o, objects/rt/util/utility.o, objects/core/sys/posix/aio.o, objects/core/sys/posix/arpa/inet.o, objects/core/sys/posix/config.o, objects/core/sys/posix/dirent.o, objects/core/sys/posix/dlfcn.o, objects/core/sys/posix/fcntl.o, objects/core/sys/posix/grp.o, objects/core/sys/posix/iconv.o, objects/core/sys/posix/inttypes.o, objects/core/sys/posix/libgen.o, objects/core/sys/posix/locale.o, objects/core/sys/posix/mqueue.o, objects/core/sys/posix/net/if_.o, objects/core/sys/posix/netdb.o, objects/core/sys/posix/netinet/in_.o, objects/core/sys/posix/netinet/tcp.o, objects/core/sys/posix/poll.o, objects/core/sys/posix/pthread.o, objects/core/sys/posix/pwd.o, objects/core/sys/posix/sched.o, objects/core/sys/posix/semaphore.o, objects/core/sys/posix/setjmp.o, objects/core/sys/posix/signal.o, objects/core/sys/posix/spawn.o, objects/core/sys/posix/stdc/time.o, objects/core/sys/posix/stdio.o, objects/core/sys/posix/stdlib.o, objects/core/sys/posix/string.o, objects/core/sys/posix/strings.o, objects/core/sys/posix/sys/filio.o, objects/core/sys/posix/sys/ioccom.o, objects/core/sys/posix/sys/ioctl.o, objects/core/sys/posix/sys/ipc.o, objects/core/sys/posix/sys/mman.o, objects/core/sys/posix/sys/msg.o, objects/core/sys/posix/sys/resource.o, objects/core/sys/posix/sys/select.o, objects/core/sys/posix/sys/shm.o, objects/core/sys/posix/sys/socket.o, objects/core/sys/posix/sys/stat.o, objects/core/sys/posix/sys/statvfs.o, objects/core/sys/posix/sys/time.o, objects/core/sys/posix/sys/ttycom.o, objects/core/sys/posix/sys/types.o, objects/core/sys/posix/sys/uio.o, objects/core/sys/posix/sys/un.o, objects/core/sys/posix/sys/utsname.o, objects/core/sys/posix/sys/wait.o, objects/core/sys/posix/syslog.o, objects/core/sys/posix/termios.o, objects/core/sys/posix/time.o, objects/core/sys/posix/ucontext.o, objects/core/sys/posix/unistd.o, objects/core/sys/posix/utime.o, objects/core/sys/linux/config.o, objects/core/sys/linux/dlfcn.o, objects/core/sys/linux/elf.o, objects/core/sys/linux/epoll.o, objects/core/sys/linux/err.o, objects/core/sys/linux/errno.o, objects/core/sys/linux/execinfo.o, objects/core/sys/linux/fcntl.o, objects/core/sys/linux/fs.o, objects/core/sys/linux/ifaddrs.o, objects/core/sys/linux/input.o, objects/core/sys/linux/input_event_codes.o, objects/core/sys/linux/io_uring.o, objects/core/sys/linux/link.o, objects/core/sys/linux/netinet/in_.o, objects/core/sys/linux/netinet/tcp.o, objects/core/sys/linux/perf_event.o, objects/core/sys/linux/sched.o, objects/core/sys/linux/stdio.o, objects/core/sys/linux/string.o, objects/core/sys/linux/sys/auxv.o, objects/core/sys/linux/sys/eventfd.o, objects/core/sys/linux/sys/file.o, objects/core/sys/linux/sys/inotify.o, objects/core/sys/linux/sys/mman.o, objects/core/sys/linux/sys/prctl.o, objects/core/sys/linux/sys/procfs.o, objects/core/sys/linux/sys/signalfd.o, objects/core/sys/linux/sys/socket.o, objects/core/sys/linux/sys/sysinfo.o, objects/core/sys/linux/sys/time.o, objects/core/sys/linux/sys/xattr.o, objects/core/sys/linux/termios.o, objects/core/sys/linux/time.o, objects/core/sys/linux/timerfd.o, objects/core/sys/linux/tipc.o, objects/core/sys/linux/uinput.o, objects/core/sys/linux/unistd.o, objects/core/sys/bionic/err.o, objects/core/sys/bionic/fcntl.o, objects/core/sys/bionic/stdlib.o, objects/core/sys/bionic/string.o, objects/core/sys/bionic/unistd.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/core/stdc/errno.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/etc/valgrind/valgrind.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/arm_unwind.c.o
[  0%] Building C object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/msvc.c.o
[  0%] Building ASM object CMakeFiles/druntime-ldc.dir/druntime/src/core/threadasm.S.o
[  0%] Building ASM object CMakeFiles/druntime-ldc.dir/druntime/src/ldc/eh_asm.S.o
[  0%] Linking D static library lib/libdruntime-ldc.a
[  0%] Built target druntime-ldc
[  0%] Generating objects/etc/c/curl.o, objects/etc/c/odbc/sql.o, objects/etc/c/odbc/sqlext.o, objects/etc/c/odbc/sqltypes.o, objects/etc/c/odbc/sqlucode.o, objects/etc/c/sqlite3.o, objects/etc/c/zlib.o, objects/std/algorithm/comparison.o, objects/std/algorithm/internal.o, objects/std/algorithm/iteration.o, objects/std/algorithm/mutation.o, objects/std/algorithm/package.o, objects/std/algorithm/searching.o, objects/std/algorithm/setops.o, objects/std/algorithm/sorting.o, objects/std/array.o, objects/std/ascii.o, objects/std/base64.o, objects/std/bigint.o, objects/std/bitmanip.o, objects/std/checkedint.o, objects/std/compiler.o, objects/std/complex.o, objects/std/concurrency.o, objects/std/container/array.o, objects/std/container/binaryheap.o, objects/std/container/dlist.o, objects/std/container/package.o, objects/std/container/rbtree.o, objects/std/container/slist.o, objects/std/container/util.o, objects/std/conv.o, objects/std/csv.o, objects/std/datetime/date.o, objects/std/datetime/interval.o, objects/std/datetime/package.o, objects/std/datetime/stopwatch.o, objects/std/datetime/systime.o, objects/std/datetime/timezone.o, objects/std/demangle.o, objects/std/digest/crc.o, objects/std/digest/hmac.o, objects/std/digest/md.o, objects/std/digest/murmurhash.o, objects/std/digest/package.o, objects/std/digest/ripemd.o, objects/std/digest/sha.o, objects/std/encoding.o, objects/std/exception.o, objects/std/experimental/allocator/building_blocks/affix_allocator.o, objects/std/experimental/allocator/building_blocks/aligned_block_list.o, objects/std/experimental/allocator/building_blocks/allocator_list.o, objects/std/experimental/allocator/building_blocks/ascending_page_allocator.o, objects/std/experimental/allocator/building_blocks/bitmapped_block.o, objects/std/experimental/allocator/building_blocks/bucketizer.o, objects/std/experimental/allocator/building_blocks/fallback_allocator.o, objects/std/experimental/allocator/building_blocks/free_list.o, objects/std/experimental/allocator/building_blocks/free_tree.o, objects/std/experimental/allocator/building_blocks/kernighan_ritchie.o, objects/std/experimental/allocator/building_blocks/null_allocator.o, objects/std/experimental/allocator/building_blocks/package.o, objects/std/experimental/allocator/building_blocks/quantizer.o, objects/std/experimental/allocator/building_blocks/region.o, objects/std/experimental/allocator/building_blocks/scoped_allocator.o, objects/std/experimental/allocator/building_blocks/segregator.o, objects/std/experimental/allocator/building_blocks/stats_collector.o, objects/std/experimental/allocator/common.o, objects/std/experimental/allocator/gc_allocator.o, objects/std/experimental/allocator/mallocator.o, objects/std/experimental/allocator/mmap_allocator.o, objects/std/experimental/allocator/package.o, objects/std/experimental/allocator/showcase.o, objects/std/experimental/allocator/typed.o, objects/std/experimental/checkedint.o, objects/std/experimental/logger/core.o, objects/std/experimental/logger/filelogger.o, objects/std/experimental/logger/multilogger.o, objects/std/experimental/logger/nulllogger.o, objects/std/experimental/logger/package.o, objects/std/file.o, objects/std/format/internal/floats.o, objects/std/format/internal/read.o, objects/std/format/internal/write.o, objects/std/format/package.o, objects/std/format/read.o, objects/std/format/spec.o, objects/std/format/write.o, objects/std/functional.o, objects/std/getopt.o, objects/std/int128.o, objects/std/internal/attributes.o, objects/std/internal/cstring.o, objects/std/internal/digest/sha_SSSE3.o, objects/std/internal/math/biguintarm.o, objects/std/internal/math/biguintcore.o, objects/std/internal/math/biguintnoasm.o, objects/std/internal/math/biguintx86.o, objects/std/internal/math/errorfunction.o, objects/std/internal/math/gammafunction.o, objects/std/internal/memory.o, objects/std/internal/scopebuffer.o, objects/std/internal/test/dummyrange.o, objects/std/internal/test/range.o, objects/std/internal/test/uda.o, objects/std/internal/unicode_comp.o, objects/std/internal/unicode_decomp.o, objects/std/internal/unicode_grapheme.o, objects/std/internal/unicode_norm.o, objects/std/internal/unicode_tables.o, objects/std/internal/windows/advapi32.o, objects/std/json.o, objects/std/logger/core.o, objects/std/logger/filelogger.o, objects/std/logger/multilogger.o, objects/std/logger/nulllogger.o, objects/std/logger/package.o, objects/std/math/algebraic.o, objects/std/math/constants.o, objects/std/math/exponential.o, objects/std/math/hardware.o, objects/std/math/operations.o, objects/std/math/package.o, objects/std/math/remainder.o, objects/std/math/rounding.o, objects/std/math/traits.o, objects/std/math/trigonometry.o, objects/std/mathspecial.o, objects/std/meta.o, objects/std/mmfile.o, objects/std/net/curl.o, objects/std/net/isemail.o, objects/std/numeric.o, objects/std/outbuffer.o, objects/std/package.o, objects/std/parallelism.o, objects/std/path.o, objects/std/process.o, objects/std/random.o, objects/std/range/interfaces.o, objects/std/range/package.o, objects/std/range/primitives.o, objects/std/regex/internal/backtracking.o, objects/std/regex/internal/generator.o, objects/std/regex/internal/ir.o, objects/std/regex/internal/kickstart.o, objects/std/regex/internal/parser.o, objects/std/regex/internal/tests.o, objects/std/regex/internal/tests2.o, objects/std/regex/internal/thompson.o, objects/std/regex/package.o, objects/std/signals.o, objects/std/socket.o, objects/std/stdint.o, objects/std/stdio.o, objects/std/string.o, objects/std/sumtype.o, objects/std/system.o, objects/std/traits.o, objects/std/typecons.o, objects/std/typetuple.o, objects/std/uni/package.o, objects/std/uri.o, objects/std/utf.o, objects/std/uuid.o, objects/std/variant.o, objects/std/zip.o, objects/std/zlib.o
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/adler32.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:63:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_z(adler, buf, len)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:134:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32(adler, buf, len)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:143:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local uLong adler32_combine_(adler1, adler2, len2)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:172:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_combine(adler1, adler2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:180:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_combine64(adler1, adler2, len2)
              ^
5 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/compress.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:22:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:68:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT compress (dest, destLen, source, sourceLen)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:81:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT compressBound (sourceLen)
              ^
3 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/crc32.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:117:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_word_t byte_swap(word)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:542:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t multmodp(a, b)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:566:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t x2nmodp(n, k)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:717:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t crc_word(data)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:726:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_word_t crc_word_big(data)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:739:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT crc32_z(crc, buf, len)
                      ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1063:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT crc32(crc, buf, len)
                      ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1072:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine64(crc1, crc2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1084:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine(crc1, crc2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1093:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine_gen64(len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1103:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine_gen(len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1110:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong crc32_combine_op(crc1, crc2, op)
      ^
12 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/deflate.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:204:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void slide_hash(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:231:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateInit_(strm, level, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:243:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:393:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int deflateStateCheck (strm)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:416:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateSetDictionary (strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:485:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateGetDictionary (strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:507:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateResetKeep (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:545:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateReset (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:557:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateSetHeader (strm, head)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:568:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflatePending (strm, pending, bits)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:582:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflatePrime (strm, bits, value)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:609:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateParams(strm, level, strategy)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:658:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateTune(strm, good_length, max_lazy, nice_length, max_chain)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:693:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT deflateBound(strm, sourceLen)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:757:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void putShortMSB (s, b)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:771:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void flush_pending(strm)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:804:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflate (strm, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1119:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateEnd (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1145:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateCopy (dest, source)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1204:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned read_buf(strm, buf, size)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1234:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void lm_init (s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1276:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local uInt longest_match(s, cur_match)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1522:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fill_window(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1685:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_stored(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1872:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_fast(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1974:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_slow(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:2105:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_rle(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:2178:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_huff(s, flush)
                  ^
28 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzclose.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzclose.c:11:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose(file)
            ^
1 warning generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzlib.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:75:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gz_reset(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:93:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local gzFile gz_open(path, fd, mode)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:272:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzopen(path, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:280:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzopen64(path, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:288:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzdopen(fd, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:318:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzbuffer(file, size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:345:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzrewind(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:368:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gzseek64(file, offset, whence)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:445:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gzseek(file, offset, whence)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:457:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gztell64(file)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:474:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gztell(file)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:484:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gzoffset64(file)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:507:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gzoffset(file)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:517:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzeof(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:534:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
const char * ZEXPORT gzerror(file, errnum)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:555:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZEXPORT gzclearerr(file)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:581:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL gz_error(state, err, msg)
                   ^
17 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzread.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:21:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_load(state, buf, len, have)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:56:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_avail(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:91:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_look(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:175:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_decomp(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:229:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_fetch(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:259:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_skip(state, len)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:294:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_size_t gz_read(state, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:375:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzread(file, buf, len)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:411:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_size_t ZEXPORT gzfread(buf, size, nitems, file)
                 ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:447:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzgetc(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:474:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzgetc_(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:481:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzungetc(c, file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:541:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char * ZEXPORT gzgets(file, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:605:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzdirect(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:625:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose_r(file)
            ^
15 warnings generated.
[  0%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/gzwrite.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:17:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_init(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:73:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_comp(state, flush)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:154:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_zero(state, len)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:187:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_size_t gz_write(state, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:255:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzwrite(file, buf, len)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:283:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_size_t ZEXPORT gzfwrite(buf, size, nitems, file)
                 ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:313:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzputc(file, c)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:361:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzputs(file, s)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:565:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzflush(file, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:597:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzsetparams(file, level, strategy)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:639:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose_w(file)
            ^
11 warnings generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/infback.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:28:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:82:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fixedtables(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:250:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:632:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBackEnd(strm)
            ^
4 warnings generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inffast.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inffast.c:50:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL inflate_fast(strm, start)
                   ^
1 warning generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inflate.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:105:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int inflateStateCheck(strm)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:119:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateResetKeep(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:145:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateReset(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:158:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateReset2(strm, windowBits)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:196:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateInit2_(strm, windowBits, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:240:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateInit_(strm, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:248:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflatePrime(strm, bits, value)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:279:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fixedtables(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:397:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int updatewindow(strm, end, copy)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:623:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflate(strm, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateEnd(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1316:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateGetDictionary(strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1339:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSetDictionary(strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1374:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateGetHeader(strm, head)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1402:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned syncsearch(have, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1425:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSync(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1483:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSyncPoint(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1493:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateCopy(dest, source)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1540:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateUndermine(strm, subvert)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1558:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateValidate(strm, check)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1573:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
long ZEXPORT inflateMark(strm)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1586:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT inflateCodesUsed(strm)
                      ^
22 warnings generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/inftrees.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inftrees.c:32:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work)
                  ^
1 warning generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/trees.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:379:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_init(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:407:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void init_block(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:451:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void pqdownheap(s, tree, k)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:486:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gen_bitlen(s, desc)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:572:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gen_codes (tree, max_code, bl_count)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:615:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void build_tree(s, desc)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:703:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void scan_tree (s, tree, max_code)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:748:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void send_tree (s, tree, max_code)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:799:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int build_bl_tree(s)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:834:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void send_all_trees(s, lcodes, dcodes, blcodes)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:863:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:887:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_flush_bits(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:897:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_align(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:912:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1015:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZLIB_INTERNAL _tr_tally (s, dist, lc)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1043:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void compress_block(s, ltree, dtree)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1103:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int detect_data_type(s)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1137:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned bi_reverse(code, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1152:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void bi_flush(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1169:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void bi_windup(s)
           ^
20 warnings generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/uncompr.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/uncompr.c:27:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT uncompress2 (dest, destLen, source, sourceLen)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/uncompr.c:86:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT uncompress (dest, destLen, source, sourceLen)
            ^
2 warnings generated.
[ 25%] Building C object CMakeFiles/phobos2-ldc.dir/phobos/etc/c/zlib/zutil.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:133:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
const char * ZEXPORT zError(err)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:305:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:315:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL zcfree (opaque, ptr)
                   ^
3 warnings generated.
[ 25%] Linking D static library lib/libphobos2-ldc.a
[ 25%] Built target phobos2-ldc
[ 25%] Generating objects-debug/core/atomic.o, objects-debug/core/attribute.o, objects-debug/core/bitop.o, objects-debug/core/builtins.o, objects-debug/core/checkedint.o, objects-debug/core/cpuid.o, objects-debug/core/demangle.o, objects-debug/core/exception.o, objects-debug/core/factory.o, objects-debug/core/gc/config.o, objects-debug/core/gc/gcinterface.o, objects-debug/core/gc/registry.o, objects-debug/core/int128.o, objects-debug/core/internal/abort.o, objects-debug/core/internal/array/appending.o, objects-debug/core/internal/array/arrayassign.o, objects-debug/core/internal/array/capacity.o, objects-debug/core/internal/array/casting.o, objects-debug/core/internal/array/comparison.o, objects-debug/core/internal/array/concatenation.o, objects-debug/core/internal/array/construction.o, objects-debug/core/internal/array/duplication.o, objects-debug/core/internal/array/equality.o, objects-debug/core/internal/array/operations.o, objects-debug/core/internal/array/utils.o, objects-debug/core/internal/atomic.o, objects-debug/core/internal/attributes.o, objects-debug/core/internal/backtrace/dwarf.o, objects-debug/core/internal/backtrace/elf.o, objects-debug/core/internal/backtrace/handler.o, objects-debug/core/internal/backtrace/libunwind.o, objects-debug/core/internal/backtrace/macho.o, objects-debug/core/internal/backtrace/unwind.o, objects-debug/core/internal/container/array.o, objects-debug/core/internal/container/common.o, objects-debug/core/internal/container/hashtab.o, objects-debug/core/internal/container/treap.o, objects-debug/core/internal/convert.o, objects-debug/core/internal/dassert.o, objects-debug/core/internal/destruction.o, objects-debug/core/internal/elf/dl.o, objects-debug/core/internal/elf/io.o, objects-debug/core/internal/entrypoint.o, objects-debug/core/internal/execinfo.o, objects-debug/core/internal/gc/bits.o, objects-debug/core/internal/gc/impl/conservative/gc.o, objects-debug/core/internal/gc/impl/manual/gc.o, objects-debug/core/internal/gc/impl/proto/gc.o, objects-debug/core/internal/gc/os.o, objects-debug/core/internal/gc/pooltable.o, objects-debug/core/internal/gc/proxy.o, objects-debug/core/internal/hash.o, objects-debug/core/internal/lifetime.o, objects-debug/core/internal/moving.o, objects-debug/core/internal/parseoptions.o, objects-debug/core/internal/postblit.o, objects-debug/core/internal/qsort.o, objects-debug/core/internal/spinlock.o, objects-debug/core/internal/string.o, objects-debug/core/internal/switch_.o, objects-debug/core/internal/traits.o, objects-debug/core/internal/utf.o, objects-debug/core/internal/util/array.o, objects-debug/core/internal/util/math.o, objects-debug/core/internal/vararg/aarch64.o, objects-debug/core/internal/vararg/sysv_x64.o, objects-debug/core/lifetime.o, objects-debug/core/math.o, objects-debug/core/memory.o, objects-debug/core/runtime.o, objects-debug/core/simd.o, objects-debug/core/stdc/assert_.o, objects-debug/core/stdc/complex.o, objects-debug/core/stdc/config.o, objects-debug/core/stdc/ctype.o, objects-debug/core/stdc/errno.o, objects-debug/core/stdc/fenv.o, objects-debug/core/stdc/float_.o, objects-debug/core/stdc/inttypes.o, objects-debug/core/stdc/limits.o, objects-debug/core/stdc/locale.o, objects-debug/core/stdc/math.o, objects-debug/core/stdc/signal.o, objects-debug/core/stdc/stdarg.o, objects-debug/core/stdc/stddef.o, objects-debug/core/stdc/stdint.o, objects-debug/core/stdc/stdio.o, objects-debug/core/stdc/stdlib.o, objects-debug/core/stdc/string.o, objects-debug/core/stdc/tgmath.o, objects-debug/core/stdc/time.o, objects-debug/core/stdc/wchar_.o, objects-debug/core/stdc/wctype.o, objects-debug/core/stdcpp/allocator.o, objects-debug/core/stdcpp/array.o, objects-debug/core/stdcpp/exception.o, objects-debug/core/stdcpp/memory.o, objects-debug/core/stdcpp/new_.o, objects-debug/core/stdcpp/string.o, objects-debug/core/stdcpp/string_view.o, objects-debug/core/stdcpp/type_traits.o, objects-debug/core/stdcpp/typeinfo.o, objects-debug/core/stdcpp/utility.o, objects-debug/core/stdcpp/vector.o, objects-debug/core/stdcpp/xutility.o, objects-debug/core/sync/barrier.o, objects-debug/core/sync/condition.o, objects-debug/core/sync/config.o, objects-debug/core/sync/event.o, objects-debug/core/sync/exception.o, objects-debug/core/sync/mutex.o, objects-debug/core/sync/package.o, objects-debug/core/sync/rwmutex.o, objects-debug/core/sync/semaphore.o, objects-debug/core/sys/elf/package.o, objects-debug/core/thread/context.o, objects-debug/core/thread/fiber.o, objects-debug/core/thread/osthread.o, objects-debug/core/thread/package.o, objects-debug/core/thread/threadbase.o, objects-debug/core/thread/threadgroup.o, objects-debug/core/thread/types.o, objects-debug/core/time.o, objects-debug/core/vararg.o, objects-debug/core/volatile.o, objects-debug/etc/valgrind/valgrind.o, objects-debug/ldc/asan.o, objects-debug/ldc/attributes.o, objects-debug/ldc/dcompute.o, objects-debug/ldc/eh_msvc.o, objects-debug/ldc/sanitizer_common.o, objects-debug/ldc/sanitizers_optionally_linked.o, objects-debug/object.o, objects-debug/rt/aApply.o, objects-debug/rt/aApplyR.o, objects-debug/rt/aaA.o, objects-debug/rt/adi.o, objects-debug/rt/arraycat.o, objects-debug/rt/cast_.o, objects-debug/rt/config.o, objects-debug/rt/cover.o, objects-debug/rt/critical_.o, objects-debug/rt/deh.o, objects-debug/rt/deh_win64_posix.o, objects-debug/rt/dmain2.o, objects-debug/rt/dso.o, objects-debug/rt/dwarfeh.o, objects-debug/rt/ehalloc.o, objects-debug/rt/invariant.o, objects-debug/rt/lifetime.o, objects-debug/rt/memory.o, objects-debug/rt/minfo.o, objects-debug/rt/monitor_.o, objects-debug/rt/msvc.o, objects-debug/rt/msvc_math.o, objects-debug/rt/profilegc.o, objects-debug/rt/sections.o, objects-debug/rt/sections_android.o, objects-debug/rt/sections_darwin_64.o, objects-debug/rt/sections_elf_shared.o, objects-debug/rt/sections_ldc.o, objects-debug/rt/sections_win64.o, objects-debug/rt/tlsgc.o, objects-debug/rt/trace.o, objects-debug/rt/tracegc.o, objects-debug/rt/util/typeinfo.o, objects-debug/rt/util/utility.o, objects-debug/core/sys/posix/aio.o, objects-debug/core/sys/posix/arpa/inet.o, objects-debug/core/sys/posix/config.o, objects-debug/core/sys/posix/dirent.o, objects-debug/core/sys/posix/dlfcn.o, objects-debug/core/sys/posix/fcntl.o, objects-debug/core/sys/posix/grp.o, objects-debug/core/sys/posix/iconv.o, objects-debug/core/sys/posix/inttypes.o, objects-debug/core/sys/posix/libgen.o, objects-debug/core/sys/posix/locale.o, objects-debug/core/sys/posix/mqueue.o, objects-debug/core/sys/posix/net/if_.o, objects-debug/core/sys/posix/netdb.o, objects-debug/core/sys/posix/netinet/in_.o, objects-debug/core/sys/posix/netinet/tcp.o, objects-debug/core/sys/posix/poll.o, objects-debug/core/sys/posix/pthread.o, objects-debug/core/sys/posix/pwd.o, objects-debug/core/sys/posix/sched.o, objects-debug/core/sys/posix/semaphore.o, objects-debug/core/sys/posix/setjmp.o, objects-debug/core/sys/posix/signal.o, objects-debug/core/sys/posix/spawn.o, objects-debug/core/sys/posix/stdc/time.o, objects-debug/core/sys/posix/stdio.o, objects-debug/core/sys/posix/stdlib.o, objects-debug/core/sys/posix/string.o, objects-debug/core/sys/posix/strings.o, objects-debug/core/sys/posix/sys/filio.o, objects-debug/core/sys/posix/sys/ioccom.o, objects-debug/core/sys/posix/sys/ioctl.o, objects-debug/core/sys/posix/sys/ipc.o, objects-debug/core/sys/posix/sys/mman.o, objects-debug/core/sys/posix/sys/msg.o, objects-debug/core/sys/posix/sys/resource.o, objects-debug/core/sys/posix/sys/select.o, objects-debug/core/sys/posix/sys/shm.o, objects-debug/core/sys/posix/sys/socket.o, objects-debug/core/sys/posix/sys/stat.o, objects-debug/core/sys/posix/sys/statvfs.o, objects-debug/core/sys/posix/sys/time.o, objects-debug/core/sys/posix/sys/ttycom.o, objects-debug/core/sys/posix/sys/types.o, objects-debug/core/sys/posix/sys/uio.o, objects-debug/core/sys/posix/sys/un.o, objects-debug/core/sys/posix/sys/utsname.o, objects-debug/core/sys/posix/sys/wait.o, objects-debug/core/sys/posix/syslog.o, objects-debug/core/sys/posix/termios.o, objects-debug/core/sys/posix/time.o, objects-debug/core/sys/posix/ucontext.o, objects-debug/core/sys/posix/unistd.o, objects-debug/core/sys/posix/utime.o, objects-debug/core/sys/linux/config.o, objects-debug/core/sys/linux/dlfcn.o, objects-debug/core/sys/linux/elf.o, objects-debug/core/sys/linux/epoll.o, objects-debug/core/sys/linux/err.o, objects-debug/core/sys/linux/errno.o, objects-debug/core/sys/linux/execinfo.o, objects-debug/core/sys/linux/fcntl.o, objects-debug/core/sys/linux/fs.o, objects-debug/core/sys/linux/ifaddrs.o, objects-debug/core/sys/linux/input.o, objects-debug/core/sys/linux/input_event_codes.o, objects-debug/core/sys/linux/io_uring.o, objects-debug/core/sys/linux/link.o, objects-debug/core/sys/linux/netinet/in_.o, objects-debug/core/sys/linux/netinet/tcp.o, objects-debug/core/sys/linux/perf_event.o, objects-debug/core/sys/linux/sched.o, objects-debug/core/sys/linux/stdio.o, objects-debug/core/sys/linux/string.o, objects-debug/core/sys/linux/sys/auxv.o, objects-debug/core/sys/linux/sys/eventfd.o, objects-debug/core/sys/linux/sys/file.o, objects-debug/core/sys/linux/sys/inotify.o, objects-debug/core/sys/linux/sys/mman.o, objects-debug/core/sys/linux/sys/prctl.o, objects-debug/core/sys/linux/sys/procfs.o, objects-debug/core/sys/linux/sys/signalfd.o, objects-debug/core/sys/linux/sys/socket.o, objects-debug/core/sys/linux/sys/sysinfo.o, objects-debug/core/sys/linux/sys/time.o, objects-debug/core/sys/linux/sys/xattr.o, objects-debug/core/sys/linux/termios.o, objects-debug/core/sys/linux/time.o, objects-debug/core/sys/linux/timerfd.o, objects-debug/core/sys/linux/tipc.o, objects-debug/core/sys/linux/uinput.o, objects-debug/core/sys/linux/unistd.o, objects-debug/core/sys/bionic/err.o, objects-debug/core/sys/bionic/fcntl.o, objects-debug/core/sys/bionic/stdlib.o, objects-debug/core/sys/bionic/string.o, objects-debug/core/sys/bionic/unistd.o
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $16, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $17, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $18, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $19, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $20, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $21, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $22, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
core/thread/osthread.d(1572):1:12: warning: used $at (currently $1) without ".set noat"
        sw $23, 0($1)
                  ^
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/core/stdc/errno.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/etc/valgrind/valgrind.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/arm_unwind.c.o
[ 50%] Building C object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/msvc.c.o
[ 50%] Building ASM object CMakeFiles/druntime-ldc-debug.dir/druntime/src/core/threadasm.S.o
[ 50%] Building ASM object CMakeFiles/druntime-ldc-debug.dir/druntime/src/ldc/eh_asm.S.o
[ 50%] Linking D static library lib/libdruntime-ldc-debug.a
[ 50%] Built target druntime-ldc-debug
[ 50%] Generating objects-debug/etc/c/curl.o, objects-debug/etc/c/odbc/sql.o, objects-debug/etc/c/odbc/sqlext.o, objects-debug/etc/c/odbc/sqltypes.o, objects-debug/etc/c/odbc/sqlucode.o, objects-debug/etc/c/sqlite3.o, objects-debug/etc/c/zlib.o, objects-debug/std/algorithm/comparison.o, objects-debug/std/algorithm/internal.o, objects-debug/std/algorithm/iteration.o, objects-debug/std/algorithm/mutation.o, objects-debug/std/algorithm/package.o, objects-debug/std/algorithm/searching.o, objects-debug/std/algorithm/setops.o, objects-debug/std/algorithm/sorting.o, objects-debug/std/array.o, objects-debug/std/ascii.o, objects-debug/std/base64.o, objects-debug/std/bigint.o, objects-debug/std/bitmanip.o, objects-debug/std/checkedint.o, objects-debug/std/compiler.o, objects-debug/std/complex.o, objects-debug/std/concurrency.o, objects-debug/std/container/array.o, objects-debug/std/container/binaryheap.o, objects-debug/std/container/dlist.o, objects-debug/std/container/package.o, objects-debug/std/container/rbtree.o, objects-debug/std/container/slist.o, objects-debug/std/container/util.o, objects-debug/std/conv.o, objects-debug/std/csv.o, objects-debug/std/datetime/date.o, objects-debug/std/datetime/interval.o, objects-debug/std/datetime/package.o, objects-debug/std/datetime/stopwatch.o, objects-debug/std/datetime/systime.o, objects-debug/std/datetime/timezone.o, objects-debug/std/demangle.o, objects-debug/std/digest/crc.o, objects-debug/std/digest/hmac.o, objects-debug/std/digest/md.o, objects-debug/std/digest/murmurhash.o, objects-debug/std/digest/package.o, objects-debug/std/digest/ripemd.o, objects-debug/std/digest/sha.o, objects-debug/std/encoding.o, objects-debug/std/exception.o, objects-debug/std/experimental/allocator/building_blocks/affix_allocator.o, objects-debug/std/experimental/allocator/building_blocks/aligned_block_list.o, objects-debug/std/experimental/allocator/building_blocks/allocator_list.o, objects-debug/std/experimental/allocator/building_blocks/ascending_page_allocator.o, objects-debug/std/experimental/allocator/building_blocks/bitmapped_block.o, objects-debug/std/experimental/allocator/building_blocks/bucketizer.o, objects-debug/std/experimental/allocator/building_blocks/fallback_allocator.o, objects-debug/std/experimental/allocator/building_blocks/free_list.o, objects-debug/std/experimental/allocator/building_blocks/free_tree.o, objects-debug/std/experimental/allocator/building_blocks/kernighan_ritchie.o, objects-debug/std/experimental/allocator/building_blocks/null_allocator.o, objects-debug/std/experimental/allocator/building_blocks/package.o, objects-debug/std/experimental/allocator/building_blocks/quantizer.o, objects-debug/std/experimental/allocator/building_blocks/region.o, objects-debug/std/experimental/allocator/building_blocks/scoped_allocator.o, objects-debug/std/experimental/allocator/building_blocks/segregator.o, objects-debug/std/experimental/allocator/building_blocks/stats_collector.o, objects-debug/std/experimental/allocator/common.o, objects-debug/std/experimental/allocator/gc_allocator.o, objects-debug/std/experimental/allocator/mallocator.o, objects-debug/std/experimental/allocator/mmap_allocator.o, objects-debug/std/experimental/allocator/package.o, objects-debug/std/experimental/allocator/showcase.o, objects-debug/std/experimental/allocator/typed.o, objects-debug/std/experimental/checkedint.o, objects-debug/std/experimental/logger/core.o, objects-debug/std/experimental/logger/filelogger.o, objects-debug/std/experimental/logger/multilogger.o, objects-debug/std/experimental/logger/nulllogger.o, objects-debug/std/experimental/logger/package.o, objects-debug/std/file.o, objects-debug/std/format/internal/floats.o, objects-debug/std/format/internal/read.o, objects-debug/std/format/internal/write.o, objects-debug/std/format/package.o, objects-debug/std/format/read.o, objects-debug/std/format/spec.o, objects-debug/std/format/write.o, objects-debug/std/functional.o, objects-debug/std/getopt.o, objects-debug/std/int128.o, objects-debug/std/internal/attributes.o, objects-debug/std/internal/cstring.o, objects-debug/std/internal/digest/sha_SSSE3.o, objects-debug/std/internal/math/biguintarm.o, objects-debug/std/internal/math/biguintcore.o, objects-debug/std/internal/math/biguintnoasm.o, objects-debug/std/internal/math/biguintx86.o, objects-debug/std/internal/math/errorfunction.o, objects-debug/std/internal/math/gammafunction.o, objects-debug/std/internal/memory.o, objects-debug/std/internal/scopebuffer.o, objects-debug/std/internal/test/dummyrange.o, objects-debug/std/internal/test/range.o, objects-debug/std/internal/test/uda.o, objects-debug/std/internal/unicode_comp.o, objects-debug/std/internal/unicode_decomp.o, objects-debug/std/internal/unicode_grapheme.o, objects-debug/std/internal/unicode_norm.o, objects-debug/std/internal/unicode_tables.o, objects-debug/std/internal/windows/advapi32.o, objects-debug/std/json.o, objects-debug/std/logger/core.o, objects-debug/std/logger/filelogger.o, objects-debug/std/logger/multilogger.o, objects-debug/std/logger/nulllogger.o, objects-debug/std/logger/package.o, objects-debug/std/math/algebraic.o, objects-debug/std/math/constants.o, objects-debug/std/math/exponential.o, objects-debug/std/math/hardware.o, objects-debug/std/math/operations.o, objects-debug/std/math/package.o, objects-debug/std/math/remainder.o, objects-debug/std/math/rounding.o, objects-debug/std/math/traits.o, objects-debug/std/math/trigonometry.o, objects-debug/std/mathspecial.o, objects-debug/std/meta.o, objects-debug/std/mmfile.o, objects-debug/std/net/curl.o, objects-debug/std/net/isemail.o, objects-debug/std/numeric.o, objects-debug/std/outbuffer.o, objects-debug/std/package.o, objects-debug/std/parallelism.o, objects-debug/std/path.o, objects-debug/std/process.o, objects-debug/std/random.o, objects-debug/std/range/interfaces.o, objects-debug/std/range/package.o, objects-debug/std/range/primitives.o, objects-debug/std/regex/internal/backtracking.o, objects-debug/std/regex/internal/generator.o, objects-debug/std/regex/internal/ir.o, objects-debug/std/regex/internal/kickstart.o, objects-debug/std/regex/internal/parser.o, objects-debug/std/regex/internal/tests.o, objects-debug/std/regex/internal/tests2.o, objects-debug/std/regex/internal/thompson.o, objects-debug/std/regex/package.o, objects-debug/std/signals.o, objects-debug/std/socket.o, objects-debug/std/stdint.o, objects-debug/std/stdio.o, objects-debug/std/string.o, objects-debug/std/sumtype.o, objects-debug/std/system.o, objects-debug/std/traits.o, objects-debug/std/typecons.o, objects-debug/std/typetuple.o, objects-debug/std/uni/package.o, objects-debug/std/uri.o, objects-debug/std/utf.o, objects-debug/std/uuid.o, objects-debug/std/variant.o, objects-debug/std/zip.o, objects-debug/std/zlib.o
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/adler32.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:63:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_z(adler, buf, len)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:134:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32(adler, buf, len)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:143:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local uLong adler32_combine_(adler1, adler2, len2)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:172:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_combine(adler1, adler2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/adler32.c:180:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT adler32_combine64(adler1, adler2, len2)
              ^
5 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/compress.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:22:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:68:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT compress (dest, destLen, source, sourceLen)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/compress.c:81:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT compressBound (sourceLen)
              ^
3 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/crc32.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:117:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_word_t byte_swap(word)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:542:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t multmodp(a, b)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:566:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t x2nmodp(n, k)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:717:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_crc_t crc_word(data)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:726:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_word_t crc_word_big(data)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:739:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT crc32_z(crc, buf, len)
                      ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1063:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT crc32(crc, buf, len)
                      ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1072:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine64(crc1, crc2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1084:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine(crc1, crc2, len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1093:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine_gen64(len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1103:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT crc32_combine_gen(len2)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/crc32.c:1110:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong crc32_combine_op(crc1, crc2, op)
      ^
12 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/deflate.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:204:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void slide_hash(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:231:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateInit_(strm, level, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:243:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:393:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int deflateStateCheck (strm)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:416:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateSetDictionary (strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:485:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateGetDictionary (strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:507:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateResetKeep (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:545:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateReset (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:557:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateSetHeader (strm, head)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:568:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflatePending (strm, pending, bits)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:582:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflatePrime (strm, bits, value)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:609:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateParams(strm, level, strategy)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:658:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateTune(strm, good_length, max_lazy, nice_length, max_chain)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:693:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
uLong ZEXPORT deflateBound(strm, sourceLen)
              ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:757:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void putShortMSB (s, b)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:771:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void flush_pending(strm)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:804:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflate (strm, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1119:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateEnd (strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1145:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT deflateCopy (dest, source)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1204:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned read_buf(strm, buf, size)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1234:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void lm_init (s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1276:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local uInt longest_match(s, cur_match)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1522:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fill_window(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1685:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_stored(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1872:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_fast(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:1974:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_slow(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:2105:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_rle(s, flush)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/deflate.c:2178:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local block_state deflate_huff(s, flush)
                  ^
28 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzclose.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzclose.c:11:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose(file)
            ^
1 warning generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzlib.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:75:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gz_reset(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:93:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local gzFile gz_open(path, fd, mode)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:272:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzopen(path, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:280:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzopen64(path, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:288:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
gzFile ZEXPORT gzdopen(fd, mode)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:318:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzbuffer(file, size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:345:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzrewind(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:368:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gzseek64(file, offset, whence)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:445:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gzseek(file, offset, whence)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:457:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gztell64(file)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:474:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gztell(file)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:484:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off64_t ZEXPORT gzoffset64(file)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:507:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_off_t ZEXPORT gzoffset(file)
                ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:517:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzeof(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:534:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
const char * ZEXPORT gzerror(file, errnum)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:555:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZEXPORT gzclearerr(file)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzlib.c:581:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL gz_error(state, err, msg)
                   ^
17 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzread.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:21:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_load(state, buf, len, have)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:56:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_avail(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:91:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_look(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:175:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_decomp(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:229:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_fetch(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:259:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_skip(state, len)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:294:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_size_t gz_read(state, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:375:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzread(file, buf, len)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:411:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_size_t ZEXPORT gzfread(buf, size, nitems, file)
                 ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:447:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzgetc(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:474:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzgetc_(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:481:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzungetc(c, file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:541:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char * ZEXPORT gzgets(file, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:605:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzdirect(file)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzread.c:625:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose_r(file)
            ^
15 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/gzwrite.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:17:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_init(state)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:73:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_comp(state, flush)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:154:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int gz_zero(state, len)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:187:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local z_size_t gz_write(state, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:255:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzwrite(file, buf, len)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:283:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
z_size_t ZEXPORT gzfwrite(buf, size, nitems, file)
                 ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:313:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzputc(file, c)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:361:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzputs(file, s)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:565:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzflush(file, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:597:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzsetparams(file, level, strategy)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/gzwrite.c:639:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT gzclose_w(file)
            ^
11 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/infback.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:28:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:82:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fixedtables(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:250:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/infback.c:632:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateBackEnd(strm)
            ^
4 warnings generated.
[ 75%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inffast.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inffast.c:50:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL inflate_fast(strm, start)
                   ^
1 warning generated.
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inflate.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:105:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int inflateStateCheck(strm)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:119:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateResetKeep(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:145:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateReset(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:158:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateReset2(strm, windowBits)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:196:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateInit2_(strm, windowBits, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:240:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateInit_(strm, version, stream_size)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:248:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflatePrime(strm, bits, value)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:279:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void fixedtables(state)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:397:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int updatewindow(strm, end, copy)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:623:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflate(strm, flush)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateEnd(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1316:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateGetDictionary(strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1339:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSetDictionary(strm, dictionary, dictLength)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1374:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateGetHeader(strm, head)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1402:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned syncsearch(have, buf, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1425:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSync(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1483:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateSyncPoint(strm)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1493:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateCopy(dest, source)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1540:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateUndermine(strm, subvert)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1558:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT inflateValidate(strm, check)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1573:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
long ZEXPORT inflateMark(strm)
             ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inflate.c:1586:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned long ZEXPORT inflateCodesUsed(strm)
                      ^
22 warnings generated.
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/inftrees.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/inftrees.c:32:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work)
                  ^
1 warning generated.
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/trees.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:379:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_init(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:407:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void init_block(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:451:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void pqdownheap(s, tree, k)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:486:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gen_bitlen(s, desc)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:572:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void gen_codes (tree, max_code, bl_count)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:615:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void build_tree(s, desc)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:703:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void scan_tree (s, tree, max_code)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:748:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void send_tree (s, tree, max_code)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:799:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int build_bl_tree(s)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:834:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void send_all_trees(s, lcodes, dcodes, blcodes)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:863:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:887:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_flush_bits(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:897:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_align(s)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:912:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL _tr_flush_block(s, buf, stored_len, last)
                   ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1015:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZLIB_INTERNAL _tr_tally (s, dist, lc)
                  ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1043:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void compress_block(s, ltree, dtree)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1103:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local int detect_data_type(s)
          ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1137:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local unsigned bi_reverse(code, len)
               ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1152:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void bi_flush(s)
           ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/trees.c:1169:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
local void bi_windup(s)
           ^
20 warnings generated.
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/uncompr.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/uncompr.c:27:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT uncompress2 (dest, destLen, source, sourceLen)
            ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/uncompr.c:86:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int ZEXPORT uncompress (dest, destLen, source, sourceLen)
            ^
2 warnings generated.
[100%] Building C object CMakeFiles/phobos2-ldc-debug.dir/phobos/etc/c/zlib/zutil.c.o
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:133:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
const char * ZEXPORT zError(err)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:305:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
                     ^
/home/kassane/ldc2-lib/build/ldc-src/runtime/phobos/etc/c/zlib/zutil.c:315:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ZLIB_INTERNAL zcfree (opaque, ptr)
                   ^
3 warnings generated.
[100%] Linking D static library lib/libphobos2-ldc-debug.a
[100%] Built target phobos2-ldc-debug
.: Runtime libraries built successfully into: /home/kassane/ldc2-lib/build
build - hello_world.d
$> ldc2 -Oz hello/source/app.d -mtriple=mipsel-linux-musl \
    --gcc=$PWD/zigcxx -of=hello_mipsel \
    -L-L$PWD/build/lib -L-L$PWD/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib

ld.lld: error: undefined symbol: mmap64
>>> referenced by os.d
>>>               os.o:(_D4core8internal2gc2os10os_mem_mapFNbNikbZPv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by os.d
>>>               os.o:(_D4core8internal2gc2os10os_mem_mapFNbNikbZPv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by io.d
>>>               io.o:(_D4core8internal3elf2io__T5ElfIOTSQBg3sysQz10Elf32_EhdrTSQCdQxQBu10Elf32_ShdrVhi1Z7ElfFile4openFNbNiPxaJSQDzQDxQDrQDq__TQDqTQDnTQCuVhi1ZQCcZb) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced 11 more times

ld.lld: error: undefined symbol: open64
>>> referenced by io.d
>>>               io.o:(_D4core8internal3elf2io__T5ElfIOTSQBg3sysQz10Elf32_EhdrTSQCdQxQBu10Elf32_ShdrVhi1Z7ElfFile4openFNbNiPxaJSQDzQDxQDrQDq__TQDqTQDnTQCuVhi1ZQCcZb) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by io.d
>>>               io.o:(_D4core8internal3elf2io__T5ElfIOTSQBg3sysQz10Elf32_EhdrTSQCdQxQBu10Elf32_ShdrVhi1Z7ElfFile4openFNbNiPxaJSQDzQDxQDrQDq__TQDqTQDnTQCuVhi1ZQCcZb) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by cover.d
>>>               cover.o:(_D2rt5cover25_sharedStaticDtor_L223_C1FZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced 1 more times

ld.lld: error: undefined symbol: lseek64
>>> referenced by io.d
>>>               io.o:(_D4core8internal3elf2io__T5ElfIOTSQBg3sysQz10Elf32_EhdrTSQCdQxQBu10Elf32_ShdrVhi1Z7ElfFile4openFNbNiPxaJSQDzQDxQDrQDq__TQDqTQDnTQCuVhi1ZQCcZb) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by io.d
>>>               io.o:(_D4core8internal3elf2io__T5ElfIOTSQBg3sysQz10Elf32_EhdrTSQCdQxQBu10Elf32_ShdrVhi1Z7ElfFile4openFNbNiPxaJSQDzQDxQDrQDq__TQDqTQDnTQCuVhi1ZQCcZb) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a

ld.lld: error: undefined symbol: backtrace
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6signal9siginfo_tPvZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6signal9siginfo_tPvZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime16DefaultTraceInfo6__ctorMFNiZCQBsQBqQBl) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced 1 more times

ld.lld: error: undefined symbol: backtrace_symbols_fd
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6signal9siginfo_tPvZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6signal9siginfo_tPvZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a

ld.lld: error: undefined symbol: backtrace_symbols
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime16DefaultTraceInfo7opApplyMxFMDFKkKxAaZiZi) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by runtime.d
>>>               runtime.o:(_D4core7runtime16DefaultTraceInfo7opApplyMxFMDFKkKxAaZiZi) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by runtime.d
>>>               runtime.o:(_DThn8_4core7runtime16DefaultTraceInfo7opApplyMxFMDFKkKxAaZiZi) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced 1 more times

ld.lld: error: undefined symbol: ftruncate64
>>> referenced by cover.d
>>>               cover.o:(_D2rt5cover25_sharedStaticDtor_L223_C1FZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by cover.d
>>>               cover.o:(_D2rt5cover25_sharedStaticDtor_L223_C1FZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a

ld.lld: error: undefined symbol: lockf64
>>> referenced by cover.d
>>>               cover.o:(_D2rt5cover25_sharedStaticDtor_L223_C1FZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
>>> referenced by cover.d
>>>               cover.o:(_D2rt5cover25_sharedStaticDtor_L223_C1FZv) in archive /home/kassane/ldc2-lib/build/lib/libdruntime-ldc.a
Error: /home/kassane/ldc2-lib/zigcxx failed with status: 1

Note: For another target non-musl works and betterC for musl too.

betterC - same target
binary    /home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/ldc2
version   1.35.0 (DMD v2.105.2, LLVM 16.0.6)
config    /home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/etc/ldc2.conf (mipsel-unknown-linux-musl)
predefs   LDC all D_Version2 assert D_PreConditions D_PostConditions D_Invariants D_BetterC D_Optimized MIPS MIPS32 MIPS_HardFloat D_HardFloat MIPS_O32 LittleEndian D_PIC linux Posix CRuntime_Musl CppRuntime_Gcc DRuntime_Use_Libunwind LDC_LLVM_1600
parse     c
importall c
import    object	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/object.d)
import    core.attribute	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/attribute.d)
import    ldc.attributes	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/ldc/attributes.d)
import    core.internal.hash	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/hash.d)
import    core.internal.traits	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/traits.d)
import    core.internal.entrypoint	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/entrypoint.d)
import    core.internal.array.appending	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/appending.d)
import    core.internal.array.comparison	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/comparison.d)
import    core.internal.array.equality	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/equality.d)
import    core.internal.array.casting	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/casting.d)
import    core.internal.array.concatenation	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/concatenation.d)
import    core.internal.array.construction	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/construction.d)
import    core.internal.array.arrayassign	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/arrayassign.d)
import    core.internal.array.capacity	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/array/capacity.d)
import    core.internal.dassert	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/dassert.d)
import    core.atomic	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/atomic.d)
import    core.internal.attributes	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/attributes.d)
import    core.internal.atomic	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/atomic.d)
import    ldc.intrinsics	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/ldc/intrinsics.di)
import    core.internal.destruction	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/destruction.d)
import    core.internal.moving	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/moving.d)
import    core.internal.postblit	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/postblit.d)
import    core.internal.switch_	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/internal/switch_.d)
import    core.lifetime	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/lifetime.d)
import    core.builtins	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/builtins.d)
semantic  c
semantic2 c
semantic3 c
import    core.stdc.stdio	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/stdio.d)
import    core.stdc.stdint	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/stdint.d)
import    core.stdc.config	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/config.d)
import    core.stdc.stddef	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/stddef.d)
import    core.stdc.signal	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/signal.d)
import    core.stdc.wchar_	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/wchar_.d)
import    core.stdc.stdarg	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/stdarg.d)
import    core.stdc.time	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/stdc/time.d)
import    core.sys.posix.stdc.time	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/sys/posix/stdc/time.d)
import    core.sys.posix.sys.types	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/sys/posix/sys/types.d)
import    core.sys.posix.config	(/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../import/core/sys/posix/config.d)
GC stats  2M used, 10M free, 12M total
code      c
/home/kassane/ldc2-lib/zigcxx hello_mipsel.o -o hello_mipsel -L/home/kassane/ldc2-lib/build/lib -L/home/kassane/ldc2-lib/mipsel_musl/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib -L/home/kassane/ldc2-lib/ldc2-1.35.0-linux-x86_64/bin/../lib -Wl,--gc-sections -lrt -ldl -lpthread -lm -mabi=32 -march=mips32r2 

@kinke
Copy link
Member

kinke commented Nov 4, 2023

Great that you figured out the missing env in the triple, and how to get hold of a libunwind. - Note that the missing druntime bits need to be added upstream (then usable by gdc too etc.): https://github.com/dlang/dmd/blob/master/druntime/src/core/internal/backtrace/libunwind.d

@kassane
Copy link
Contributor Author

kassane commented Nov 4, 2023

Is it possible to disable libunwind from runtime build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants