The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"не компилится новое ядро на FreeBSD 7"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Открытые системы на рабочей станции (Драйверы, оборудование / FreeBSD)
Изначальное сообщение [ Отслеживать ]

"не компилится новое ядро на FreeBSD 7"  +/
Сообщение от jourjine (ok) on 29-Фев-08, 02:18 
в make.conf подправлен тип процессора - Core
и -O2 заменен на -O3

Мать - Intel® Desktop Board D201GLY2
Фря 6.3 работала без проблем, вернее с проблемами, но не этими....


antares# lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 662 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port (virtual PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS964 [MuTIOL Media IO] (rev 36)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA (rev 01)
00:06.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
00:1f.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter (rev 04)

файл кофигурации иоего ядра, GENERIC тоже не компилится, только с другой ошибкой


cpu        I686_CPU
ident        Antares-I

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

options     SCHED_4BSD        # 4BSD scheduler
options     PREEMPTION        # Enable kernel thread preemption
options     INET            # InterNETworking
#options     INET6            # IPv6 communications protocols
options     SCTP            # Stream Control Transmission Protocol
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     UFS_GJOURNAL        # Enable gjournal-based UFS journaling
#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 /, requires NFSCLIENT
options     MSDOSFS            # MSDOS Filesystem
options     CD9660            # ISO 9660 Filesystem
options     PROCFS            # Process filesystem (requires PSEUDOFS)
options     PSEUDOFS        # Pseudo-filesystem framework
options     GEOM_PART_GPT        # GUID Partition Tables.
options     GEOM_LABEL        # Provides labelization
options     COMPAT_43TTY        # BSD 4.3 TTY compat [KEEP THIS!]
options     COMPAT_FREEBSD4        # Compatible with FreeBSD4
options     COMPAT_FREEBSD5        # Compatible with FreeBSD5
options     COMPAT_FREEBSD6        # Compatible with FreeBSD6
#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.
options     STOP_NMI        # Stop CPUS using NMI instead of IPI
options     AUDIT            # Security event auditing
#options        IPFILTER        # С ИПфильтром тоже не компилится.
#options        IPFILTER_LOG

# To make an SMP kernel, the next two lines are needed
#options     SMP            # Symmetric MultiProcessor Kernel
device        apic            # I/O APIC

# CPU frequency control
device        cpufreq

# Bus support.
#device        eisa
device        pci

# Floppy drives
#device        fdc

# ATA and ATAPI devices
device        ata
device        atadisk        # ATA disk drives
#device        ataraid        # ATA RAID drives
device        atapicd        # ATAPI CDROM drives
#device        atapifd        # ATAPI floppy drives
#device        atapist        # ATAPI tape drives
options     ATA_STATIC_ID    # Static device numbering


# SCSI peripherals
device        scbus        # SCSI bus (required for SCSI)
device        ch        # SCSI media changers
device        da        # Direct Access (disks)
#device        sa        # Sequential Access (tape etc)
#device        cd        # CD
device        pass        # Passthrough device (direct SCSI access)
#device        ses        # SCSI Environmental Services (and SAF-TE)


# 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

device        splash        # Splash screen and screen saver support

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

device        agp        # support several AGP chipsets

# Power management support (see NOTES for more options)
#device        apm
# Add suspend/resume support for the i8254.
device        pmtimer


# PCI Ethernet NICs.
#device        de        # DEC/Intel DC21x4x (``Tulip'')
device        em        # Intel PRO/1000 adapter Gigabit Ethernet Card
#device        ixgb        # Intel PRO/10GbE Ethernet Card
#device        le        # AMD Am7900 LANCE and Am79C9xx PCnet
#device        txp        # 3Com 3cR990 (``Typhoon'')
#device        vx        # 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!
device        miibus        # MII bus support
device        sis        # Silicon Integrated Systems SiS 900/SiS 7016

# 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 (telnet etc)
device        md        # Memory "disks"
device        gif        # IPv6 and IPv4 tunneling
#device        faith        # IPv6-to-IPv4 relaying (translation)
device        firmware    # firmware assist module

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device        bpf        # Berkeley packet filter

# USB support
device        uhci        # UHCI PCI->USB interface
device        ohci        # OHCI 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
#device        ural        # Ralink Technology RT2500USB wireless NICs
#device        rum        # Ralink Technology RT2501USB wireless NICs
#device        urio        # Diamond Rio 500 MP3 player
#device        uscanner    # Scanners

ошибка при компиляции


cc -c -O3 -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  ../../../dev/em/e1000_ich8lan.c -I../../../dev/em
cc1: warnings being treated as errors
../../../dev/em/e1000_ich8lan.c: In function 'e1000_read_nvm_ich8lan':
../../../dev/em/e1000_ich8lan.c:1031: warning: 'word' may be used uninitialized in this function
*** Error code 1

что это такое? где капать?
Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "не компилится новое ядро на FreeBSD 7"  +/
Сообщение от Xavier on 29-Фев-08, 10:52 
>в make.conf подправлен тип процессора - Core
>и -O2 заменен на -O3

Для начала можно попробовать отключить оптимизацию, или хотя бы снизить до -O1.
Не получится - ковыряй исходники файла e1000_ich8lan.c :)

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "не компилится новое ядро на FreeBSD 7"  +/
Сообщение от jourjine (ok) on 29-Фев-08, 12:15 
>>в make.conf подправлен тип процессора - Core
>>и -O2 заменен на -O3
>
>Для начала можно попробовать отключить оптимизацию, или хотя бы снизить до -O1.
>
>Не получится - ковыряй исходники файла e1000_ich8lan.c :)

отключил оптимизацию -O

прошел make depend,(раньше затык был на нем) но появился затык на make -
ошибка в clock.c:432 error: 'IO_RTC' underclared (first use in this function)


ЗЫ
генерик вывалился по той же причине в том же месте

Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

3. "это баг или что?"  +/
Сообщение от jourjine (ok) on 29-Фев-08, 17:35 

>ошибка в clock.c:432 error: 'IO_RTC' underclared (first use in this function)
>

небыло описания IO_RTC, нашел файл iso.h в нем есть описание этой переменой

добавил в clock.c
#include "isa.h"

компиляция пошла... но теперь подобное дело вылезло уже в другом месте....



md.o(.text+0xd84): In function `md_kthread':
../../../dev/md/md.c:694: undefined reference to `sched_prio'
geom_kern.o(.text+0x22b): In function `g_down_procbody':
../../../geom/geom_kern.c:115: undefined reference to `sched_prio'
geom_kern.o(.text+0x29b): In function `g_up_procbody':
../../../geom/geom_kern.c:92: undefined reference to `sched_prio'
geom_kern.o(.text+0x30b): In function `g_event_procbody':
../../../geom/geom_kern.c:138: undefined reference to `sched_prio'
init_main.o(.text+0x85): In function `kick_init':
../../../kern/init_main.c:751: undefined reference to `sched_add'
init_main.o(.text+0x968): In function `proc0_init':
../../../kern/init_main.c:391: undefined reference to `schedinit'
ksched.o(.text+0xd0): In function `ksched_yield':
../../../kern/ksched.c:220: undefined reference to `sched_relinquish'
ksched.o(.text+0x25c): In function `ksched_attach':
../../../kern/ksched.c:63: undefined reference to `sched_rr_interval'
kern_acct.o(.text+0x253): In function `acct_thread':
../../../kern/kern_acct.c:621: undefined reference to `sched_prio'
kern_clock.o(.text+0x31d): In function `statclock':
../../../kern/kern_clock.c:469: undefined reference to `sched_clock'
kern_clock.o(.text+0x51d): In function `hardclock_cpu':
../../../kern/kern_clock.c:225: undefined reference to `sched_tick'
kern_cpu.o(.text+0x2198): In function `cf_set_method':
../../../kern/kern_cpu.c:316: undefined reference to `sched_bind'
kern_cpu.o(.text+0x228b):../../../kern/kern_cpu.c:322: undefined reference to `sched_unbind'
kern_cpu.o(.text+0x23b1):../../../kern/kern_cpu.c:340: undefined reference to `sched_bind'
kern_cpu.o(.text+0x24ab):../../../kern/kern_cpu.c:346: undefined reference to `sched_unbind'
kern_exit.o(.text+0x26c2): In function `exit1':
../../../kern/kern_exit.c:520: undefined reference to `sched_exit'
kern_fork.o(.text+0x18a): In function `fork_exit':
../../../kern/kern_fork.c:763: undefined reference to `sched_fork_exit'
kern_fork.o(.text+0x617): In function `fork1':
../../../kern/kern_fork.c:262: undefined reference to `sched_newproc'
kern_fork.o(.text+0xa66):../../../kern/kern_fork.c:413: undefined reference to `sched_fork'
kern_fork.o(.text+0x1b54):../../../kern/kern_fork.c:695: undefined reference to `sched_add'
kern_idle.o(.text+0x33): In function `idle_setup':
../../../kern/kern_idle.c:67: undefined reference to `sched_idletd'
kern_idle.o(.text+0x10f):../../../kern/kern_idle.c:80: undefined reference to `sched_class'
kern_idle.o(.text+0x11f):../../../kern/kern_idle.c:81: undefined reference to `sched_prio'
kern_intr.o(.text+0x1a0): In function `intr_event_schedule_thread':
../../../kern/kern_intr.c:711: undefined reference to `sched_add'
kern_intr.o(.text+0x289): In function `ithread_update':
../../../kern/kern_intr.c:177: undefined reference to `sched_prio'
kern_intr.o(.text+0x8f2): In function `intr_event_add_handler':
../../../kern/kern_intr.c:346: undefined reference to `sched_class'
kern_intr.o(.text+0x1006): In function `intr_event_destroy':
../../../kern/kern_intr.c:392: undefined reference to `sched_add'
kern_kse.o(.text+0x1f2): In function `thread_schedule_upcall':
../../../kern/kern_kse.c:1046: undefined reference to `sched_fork_thread'
kern_kse.o(.text+0xa27): In function `thread_switchout':
../../../kern/kern_kse.c:1131: undefined reference to `sched_add'
kern_kse.o(.text+0x3252): In function `kse_create':
../../../kern/kern_kse.c:756: undefined reference to `sched_add'
kern_kse.o(.text+0x33ba):../../../kern/kern_kse.c:791: undefined reference to `sched_add'
kern_kthread.o(.text+0x66b): In function `kthread_create':
../../../kern/kern_kthread.c:117: undefined reference to `sched_add'
kern_malloc.o(.text+0x2d8): In function `malloc_type_freed':
../../../kern/kern_malloc.c:281: undefined reference to `critical_enter'
kern_malloc.o(.text+0x309):../../../kern/kern_malloc.c:286: undefined reference to `critical_exit'
kern_malloc.o(.text+0x407): In function `malloc_type_zone_allocated':
../../../kern/kern_malloc.c:249: undefined reference to `critical_enter'
kern_malloc.o(.text+0x45d):../../../kern/kern_malloc.c:258: undefined reference to `critical_exit'
kern_proc.o(.text+0x9f8): In function `fill_kinfo_thread':
../../../kern/kern_proc.c:817: undefined reference to `sched_pctcpu'
kern_proc.o(.text+0x1607): In function `procinit':
../../../kern/kern_proc.c:119: undefined reference to `sched_sizeof_proc'
kern_resource.o(.text+0x135d): In function `rtp_to_pri':
../../../kern/kern_resource.c:505: undefined reference to `sched_class'
kern_resource.o(.text+0x1373):../../../kern/kern_resource.c:507: undefined reference to `sched_user_prio'
kern_resource.o(.text+0x1397):../../../kern/kern_resource.c:509: undefined reference to `sched_prio'
kern_resource.o(.text+0x14bb): In function `donice':
../../../kern/kern_resource.c:268: undefined reference to `sched_nice'
kern_sig.o(.text+0x34a8): In function `tdsigwakeup':
../../../kern/kern_sig.c:2369: undefined reference to `sched_prio'
kern_sig.o(.text+0x359b):../../../kern/kern_sig.c:2403: undefined reference to `sched_prio'
kern_subr.o(.text+0x57c): In function `uio_yield':
../../../kern/kern_subr.c:458: undefined reference to `sched_prio'
kern_synch.o(.text+0x8): In function `loadav':
../../../kern/kern_synch.c:514: undefined reference to `sched_load'
kern_synch.o(.text+0x114): In function `setrunnable':
../../../kern/kern_synch.c:499: undefined reference to `sched_wakeup'
kern_synch.o(.text+0x253): In function `mi_switch':
../../../kern/kern_synch.c:442: undefined reference to `sched_switch'
kern_synch.o(.text+0x2e6): In function `yield':
../../../kern/kern_synch.c:558: undefined reference to `sched_prio'
kern_synch.o(.text+0x69b): In function `_sleep':
../../../kern/kern_synch.c:217: undefined reference to `sched_prio'
kern_thr.o(.text+0x57e): In function `create_thread':
../../../kern/kern_thr.c:236: undefined reference to `sched_fork_thread'
kern_thr.o(.text+0x65c):../../../kern/kern_thr.c:245: undefined reference to `sched_prio'
kern_thr.o(.text+0x676):../../../kern/kern_thr.c:250: undefined reference to `sched_add'
kern_thread.o(.text+0x2ca): In function `thread_suspend_one':
../../../kern/kern_thread.c:896: undefined reference to `sched_sleep'
kern_thread.o(.text+0x374): In function `thread_suspend_switch':
../../../kern/kern_thread.c:876: undefined reference to `sched_sleep'
kern_thread.o(.text+0x7af): In function `thread_exit':
../../../kern/kern_thread.c:453: undefined reference to `sched_exit_thread'
kern_thread.o(.text+0x91a):../../../kern/kern_thread.c:494: undefined reference to `sched_throw'
kern_thread.o(.text+0xb0c): In function `threadinit':
../../../kern/kern_thread.c:254: undefined reference to `sched_sizeof_thread'
kern_thread.o(.text+0x110a): In function `thread_wait':
../../../kern/kern_thread.c:526: undefined reference to `sched_relinquish'
kern_thread.o(.text+0x156b): In function `thread_init':
../../../kern/kern_thread.c:190: undefined reference to `sched_newthread'
kern_thread.o(.text+0x1993): In function `thread_dtor':
../../../kern/kern_thread.c:173: undefined reference to `sched_newthread'
kern_umtx.o(.text+0x6f6): In function `umtx_propagate_priority':
../../../kern/kern_umtx.c:1275: undefined reference to `sched_lend_user_prio'
kern_umtx.o(.text+0x1363): In function `do_unlock_umutex':
../../../kern/kern_umtx.c:1802: undefined reference to `sched_unlend_user_prio'
kern_umtx.o(.text+0x18e5):../../../kern/kern_umtx.c:2037: undefined reference to `sched_unlend_user_prio'
kern_umtx.o(.text+0x229c): In function `_do_lock_umutex':
../../../kern/kern_umtx.c:1371: undefined reference to `sched_lend_user_prio'
kern_umtx.o(.text+0x2bec):../../../kern/kern_umtx.c:1318: undefined reference to `sched_unlend_user_prio'
kern_umtx.o(.text+0x3129):../../../kern/kern_umtx.c:1870: undefined reference to `sched_lend_user_prio'
kern_umtx.o(.text+0x3406):../../../kern/kern_umtx.c:1927: undefined reference to `sched_unlend_user_prio'
kern_umtx.o(.text+0x351c):../../../kern/kern_umtx.c:1946: undefined reference to `sched_unlend_user_prio'
p1003_1b.o(.text+0x300): In function `sched_yield':
../../../kern/p1003_1b.c:244: undefined reference to `sched_relinquish'
subr_sleepqueue.o(.text+0x13d): In function `sleepq_resume_thread':
../../../kern/subr_sleepqueue.c:678: undefined reference to `sched_prio'
subr_sleepqueue.o(.text+0x5f4): In function `sleepq_switch':
../../../kern/subr_sleepqueue.c:475: undefined reference to `sched_sleep'
subr_taskqueue.o(.text+0x528): In function `taskqueue_start_threads':
../../../kern/subr_taskqueue.c:357: undefined reference to `sched_prio'
subr_taskqueue.o(.text+0x538):../../../kern/subr_taskqueue.c:358: undefined reference to `sched_add'
subr_trap.o(.text+0x113): In function `userret':
../../../kern/subr_trap.c:136: undefined reference to `sched_userret'
subr_trap.o(.text+0x411): In function `ast':
../../../kern/subr_trap.c:237: undefined reference to `sched_prio'
subr_turnstile.o(.text+0x489): In function `propagate_priority':
../../../kern/subr_turnstile.c:237: undefined reference to `sched_lend_prio'
subr_turnstile.o(.text+0x7c1): In function `turnstile_disown':
../../../kern/subr_turnstile.c:986: undefined reference to `sched_unlend_prio'
subr_turnstile.o(.text+0x921): In function `turnstile_unpend':
../../../kern/subr_turnstile.c:913: undefined reference to `sched_unlend_prio'
subr_turnstile.o(.text+0x9d3):../../../kern/subr_turnstile.c:936: undefined reference to `sched_add'
subr_turnstile.o(.text+0xf52): In function `turnstile_claim':
../../../kern/subr_turnstile.c:655: undefined reference to `sched_lend_prio'
tty.o(.text+0x1344): In function `proc_sum':
../../../kern/tty.c:2669: undefined reference to `sched_pctcpu'
tty.o(.text+0x26b2): In function `ttyinfo':
../../../kern/tty.c:2693: undefined reference to `sched_pctcpu'
tty.o(.text+0x2716):../../../kern/tty.c:2697: undefined reference to `sched_pctcpu'
tty.o(.text+0x28fa):../../../kern/tty.c:2612: undefined reference to `sched_pctcpu'
uipc_syscalls.o(.text+0x3c1): In function `sctp_generic_recvmsg':
../../../kern/uipc_syscalls.c:2608: undefined reference to `sctp_sorecvmsg'
uipc_syscalls.o(.text+0x2192): In function `sctp_generic_sendmsg_iov':
../../../kern/uipc_syscalls.c:2486: undefined reference to `sctp_lower_sosend'
uipc_syscalls.o(.text+0x248d): In function `sctp_generic_sendmsg':
../../../kern/uipc_syscalls.c:2379: undefined reference to `sctp_lower_sosend'
uipc_syscalls.o(.text+0x265c): In function `sctp_peeloff':
../../../kern/uipc_syscalls.c:2246: undefined reference to `sctp_can_peel_off'
uipc_syscalls.o(.text+0x28d0):../../../kern/uipc_syscalls.c:2287: undefined reference to `sctp_do_peeloff'
rtsock.o(.text+0xb7d): In function `rt_newaddrmsg':
../../../net/rtsock.c:897: undefined reference to `sctp_addr_change'
in_proto.o(.data+0xa8): undefined reference to `sctp_input'
in_proto.o(.data+0xb0): undefined reference to `sctp_ctlinput'
in_proto.o(.data+0xb4): undefined reference to `sctp_ctloutput'
in_proto.o(.data+0xbc): undefined reference to `sctp_init'
in_proto.o(.data+0xc8): undefined reference to `sctp_drain'
in_proto.o(.data+0xcc): undefined reference to `sctp_usrreqs'
in_proto.o(.data+0xdc): undefined reference to `sctp_input'
in_proto.o(.data+0xe4): undefined reference to `sctp_ctlinput'
in_proto.o(.data+0xe8): undefined reference to `sctp_ctloutput'
in_proto.o(.data+0xfc): undefined reference to `sctp_drain'
in_proto.o(.data+0x100): undefined reference to `sctp_usrreqs'
in_proto.o(.data+0x110): undefined reference to `sctp_input'
in_proto.o(.data+0x118): undefined reference to `sctp_ctlinput'
in_proto.o(.data+0x11c): undefined reference to `sctp_ctloutput'
in_proto.o(.data+0x130): undefined reference to `sctp_drain'
in_proto.o(.data+0x134): undefined reference to `sctp_usrreqs'
ffs_snapshot.o(.text+0x57f6): In function `ffs_snapshot':
../../../ufs/ffs/ffs_snapshot.c:398: undefined reference to `sched_nice'
ffs_snapshot.o(.text+0x7c58):../../../ufs/ffs/ffs_snapshot.c:820: undefined reference to `sched_nice'
uma_core.o(.text+0x34a9): In function `uma_zfree_arg':
../../../vm/uma_core.c:2283: undefined reference to `critical_enter'
uma_core.o(.text+0x34ea):../../../vm/uma_core.c:2302: undefined reference to `critical_exit'
uma_core.o(.text+0x3511):../../../vm/uma_core.c:2334: undefined reference to `critical_exit'
uma_core.o(.text+0x3557):../../../vm/uma_core.c:2336: undefined reference to `critical_enter'
uma_core.o(.text+0x36f2):../../../vm/uma_core.c:2380: undefined reference to `critical_exit'
uma_core.o(.text+0x3849): In function `uma_zalloc_arg':
../../../vm/uma_core.c:1811: undefined reference to `critical_enter'
uma_core.o(.text+0x3892):../../../vm/uma_core.c:1828: undefined reference to `critical_exit'
uma_core.o(.text+0x3931):../../../vm/uma_core.c:1873: undefined reference to `critical_exit'
uma_core.o(.text+0x3981):../../../vm/uma_core.c:1875: undefined reference to `critical_enter'
uma_core.o(.text+0x3b28):../../../vm/uma_core.c:1917: undefined reference to `critical_exit'
vm_glue.o(.text+0x199): In function `kick_proc0':
../../../vm/vm_glue.c:785: undefined reference to `sched_add'
vm_pageout.o(.text+0x23a6): In function `vm_pageout':
../../../vm/vm_pageout.c:1250: undefined reference to `sched_nice'
vm_zeroidle.o(.text+0x2a9): In function `pagezero_start':
../../../vm/vm_zeroidle.c:162: undefined reference to `sched_class'
vm_zeroidle.o(.text+0x2b9):../../../vm/vm_zeroidle.c:163: undefined reference to `sched_prio'
vm_zeroidle.o(.text+0x2c9):../../../vm/vm_zeroidle.c:164: undefined reference to `sched_add'
intr_machdep.o(.text+0x26d): In function `intr_execute_handlers':
../../../i386/i386/intr_machdep.c:352: undefined reference to `critical_enter'
intr_machdep.o(.text+0x2e1):../../../i386/i386/intr_machdep.c:400: undefined reference to `critical_exit'
local_apic.o(.text+0xc49): In function `lapic_handle_timer':
../../../i386/i386/local_apic.c:671: undefined reference to `critical_enter'
local_apic.o(.text+0xd51):../../../i386/i386/local_apic.c:697: undefined reference to `critical_exit'
machdep.o(.text+0x9cc): In function `spinlock_exit':
../../../i386/i386/machdep.c:2392: undefined reference to `critical_exit'
machdep.o(.text+0xa14): In function `spinlock_enter':
../../../i386/i386/machdep.c:2383: undefined reference to `critical_enter'
machdep.o(.text+0x1e1e): In function `cpu_idle':
../../../i386/i386/machdep.c:1178: undefined reference to `sched_runnable'
pmap.o(.text+0x28fc): In function `pmap_activate':
../../../i386/i386/pmap.c:3554: undefined reference to `critical_enter'
pmap.o(.text+0x299d):../../../i386/i386/pmap.c:3575: undefined reference to `critical_exit'
sys_machdep.o(.text+0xcbf): In function `i386_extend_pcb':
../../../i386/i386/sys_machdep.c:270: undefined reference to `critical_enter'
sys_machdep.o(.text+0xd6a):../../../i386/i386/sys_machdep.c:275: undefined reference to `critical_exit'
sys_machdep.o(.text+0x10c6): In function `sysarch':
../../../i386/i386/sys_machdep.c:175: undefined reference to `critical_enter'
sys_machdep.o(.text+0x114a):../../../i386/i386/sys_machdep.c:178: undefined reference to `critical_exit'
sys_machdep.o(.text+0x11e5):../../../i386/i386/sys_machdep.c:205: undefined reference to `critical_enter'
sys_machdep.o(.text+0x126d):../../../i386/i386/sys_machdep.c:208: undefined reference to `critical_exit'
vm86.o(.text+0x134): In function `vm86_intcall':
../../../i386/i386/vm86.c:570: undefined reference to `critical_enter'
vm86.o(.text+0x143):../../../i386/i386/vm86.c:572: undefined reference to `critical_exit'
vm86.o(.text+0x7d5): In function `vm86_datacall':
../../../i386/i386/vm86.c:603: undefined reference to `critical_enter'
vm86.o(.text+0x7e5):../../../i386/i386/vm86.c:605: undefined reference to `critical_exit'
vm_machdep.o(.text+0xad0): In function `cpu_set_user_tls':
../../../i386/i386/vm_machdep.c:504: undefined reference to `critical_enter'
vm_machdep.o(.text+0xb69):../../../i386/i386/vm_machdep.c:511: undefined reference to `critical_exit'
pci_cfgreg.o(.text+0x10d): In function `pci_cfgregwrite':
../../../i386/pci/pci_cfgreg.c:615: undefined reference to `critical_enter'
pci_cfgreg.o(.text+0x232):../../../i386/pci/pci_cfgreg.c:635: undefined reference to `critical_exit'
pci_cfgreg.o(.text+0x5ae): In function `pcireg_cfgread':
../../../i386/pci/pci_cfgreg.c:584: undefined reference to `critical_enter'
pci_cfgreg.o(.text+0x6ce):../../../i386/pci/pci_cfgreg.c:604: undefined reference to `critical_exit'
*** Error code 1

это семерка такая сырая или я такой кривой?

Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

4. "это баг или что?"  +/
Сообщение от shutdown now on 29-Фев-08, 18:46 
>[оверквотинг удален]
>../../../i386/pci/pci_cfgreg.c:615: undefined reference to `critical_enter'
>pci_cfgreg.o(.text+0x232):../../../i386/pci/pci_cfgreg.c:635: undefined reference to `critical_exit'
>pci_cfgreg.o(.text+0x5ae): In function `pcireg_cfgread':
>../../../i386/pci/pci_cfgreg.c:584: undefined reference to `critical_enter'
>pci_cfgreg.o(.text+0x6ce):../../../i386/pci/pci_cfgreg.c:604: undefined reference to `critical_exit'
>*** Error code 1
>
>
>
>это семерка такая сырая или я такой кривой?

хедеры поставь make installincludes

Ответить | Правка | ^ к родителю #3 | Наверх | Cообщить модератору

5. "это баг или что?"  +/
Сообщение от jourjine (ok) on 29-Фев-08, 19:28 

>>
>>это семерка такая сырая или я такой кривой?
>
>хедеры поставь make installincludes

убрал из clock.c #include "isa.h"

cd /usr/src
make installincludes
cd /usr/src/sys/i386/conf
config Antares-I
cd ../compile/Antares-I
make cleandepend
make depend
make


../../../i386/isa/clock.c: In function 'rtcin':
../../../i386/isa/clock.c:432: error: 'IO_RTC' undeclared (first use in this function)
../../../i386/isa/clock.c:432: error: (Each undeclared identifier is reported only once
../../../i386/isa/clock.c:432: error: for each function it appears in.)
../../../i386/isa/clock.c: In function 'writertc':
../../../i386/isa/clock.c:448: error: 'IO_RTC' undeclared (first use in this function)
*** Error code 1

опять таже ошибка... make installincludes не помог.

в папке ../compile/Antares-I, make installincludes не заработал

Ответить | Правка | ^ к родителю #4 | Наверх | Cообщить модератору

6. "это баг или что?"  +/
Сообщение от hate email on 29-Фев-08, 20:39 

>опять таже ошибка... make installincludes не помог.
>в папке ../compile/Antares-I, make installincludes не заработал

И чем люди думают... С такими знаниями и полным отсутствием опыта они лезут
в сборку...

Честно говоря сборка мира настолько тривиальна... Идите читайте хендбук.

Ответить | Правка | ^ к родителю #5 | Наверх | Cообщить модератору

7. "если не совсем в лом, может расскажешь"  +/
Сообщение от jourjine (ok) on 29-Фев-08, 20:51 
чем так Кардианльно отличается сборка в 7 от 6.3, или "религия" не позволяет?
Ответить | Правка | ^ к родителю #6 | Наверх | Cообщить модератору

8. "если не совсем в лом, может расскажешь"  +/
Сообщение от hate email on 29-Фев-08, 21:35 
>чем так Кардианльно отличается сборка в 7 от 6.3, или "религия" не
>позволяет?

Не обижайся. Это у меня такая манера.

А по сути ничем не отличается. Совершенно не понимаю почему ты не можешь это сделать.


Ответить | Правка | ^ к родителю #7 | Наверх | Cообщить модератору

9. "нууу понимаешь..."  +/
Сообщение от jourjine (ok) on 29-Фев-08, 21:53 
какие обиды в сети то? %)

но это лирика....

я не утвержал, что мои знания в сборке ядра 100%... но их хватало чтобы нормально настроить ядро в 6.3...

предистория
в 6.3 я столкнулся с watchdog timeout при 100% загрузке встроенной сетевой карты РРРоЕ через MPD, аспи и пнп в бивисе залочены во включенным чочтоянии, разлочит их даже не смог тулкит от интела...
поменять сетевую я тоже не могу ;)
юзать РРР - потому что он тормозной, раза в два-три по сравнению с MPD, не выход, хотя он пашет без проблем.
железо тож не предлагать менять %) мать была бы идеальная если бы не долбанный чипсет СИС.

вот хочу все таки сделать нормальный роутер на этой матери, для этого выбрана Фря, Линукс не предлагать %)

7-ку ставил еще  RC2, но столкнулся с этой же проблемой, не смог в лоб собрать ядро... подумал изза тог что это релизкондидат...

сейчас поставил релиз и выплали эти траблы, притом проблема с IPfilter`ом (ядро не собиралось с включенной опциями: IPFILTER IPFILET_LOG) решилась сама после очередного cvsup`а

легкий гуглеж показал что нужно "мейк ИнсталИнклудес" запускать в юзр/срц, так как эту опцию я раньше не использовал... но не помогло или я ее не правильно пременил...

притом я не программер, только поверхностные познания в Си, асме и т.д. (хотя в визуальной среде - запрограммирую), про курение в курсе.  %) но вданном случае что курить то? просто тот факт что по умолчанию хидеры сами не подключаются и видимо еще что то, мягко говоря странно %)  для меня, хотя для тебя видимо все очивидно... %)

так вот не ткнешь меня не просто пальцем в небо, а точно в нужную звезду... А? иль просто не укажешь в чем трабла то?

сори за флейм ;)

Ответить | Правка | ^ к родителю #8 | Наверх | Cообщить модератору

10. "нууу понимаешь..."  +/
Сообщение от hate email on 01-Мрт-08, 12:02 

>так вот не ткнешь меня не просто пальцем в небо, а точно
>в нужную звезду... А? иль просто не укажешь в чем трабла
>то?

Порядок твоих действий:

1 - rm -rf /usr/src/* (сохрани перед этим свой конфиг ядра)
2 - chflags -R noschg /usr/obj/usr
3 - rm -rf /usr/obj/usr
4 - накати с CVS или с сидюка исходники в /usr/src      
5 - cd /usr/src
6 - make cleandir (два раза повторить комманду)
7 - make kernel KERNCONF=GENERIC

Если собралось подставь свой конфиг и повтори процедуру.


1 - chflags -R noschg /usr/obj/usr
2 - rm -rf /usr/obj/usr
3 - cd /usr/src
4 - make cleandir (два раза повторить комманду)
5 - make kernel KERNCONF=ТВОЙ_КОНФИГ


Если собралось то молодец, а если нет то разбирайся со своим конфигом ядра.

Ответить | Правка | ^ к родителю #9 | Наверх | Cообщить модератору

11. "нууу понимаешь..."  +/
Сообщение от hael on 04-Мрт-08, 15:04 
options SCTP убери из конфига
Ответить | Правка | ^ к родителю #10 | Наверх | Cообщить модератору

12. "нууу понимаешь..."  +/
Сообщение от bobro on 05-Мрт-08, 16:45 
или убери
options SCTP
или включи
options INET6
-------
#less /usr/src/sys/conf/NOTES
...
#
# SCTP is a NEW transport protocol defined by
# RFC2960 updated by RFC3309 and RFC3758.. and
# soon to have a new base RFC and many many more
# extensions. This release supports all the extensions
# including many drafts (most about to become RFC's).
# It is the premeier SCTP implementation in the NET
# and is quite well tested.
#
# Note YOU MUST have both INET and INET6 defined. <----- !!!!!!!!!!!!
# you don't have to enable V6, but SCTP is
# dual stacked and so far we have not teased apart
# the V6 and V4.. since an association can span
# both a V6 and V4 address at the SAME time :-)
...
-------
сам только что наступил на эти грабли :)
убрал options SCTP и все собралось.
Ответить | Правка | ^ к родителю #10 | Наверх | Cообщить модератору

13. "нууу понимаешь..."  +/
Сообщение от Belchik on 04-Апр-08, 18:54 
>или убери
>options SCTP
>или включи
>options INET6
>-------

спасибо собралось

Ответить | Правка | ^ к родителю #12 | Наверх | Cообщить модератору

14. "нууу понимаешь..."  +/
Сообщение от erGo (??) on 10-Май-08, 02:22 
>>или убери
>>options SCTP
>>или включи
>>options INET6
>>-------
>
>спасибо собралось

это жестокие грабли :E .. 12 часов на эту х**
спасибо

Ответить | Правка | ^ к родителю #13 | Наверх | Cообщить модератору

17. "нууу понимаешь..."  +/
Сообщение от y0da on 07-Сен-08, 22:32 
>>>или убери
>>>options SCTP
>>>или включи
>>>options INET6
>>>-------
>>
>>спасибо собралось
>
>это жестокие грабли :E .. 12 часов на эту х**
>спасибо

спасибо чуваки если бы не вы то повесился, все сделал как сказали и собралось

Ответить | Правка | ^ к родителю #14 | Наверх | Cообщить модератору

18. "нууу понимаешь..."  +/
Сообщение от Beavis (??) on 26-Сен-08, 17:24 
>или убери
>options SCTP
>или включи
>options INET6
>-------

Спасибо.

Ответить | Правка | ^ к родителю #12 | Наверх | Cообщить модератору

19. "нууу понимаешь..."  +/
Сообщение от gabell on 26-Мрт-09, 23:25 
>или убери
>options SCTP
>или включи
>options INET6
>-------

Спасибо)

Ответить | Правка | ^ к родителю #12 | Наверх | Cообщить модератору

20. "нууу понимаешь..."  +/
Сообщение от Crash (??) on 14-Июн-09, 00:30 
а что собственно это SCTP делает???? собираю ядро, наступил на те же грабли и вот решил убрать этот оптионс.... интересно, чего я лишился???


но всен же спасибо за подсказку, а то уже 2 раза пытался собрать им не получалось. а убирать эту опцию как-то стремно....

Ответить | Правка | ^ к родителю #19 | Наверх | Cообщить модератору

21. "нууу понимаешь..."  +/
Сообщение от Alexii on 01-Сен-09, 10:02 
>[оверквотинг удален]
># and is quite well tested.
>#
># Note YOU MUST have both INET and INET6 defined. <----- !!!!!!!!!!!!
>
># you don't have to enable V6, but SCTP is
># dual stacked and so far we have not teased apart
># the V6 and V4.. since an association can span
># both a V6 and V4 address at the SAME time :-)
>
>...

Спасибо

Ответить | Правка | ^ к родителю #12 | Наверх | Cообщить модератору

22. "нууу понимаешь..."  +/
Сообщение от maxx email(??) on 16-Сен-10, 22:39 
таки да. большое спасибо.
Ответить | Правка | ^ к родителю #21 | Наверх | Cообщить модератору

23. "нууу понимаешь..."  +/
Сообщение от Mustapha on 29-Окт-10, 19:40 
Спасибище! Я уж грешным делом подумал, что дело в сборке без пива!


Ответить | Правка | ^ к родителю #22 | Наверх | Cообщить модератору

24. "не компилится новое ядро на FreeBSD 7"  +/
Сообщение от brainiac on 04-Апр-13, 12:37 
да, были такие грабли под 7,
под 8.3 у меня все четко вот с этим компилится:

#options        INET6                   # IPv6 communications protocols
options         SCTP                    # Stream Control Transmission Protocol

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру