Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2023 11:34:17 +0100 (CET)
From:      Wojciech Puchar <wojtek@puchar.net>
To:        freebsd-hackers@FreeBSD.org
Subject:   problem linking kernel
Message-ID:  <ecd851ce-5372-9671-508-8b56592fc1e@puchar.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
i get this linking my custom kernel. No errors until link

linking kernel
ld: dynamic STT_GNU_IFUNC symbol `rdtsc_ordered' with pointer equality in `cpu_machdep.o' can not be used when making an executable; recompile with -fPIE and relink with -pie


kernel config attached, latest FreeBSD-13 downloaded today.

can you help?
[-- Attachment #2 --]
cpu		HAMMER
ident		puchar

makeoptions	CONF_CFLAGS="-DGPT_MAX_DEPTH=2 -DBKVASIZE=32768"
makeoptions	MODULES_OVERRIDE="usb geom vmm cc linux_common linprocfs linsysfs"
#options		MAXMEMDOM=64
options 	SCHED_ULE		# ULE scheduler
options		NUMA
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options		NETLINK
options		VIMAGE
options		IPSEC
options		IPSEC_SUPPORT
options		MAXPHYS=4194304
options		ACCEPT_FILTER_DATA
options		ACCEPT_FILTER_HTTP
options		ACCEPT_FILTER_DNS
options		EFIRT
options 	FFS			# Berkeley Fast Filesystem
options		FUSEFS
options		QUOTA
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_DIRHASH		# Improve performance on big directories
options		UFS_ACL
options 	PSEUDOFS		# Pseudo-filesystem framework
options         FIB_ALGO                # Modular fib lookups
options         TCP_OFFLOAD             # TCP offload 
options         TCP_BLACKBOX            # Enhanced TCP event logging 
options         TCP_HHOOK               # hhook(9) framework for TCP 
options         TCP_RFC7413             # TCP Fast Open options		GEOM_PART_GPT
options         SCTP_SUPPORT            # Allow kldload of SCTP 
options		GEOM_LABEL
options		GEOM_MIRROR
options		GEOM_ELI
options		TMPFS
options		FDESCFS
options		CD9660
options		MSDOSFS
options         NFSCL                 # New Network Filesystem Client
options         NFSD                    # New Network Filesystem Server
options         NFSLOCKD                # Network Lock Manager
options		PROCFS
options		NULLFS
options		UNIONFS
options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	COMPAT_FREEBSD9		# Compatible with FreeBSD7
options 	COMPAT_FREEBSD10
options		COMPAT_FREEBSD11
options         COMPAT_FREEBSD12        # Compatible with FreeBSD12 
options         COMPAT_LINUX32
options         LINPROCFS
options         LINSYSFS
options 	SCSI_DELAY=2000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options		RCTL
options		RACCT
options		DIRECTIO
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
device		hwpmc
#options 	AUDIT			# Security event auditing
#options 	MAC			# TrustedBSD MAC Framework
#options 	KDTRACE_FRAME		# Ensure frames are compiled in
#options 	KDTRACE_HOOKS		# Kernel DTrace hooks
#options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
#options 	KDB			# Kernel debugger related code
#options 	KDB_TRACE		# Print a stack trace for a panic


# Make an SMP-capable kernel by default
options 	SMP			# Symmetric MultiProcessor Kernel
options         EARLY_AP_STARTUP 
options		IPFIREWALL                                                                               
options		IPFIREWALL_VERBOSE                                                                       
options		IPFIREWALL_VERBOSE_LIMIT=25 
options		IPFIREWALL_DEFAULT_TO_ACCEPT                  
options		IPFIREWALL_NAT
options		LIBALIAS
options		IPDIVERT
options		DUMMYNET


# CPU frequency control
device		cpufreq
device		cpuctl
device		coretemp

# Bus support.
device		acpi
device          smbios
options         IOMMU 
options         PCI_HP                  # PCI-Express native HotPlug 
options         PCI_IOV                 # PCI SR-IOV support 
device		pci
options         PPS_SYNC 
device		ahci		# AHCI-compatible SATA controllers
device		mrsas
options         ATA_STATIC_ID 
device		scbus		# SCSI bus (required for ATA/SCSI)
device		da		# Direct Access (disks)
device		ses
device		ada
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct ATA/SCSI access)
device		nvme
device		nvd


device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver
device		vt
device		vt_vga
device		vt_efifb

device          bge
device		miibus
device		vlan

device		loop		# Network loopback
device		ether		# Ethernet support
device		tuntap		# Packet tunnel.
device		gif
device		nmdm
device		bridge
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"
device		crypto
device		cryptodev
device		aesni
device		rdrand_rng
device		uart
device		ipmi
device		smbus
device		iicsmb
device		iic
device		iicbus
device		iicbb
device		smb
device		bpf		# Berkeley packet filter
device		snp

# USB support
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		xhci
device		usb		# USB Bus (required)
device		umass
device		ukbd
device		ums
device		uhid
device		hid


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ecd851ce-5372-9671-508-8b56592fc1e>