Linker error when building dmd backend
Thomas Mader
thomas.mader at gmail.com
Sat Dec 22 23:46:30 UTC 2018
On Saturday, 22 December 2018 at 23:29:13 UTC, Thomas Mader wrote:
> I enabled more debug output from the Nix environment so the
> compiler flags can be seen.
The part with fp.c:
(CC) BACK_OBJS dmd/backend/fp.c
c++ -c -o../generated/linux/release/64/fp.o -Wno-deprecated
-Wstrict-aliasing -Werror -fno-exceptions -fno-rtti -D__pascal=
-DMARS=1 -DTARGET_LINUX=1 -DDM_TARGET_CPU_X86=1 -m64 -fPIC
-std=gnu++98 -O2 -Idmd/root -Idmd/tk -Idmd/backend
-I../generated/linux/release/64 -Idmd -DDMDV2=1 -MMD -MF
../generated/linux/release/64/fp.deps dmd/backend/fp.c
(CC) BACK_OBJS dmd/backend/cgen.c
c++ -c -o../generated/linux/release/64/cgen.o -Wno-deprecated
-Wstrict-aliasing -Werror -fno-exceptions -fno-rtti -D__pascal=
-DMARS=1 -DTARGET_LINUX=1 -DDM_TARGET_CPU_X86=1 -m64 -fPIC
-std=gnu++98 -O2 -Idmd/root -Idmd/tk -Idmd/backend
-I../generated/linux/release/64 -Idmd -DDMDV2=1 -MMD -MF
../generated/linux/release/64/cgen.deps dmd/backend/cgen.c
HARDENING: disabled flags: pie
HARDENING: Is active (not completely disabled with "all" flag)
HARDENING: enabling fortify
HARDENING: enabling stackprotector
HARDENING: enabling strictoverflow
HARDENING: enabling format
HARDENING: enabling pic
extra flags before to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-O2
-D_FORTIFY_SOURCE=2
-fstack-protector-strong
--param
ssp-buffer-size=4
-fno-strict-overflow
-Wformat
-Wformat-security
-Werror=format-security
-fPIC
original flags to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-c
-o../generated/linux/release/64/os.o
-Wno-deprecated
-Wstrict-aliasing
-Werror
-fno-exceptions
-fno-rtti
-D__pascal=
-DMARS=1
-DTARGET_LINUX=1
-DDM_TARGET_CPU_X86=1
-m64
-fPIC
-std=gnu++98
-O2
-Idmd/root
-Idmd/tk
-Idmd/backend
-I../generated/linux/release/64
-Idmd
-DDMDV2=1
-MMD
-MF
../generated/linux/release/64/os.deps
dmd/backend/os.c
extra flags after to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-B/nix/store/x6inizi5ahlyhqxxwv1rvn05a25icarq-gcc-7.3.0-lib/lib
-B/nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27/lib/
-idirafter
/nix/store/psqblh5bsgkbkhn4r648pgjw5rq4npkv-glibc-2.27-dev/include
-idirafter
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include-fixed
-B/nix/store/klci955kxil7q32ggran6lnhpnkk8yjz-gcc-wrapper-7.3.0/bin/
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
HARDENING: disabled flags: pie
HARDENING: Is active (not completely disabled with "all" flag)
HARDENING: enabling fortify
HARDENING: enabling stackprotector
HARDENING: enabling strictoverflow
HARDENING: enabling format
HARDENING: enabling pic
HARDENING: disabled flags: pie
HARDENING: Is active (not completely disabled with "all" flag)
extra flags before to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-O2
-D_FORTIFY_SOURCE=2
-fstack-protector-strong
--param
ssp-buffer-size=4
-fno-strict-overflow
-Wformat
-Wformat-security
-Werror=format-security
-fPIC
original flags to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-c
-o../generated/linux/release/64/fp.o
-Wno-deprecated
-Wstrict-aliasing
-Werror
-fno-exceptions
-fno-rtti
-D__pascal=
-DMARS=1
-DTARGET_LINUX=1
-DDM_TARGET_CPU_X86=1
-m64
-fPIC
-std=gnu++98
-O2
-Idmd/root
-Idmd/tk
-Idmd/backend
-I../generated/linux/release/64
-Idmd
-DDMDV2=1
-MMD
-MF
../generated/linux/release/64/fp.deps
dmd/backend/fp.c
extra flags after to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-B/nix/store/x6inizi5ahlyhqxxwv1rvn05a25icarq-gcc-7.3.0-lib/lib
-B/nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27/lib/
-idirafter
/nix/store/psqblh5bsgkbkhn4r648pgjw5rq4npkv-glibc-2.27-dev/include
-idirafter
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include-fixed
-B/nix/store/klci955kxil7q32ggran6lnhpnkk8yjz-gcc-wrapper-7.3.0/bin/
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
HARDENING: enabling fortify
HARDENING: enabling stackprotector
HARDENING: enabling strictoverflow
HARDENING: enabling format
HARDENING: enabling pic
extra flags before to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-O2
-D_FORTIFY_SOURCE=2
-fstack-protector-strong
--param
ssp-buffer-size=4
-fno-strict-overflow
-Wformat
-Wformat-security
-Werror=format-security
-fPIC
original flags to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-c
-o../generated/linux/release/64/cgen.o
-Wno-deprecated
-Wstrict-aliasing
-Werror
-fno-exceptions
-fno-rtti
-D__pascal=
-DMARS=1
-DTARGET_LINUX=1
-DDM_TARGET_CPU_X86=1
-m64
-fPIC
-std=gnu++98
-O2
-Idmd/root
-Idmd/tk
-Idmd/backend
-I../generated/linux/release/64
-Idmd
-DDMDV2=1
-MMD
-MF
../generated/linux/release/64/cgen.deps
dmd/backend/cgen.c
extra flags after to
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/bin/g++:
-B/nix/store/x6inizi5ahlyhqxxwv1rvn05a25icarq-gcc-7.3.0-lib/lib
-B/nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27/lib/
-idirafter
/nix/store/psqblh5bsgkbkhn4r648pgjw5rq4npkv-glibc-2.27-dev/include
-idirafter
/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include-fixed
-B/nix/store/klci955kxil7q32ggran6lnhpnkk8yjz-gcc-wrapper-7.3.0/bin/
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
-isystem
/nix/store/gvmijbjia22rskv7xfm36004zsyi62mr-ldc-1.13.0/include
-isystem
/nix/store/6yf8cndis3p9awh5wmwplyrqv55y4y3a-gdb-8.2/include
-isystem
/nix/store/yhckr5a12np73av4c4k1v1ffqj0bx53h-curl-7.62.0-dev/include
-isystem
/nix/store/s7f8awsadn61qmbz1mfniw2c3zxcifq0-nghttp2-1.35.0-dev/include
-isystem
/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev/include
-isystem
/nix/store/jfyrrk9xkqm06x5vcx6cs4qm34bzl39h-libkrb5-1.15.2-dev/include
-isystem
/nix/store/v7gs3pmbg43ys16fbhhc9sq89s4vj236-openssl-1.0.2q-dev/include
-isystem
/nix/store/v42mn058w6gb8ycyf1phvi8f8c9a4k8m-libssh2-1.8.0-dev/include
-isystem
/nix/store/9nzy5rd0mk57va1sr4br936pjk24ns8p-tzdata-2018g-dev/include
More information about the Digitalmars-d
mailing list