I recently met troubles compiling samba on one computer. I have the feeling my CFLAGS definition is the culprit, but I do not see how to solve that.
What leads me to thing that is this part of the build.log, specifically the
Code: Select all
Could not find a .d dependency file, are cflags/cxxflags overwritten?Code: Select all
[387/387] Linking bin/default/lib/replace/libreplace-private-samba.so
07:34:01 runner ['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=alderlake', '-mabm', '-mno-cldemote', '-mno-kl', '-mno-pconfig', '-mno-sgx', '-mno-widekl', '-mshstk', '--param=l1-cache-line-size=64', '--param=l1-cache-size=48', '--param=l2-cache-size=18432', '-std=gnu17', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,pack-relative-relocs', '-Wl,--undefined-version', '-Wl,--version-script=/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5-abi_x86_64.amd64/bin/default/lib/replace/replace.vscript', '-shared', 'lib/replace/replace.c.3.o', '-o/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5-abi_x86_64.amd64/bin/default/lib/replace/libreplace-private-samba.so', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/local/lib', '-lbsd', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,pack-relative-relocs', '-Wl,--undefined-version', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic']
Could not find a .d dependency file, are cflags/cxxflags overwritten?
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5-abi_x86_64.amd64/bin/default'
Build failed
Traceback (most recent call last):
File "/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5/third_party/waf/waflib/Task.py", line 360, in process
self.post_run()
~~~~~~~~~~~~~^^
File "/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5/third_party/waf/waflib/extras/gccdeps.py", line 77, in post_run
deps_txt = Utils.readf(deps_filename)
File "/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5/third_party/waf/waflib/Utils.py", line 237, in readf
with open(fname, m) as f:
~~~~^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/net-fs/samba-4.22.5-r1/work/samba-4.22.5-abi_x86_64.amd64/bin/default/lib/replace/replace.c.2.d'
Code: Select all
COMMON_FLAGS="-O2 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=18432"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
Thanks.

