[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 17:43:59 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 Trevor

Thanks for the pointer. I would rather use the wheel other already built.

I haven't used drbd pkg from elrepo for a while.
The drbd9 pkg looks built against centos 7.4 which is not  officially
released yet, only the CR for 7.4 is out.
I will give a try and look into elrepo's drbd9 spec  file

 yum info kmod-drbd90.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.cogentco.com
 * elrepo: reflector.westga.edu
 * extras: mirror.cs.uwp.edu
 * updates: centos.mirrors.tds.net
Available Packages
Name        : kmod-drbd90
Arch        : x86_64
Version     : 9.0.9
Release     : 1.el7_4.elrepo
Size        : 258 k
Repo        : elrepo
Summary     : drbd90 kernel module(s)
URL         : http://www.drbd.org/
License     : GPLv2
Description : This package provides the drbd90 kernel module(s) built
            : for the Linux kernel using the x86_64 family of processors.


On Sat, Sep 16, 2017 at 9:17 AM, Trevor Hemsley <themsley at voiceflex.com>
wrote:

> Why not just use kmod-drbd90 from ELRepo?
>
>
> On 16/09/17 13:35, T.J. Yang wrote:
>
> 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
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
>
> _______________________________________________
> drbd-user mailing listdrbd-user at lists.linbit.comhttp://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>


-- 
T.J. Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170916/0e9b7e05/attachment.htm>


More information about the drbd-user mailing list