Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2007 19:25:58 +0100
From:      "Jurjen Middendorp" <jurjenm@stack.nl>
To:        freebsd-questions@freebsd.org
Subject:   How did i destroy my fpc compiler + compiled binaries?
Message-ID:  <20070203182558.GA3036@jurjenm.stack.nl>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello, i have a very weird problem and am not sure what is wrong. I have
deinstalled my fpc compiler a while ago, but i wanted to install it again
today, but make-ing the port failed with some errors... not sure where to
send it to or what those errors mean, so i'll put them at the end of the
e-mail. If anyone knows what's wrong i'd like to hear it!

I have a slightly weirder problem though, all of the programs i compiled with
the freepascal compiler are failing mysteriously! I haven't run any of them
in awhile but all of them fail with the following message: "Bad system call:
12 (core dumped)". I'm not very sure what's wrong.  If i try to add the
freepascal compiler as a binary (with pkg-add -r fpc) it gives the same
message, so maybe it's an fpc problem. On the other hand those binaries used
to work, so maybe i screwed something up :)

I upgraded to stable a while ago and decided to remove some stuff from my
kernel config in the process, i think that maybe i removed a litle too much?
If anyone knows what is wrong or what i can do to get more information on
this problem please let me know! Maybe the problem is that i commented out
the compat-4 and compat-5 freebsd options? i thought i didn't needed them,
but maybe freepascal is a litle old? Most of the stuff i changed was removing
things i didn't have on my computer anyway, so that is the only thing i can
think of that could have broken fpc.

greetings, jurjen.


Here is the error i get from building the lang/fpc port. My kernel config
is below there :)

[root@jurjen ~]# uname -a
FreeBSD jurjen 6.2-STABLE FreeBSD 6.2-STABLE #8: Sat Feb  3 16:30:58 CET 2007    
      jurjen@jurjen:/usr/obj/usr/src/sys/JURJEN  i386

[root@jurjen /usr/ports/lang/fpc]# make
===>  Building for fpc-2.0.4_1
gmake tempclean ppc3.exe
gmake[1]: Entering directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
/bin/rm -f ppcross ppc ppc1.exe ppc2.exe ppc3.exe ./msg2inc.exe
gmake 'OLDFPC=' next
gmake[2]: Entering directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
gmake rtlclean rtl
gmake[3]: Entering directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
gmake -C  clean
gmake: Entering an unknown directory
gmake: *** clean: No such file or directory.  Stop.
gmake: Leaving an unknown directory
gmake[3]: *** [rtlclean] Error 2
gmake[3]: Leaving directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
gmake[2]: *** [next] Error 2
gmake[2]: Leaving directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
gmake[1]: *** [ppc1.exe] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/fpc/work/fpcbuild_2.0.4_exp/fpcsrc/compiler'
gmake: *** [cycle] Error 2
*** Error code 2


here is my kernel config file:

machine		i386
cpu		I686_CPU
options		SMP
ident		JURJEN

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look for devices.

options 	SCHED_4BSD		# 4BSD scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
#options 	INET6			# IPv6 communications protocols
option   IPSEC
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
#options 	MD_ROOT			# MD is a potential root device
options 	NFSCLIENT		# Network Filesystem Client
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
#options 	GEOM_GPT		# GUID Partition Tables.
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
#options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
#options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
#options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) 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 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	ADAPTIVE_GIANT		# Giant mutex is adaptive.

device		apic			# I/O APIC
device		npx			#floating point support

#Pseudo devices
device		mem			# Memory and kernel memory devices
device		io			# I/O device

# Bus support.
device		eisa
device		pci
device      isa
device		agp

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
device		atapicd		# ATAPI CDROM drives
device      cd

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse
#device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver
options     VESA     #video
device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

# PCMCIA and cardbus bridge support
device		pccard		# PC Card (16-bit) bus
device		cardbus		# CardBus (32-bit) bus

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
#device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device

# PCI Ethernet NICs.
device		miibus		# MII bus support
device		em		# Intel PRO/1000 adapter Gigabit Ethernet Card

# Wireless NIC cards
device		wlan		# 802.11 support
device		wlan_wep	# 802.11 WEP support
device		wlan_tkip	# 802.11 TKIP support
device		ath		# Atheros pci/cardbus NIC's
device		ath_hal		# Atheros HAL (Hardware Access Layer)
device		ath_rate_sample	# SampleRate tx rate control for ath

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
device		ether		# Ethernet support
device		sl		# Kernel SLIP
device		ppp		# Kernel PPP
#device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (XTERM)

# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
#device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
#device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse

#for umass
device 		scbus
device		da

#stuff
options		COMPAT_LINUX	#Linux binary compatibility

#firewall
options IPFIREWALL
options IPFIREWALL_VERBOSE



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070203182558.GA3036>