[DRBD-user] drbd-9.0.9-1 compilation error on centos7.3: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:

T.J. Yang tjyang2001 at gmail.com
Sat Sep 16 14:35:54 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi All

Anyone know how I can resolve this issue ?
According to R1, we need to pass "EXTRA_CFLAGS += -fno-pie" option to  gcc
compiler.
Quick look at Makefile and drbd-kernel.spec, not sure where can I pass on
no-pie ?

[ME at miq01t drbd-9.0.9-1]$ KDIR=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64
 make kmp-rpm

Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler

scripts/basic/fixdep.c:462:1: fatal error: opening dependency file
scripts/basic/.fixdep.d: Permission denied

}

^

compilation terminated.

make[2]: *** [scripts/basic/fixdep] Error 1

make[1]: *** [scripts_basic] Error 2

checking for presence of 9\.0\.9-1 in various changelog files

drbd-kernel.spec:9.0.9-1%{?dist}

ChangeLog:9.0.9-1 (api:genl2/proto:86-112/transport:14)

test -s .filelist

rm -f drbd-9.0.9-1

ln -s . drbd-9.0.9-1

for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit
1; done

grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \

<snipped>

+ cd /home/ME/rpmbuild/BUILD <http://tjyang@lenovo.com/rpmbuild/BUILD>

+ cd drbd-9.0.9-1

+ rm -rf /home/ME/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64
<http://tjyang@lenovo.com/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64>

+ exit 0

You have now:

/home/ME/rpmbuild/RPMS/x86_64/kmod-drbd-9.0.9_3.10.0_514.26.2-1.
el7.centos.x86_64.rpm

/home/ME/rpmbuild/RPMS/x86_64/drbd-kernel-debuginfo-9.0.9-1.el7.
centos.x86_64.rpm

[ME at miq01t drbd-9.0.9-1]$ gcc -v Using built-in specs. COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=
http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto
--enable-plugin --enable-initfini-array --disable-libgcj
--with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64
--build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623
(Red Hat 4.8.5-11) (GCC) [ME at miq01t drbd-9.0.9-1]$


Thanks for you help


R1: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982
-- 
T.J. Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170916/bf4597cc/attachment.htm>


More information about the drbd-user mailing list