Skip to contentSkip to conversation

cc1: error: code model kernel does not support PIC mode

DISCUSSION zared kamal 2 participants 2 messages Nov 3, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

dear sir,sources:
xenomai 3.0.8
linux-4.1.18ipipe-4.1.18
i try to compile the kernel with command make && make moules_install installbut i get the error [sudo] password for sicom3:
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
cc1: error: code model kernel does not support PIC mode
Kbuild:43: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:990: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

many thanks for your helpbest regards
Zared Kamal
Département de Génie Electrique,Laboratoire Signaux Systèmes & Composants Faculté des Sciences & Techniques, BP 2202, 30000 Fès   http://www.fstusmba.ac.ma/e-mail [email protected], [email protected]

#2 lore raw
Quoted 6 lines · zared kamal via Xenomai

dear sir,sources:
xenomai 3.0.8
linux-4.1.18ipipe-4.1.18
i try to compile the kernel with command make && make moules_install installbut i get the error [sudo] password for sicom3:
  CHK     include/config/kernel.release

Quoted 9 lines

  CHK     include/generated/uapi/linux/version.h CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
cc1: error: code model kernel does not support PIC mode Kbuild:43: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 Makefile:990: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

4.1 is long dead. What prevents you from using a currently supported kernel and Xenomai version? BTW, your Xenomai release is not latest in its stable series as well.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux