From: Don Zickus on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2749#note_1612950237

@vmalikrh thanks for the fixes!  I tried your suggestions and got this new
error:

```plaintext
+ /usr/bin/make -s 'HOSTCFLAGS=-O2  -fexceptions -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Werror=implicit-function-declaration
-Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -
specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -march=x86-64-v3
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-
protection   ' 'HOSTLDF
LAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1
-specs=/usr/lib/rpm/redhat/redhat-package-notes ' -j8 'TPROGS_USER_CFLAGS=-O2
-fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security
-Werror=implicit-function-declaration -Werror=implicit-int
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-har
dened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-
cc1  -m64  -march=x86-64-v3 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection   ' 'TPROGS_USER_LDFLAGS=-Wl,-z,relro
-Wl,--as-n
eeded  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1
-specs=/usr/lib/rpm/redhat/redhat-package-notes ' 'EXTRA_CFLAGS=-O2
-fexceptions -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Werror=implicit-function-declaration
-Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -sp
ecs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -march=x86-64-v3
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-
protection   ' 'EXTRA_LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat
/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--
build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' ARCH=x86_64
V=1 M=samples/bpf/ VMLINUX_H=
  CLANG-bpf  samples/bpf/sockex1_kern.o
cc1: error: code model kernel does not support PIC mode
make[2]: *** [scripts/Makefile.build:116: samples/bpf/syscall_nrs.s] Error 1
make[2]: *** Waiting for unfinished jobs....

```

Removing the EXTRA\_\* removes that error and reverts back to the previous
missing -fPIE warning.  I also somehow messed up my env such that I can't even
build an rpm any more.  I will have to poke at that.
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to