Probleme beim kompilieren des Kernel

aequitaz

Active Member
Hi

habe ein Problem beim Kernel kompilieren, wenn ich
make depend && make && make install ausführe erscheint ein
warning 1887:9 error code 1 "/*" within comment.
könnt ihr mir helfen? wäre echt cool !!!!

thx im vorraus

ps. wenn ihr noch weitere Info`s braucht sprecht mich an
 
Wenn Du schon die alte Methode nutzt (welche Version von FreeBSD ist es?), dann solltest Du diese aber auch vollständig einsetzen ;-).

Wie wäre es mit einem:

"config $MEINE_KERNELCONF" vor dem make depend?

Ansonsten binde die Befehle nicht aneinander, so führe einen nach dem anderen manuell aus, damit man sieht welche Mist baut.

Falls Du "config" auch ausgeführt hast, es aber vergessen hast hier zu posten, dann bitte poste mal Deine Kernelconfig.
Probiere davor bitte die neue Methode des Kernel kompilierens aus:

#cd /usr/src
#make buildkernel KERNCONF=$DEINE_KERNELCONF
#make installkernel KERNCONF=$DEINE_KERNELCONF
 
das mit dem aneinanderreihen mit && dürfte keine probleme machen (mach ich auch immer so)

wenn ein befehl nen error auswirft macht er ja beim nächsten nicht weiter und bricht an dieser stelle ab - so sieht man ja dann auch sofort wo der fehler passiert ist
 
Sicher kann man die Befehle aneinanderreihen. Aber für die Fehlersuche ist es einfacher einen nach den anderen aufzurufen. Da der Fehler ja nicht immer sofort bei Eingabe des Befehls kommt, kann es schwierig sein die Stelle zu finden wo der neue Befehl automatisch aufgerufen wurde. Dies kann einem bei manueller Eingabe nicht passieren, da weiss man sofort, ahja, das und das funktioniert nicht.
 
habe alles schon einmal ausprobiert (die alte Methode ohne den & und die neue Methode ) ohne erfolg. Eine Warnung kommt beim ausführen des Befehls make depend und der Stop erfolgt beim make.
Auch wenn ich den MyKernel ohne zu bearbeiten kompiliere kommt der Fehler.
Meine Kernel config kommt sofort.
 
so hier mein Kernel

machinei386
cpuI686_CPU
ident GENERIC
maxusers0

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

#makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols

options INET #InterNETworking
options INET6 #IPv6 communications protocols
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 NFSSERVER#Network Filesystem Server
options NFS_ROOT#NFS usable as root device, requires NFSCLIENT
options MSDOSFS#MSDOS Filesystem
options CD9660#ISO 9660 Filesystem
options PROCFS#Process filesystem (requires PSEUDOFS)
options PSEUDOFS#Pseudo-filesystem framework
options COMPAT_43#Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4#Compatible with FreeBSD4
#options SCSI_DELAY=15000#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 AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output. Adds ~215k to driver.

# Debugging for use in -current
#options DDB#Enable the kernel debugger
#options INVARIANTS#Enable calls of extra sanity checking
options INVARIANT_SUPPORT#Extra sanity checks of internal structures, required by INVARIANTS
#options WITNESS#Enable checks to detect deadlocks and cycles
#options WITNESS_SKIPSPIN#Don't run witness on spinlocks for speed

# To make an SMP kernel, the next two are needed
#options SMP# Symmetric MultiProcessor Kernel
#options APIC_IO# Symmetric (APIC) I/O

deviceisa
deviceeisa
devicepci

# Floppy drives
devicefdc

# ATA and ATAPI devices
deviceata
deviceatadisk# ATA disk drives
deviceatapicd# ATAPI CDROM drives
deviceatapifd# ATAPI floppy drives
deviceatapist# ATAPI tape drives
options ATA_STATIC_ID#Static device numbering


# atkbdc0 controls both the keyboard and the PS/2 mouse
deviceatkbdc# AT keyboard controller
deviceatkbd# AT keyboard
devicepsm# PS/2 mouse

devicevga# VGA video card driver

devicesplash# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
devicesc

# Enable this for the pcvt (VT220 compatible) console driver
#devicevt
#options XSERVER# support for X server on a vt console
#options FAT_CURSOR# start with block cursor

#deviceagp# support several AGP chipsets

# Floating point support - do not disable.
devicenpx

# Power management support (see NOTES for more options)
#deviceapm
# Add suspend/resume support for the i8254.
devicepmtimer


# Serial (COM) ports
devicesio# 8250, 16[45]50 based serial ports

# Parallel port
deviceppc
deviceppbus# Parallel port bus (required)
devicelpt# Printer
deviceplip# TCP/IP over parallel
deviceppi# Parallel port interface device
#devicevpo# Requires scbus and da


# PCI Ethernet NICs.
devicede# DEC/Intel DC21x4x (``Tulip'')
deviceem# Intel PRO/1000 adapter Gigabit Ethernet Card
devicetxp# 3Com 3cR990 (``Typhoon'')
devicevx# 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
devicemiibus# MII bus support
devicerl# RealTek 8129/8139

# ISA Ethernet NICs. pccard nics included.
devicecs# Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
deviceed# NE[12]000, SMC Ultra, 3c503, DS8390 cards
deviceex# Intel EtherExpress Pro/10 and Pro/10+
deviceep# Etherlink III based cards
devicefe# Fujitsu MB8696x based cards
devicelnc# NE2100, NE32-VL Lance Ethernet cards
devicesn# SMC's 9000 series of ethernet chips
devicexe# Xircom pccard ethernet

# ISA devices that use the old ISA shims
#devicele

# Pseudo devices - the number indicates how many units to allocate.
devicerandom# Entropy device
deviceloop# Network loopback
deviceether# Ethernet support
devicesl# Kernel SLIP
deviceppp# Kernel PPP
devicetun# Packet tunnel.
devicepty# Pseudo-ttys (telnet etc)
devicemd# Memory "disks"
devicegif# IPv6 and IPv4 tunneling
devicefaith# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
devicebpf# Berkeley packet filter

# USB support
deviceuhci# UHCI PCI->USB interface
deviceohci# OHCI PCI->USB interface
deviceusb# USB Bus (required)
#deviceudbp# USB Double Bulk Pipe devices
deviceugen# Generic
deviceuhid# "Human Interface Devices"
deviceukbd# Keyboard
deviceulpt# Printer
deviceumass# Disks/Mass storage - Requires scbus and da
deviceums# Mouse
deviceurio# Diamond Rio 500 MP3 player
deviceuscanner# Scanners
# USB Ethernet, requires mii
deviceaue# ADMtek USB ethernet
devicecue# CATC USB ethernet
devicekue# Kawasaki LSI USB ethernet
 
hier nochmal die genaue Fehlermeldung:

../../../dev/if_ed.c:1887:9: "/*" within comment
*** Error code 1

Stop in /usr/src/sys/i386/compile/MyKernel
 
Gut, es handelt sich also um if_ed, was wiederum einfach "ed" ist, bzw. in der Kernelconfig "device ed" und "device miibus". Diese beiden MÜSSEN zusammen auftauchen, was sie auch tun in Deiner Kernelconfig.

Die Fehlermeldung "./../../dev/if_ed.c:1887:9: "/*" within comment" lässt auf einen Fehler im source code von if_ed.c schliessen.
Hmm bei mir sieht die Zeile 1887 gut aus. " */" mehr nicht ;-), wenn ich das wiederum richtig deute.

Bei Dir stimmt was am source code von if_ed.c nicht, würde ich mal behaupten. Wann war Dein letzter cvsup lauf?
Update mal Deine sourcen, bzw. nur diese Datei.
Oder schau in den source code, den Pfad hat er Dir ja gesagt...
 
Hmmm, wenn ich mir CVS so ansehe, dann war die letzte Änderung von if_ed.c vor 12 Tagen....
Evtl. liege ich mit meiner Behauptung falsch, aber ich kann die Fehlermeldung nicht anders deuten, wenn er schon diese bestimmte Datei bemängelt. Seltsam.
 
GRMPF.
Hmm, und die config sieht ja auch gut aus, zumindest habe ich nichts übersehen, so glaube ich es zumindest, was den Fehler bei Dir verursachen könnte. Man man man.

ISt das der GENERIC Kernel? Die GENERIC config? Wenn nein, dann probiere diese mal aus, ob es damit geht. Wenn ja, dann sollte der Fehler in Deiner kernel config liegen....
 
Will eigentlich nicht das System neu machen.
naja mal sehen vielleicht finde ich ja noch die Lösung, kann es dir dann
ja schreiben .

trotzdem thx
 
hab zwar laenger nix mehr mit fbsd gemacht aber so ganz der Generic Kernel is das ja nicht mehr.
Warum laesst du die NICs alle drin enfernst aber die SCSI Sachen?
Das mit dem USB Kram macht auch nicht recht Sinn, denke ich mal so ( hab nur nen Wacom Tablett in USB un das funzt eh net unter Linux oder BSD wie ich das mag).

Grunix hat schon recht wenn er sagt mach die Kiste neu.

Du kannst noch 10Tage ueber dem Prob brueten und es kommt eh nix bei raus.
Ne neue Install is doch fix gemacht, supfile is eh fertisch (refuse File auch :) und dann haarklein an den Text halten.

Ich hab das noch net mit fbsd ver. 5 (du hast doch die 5er?) gemacht aber ich denke das sollte auch funzen wie mit der 4.7er.
 
Ich habe FreeBSD 5.0 und habe auch keine andere Lösung gefunden.
Ich mußte das System neu machen und jetzt geht wieder alles .

Thx nochmal
 
Zurück
Oben