Ошибка при сборке ядра amd64

Проблемы установки, настройки и работы Правильной Операционной Системы

Модератор: terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
Volodymyr
лейтенант
Сообщения: 614
Зарегистрирован: 2008-06-17 16:04:56
Откуда: Ukraine, Lviv
Контактная информация:

Ошибка при сборке ядра amd64

Непрочитанное сообщение Volodymyr » 2009-02-05 18:59:16

Код: Выделить всё

# uname -a
FreeBSD web1.nucleart.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
Конфиг ядра GENERIC +

Код: Выделить всё

device pf
device pflog
device pfsync
Некогда просто не собирал amd64.

Код: Выделить всё

cc -c -O2 -frename-registers -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/usr/src/sys -I/usr/src/sys/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  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  /usr/src/sys/dev/usb/umass.c
/usr/src/sys/dev/usb/umass.c:577: error: 'USB_PRODUCT_NETAC_ONLYDISK' undeclared here (not in a function)
/usr/src/sys/dev/usb/umass.c:613: error: 'USB_PRODUCT_ONSPEC_SDS_HOTFIND_D' undeclared here (not in a function)
*** Error code 1

Stop in /usr/obj/usr/src/sys/WEB1.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Volodymyr
лейтенант
Сообщения: 614
Зарегистрирован: 2008-06-17 16:04:56
Откуда: Ukraine, Lviv
Контактная информация:

Re: Ошибка при сборке ядра amd64

Непрочитанное сообщение Volodymyr » 2009-02-05 20:08:12

Убрал все что связано с ЮСБ. Остановилось в другом месте...

Код: Выделить всё

===> aio (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nost
dinc   -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/WEB1/o
pt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-o
mit-frame-pointer -I/usr/obj/usr/src/sys/WEB1 -mcmodel=kernel -mno-red-z
one  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -
fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -W
nested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
 -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field 'aio_si
gevent' has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2564: error: field 'aio_si
gevent' has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'convert_old_
sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2575: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2580: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2584: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2585: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'convert_sige
vent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2621: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2626: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2629: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2632: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2633: error: dereferencing
 pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'freebsd32_ol
io_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: error: storage size
of 'osig' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: warning: unused vari
able 'osig'
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'freebsd32_li
o_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: error: storage size
of 'sig32' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: warning: unused vari                                                                                                                                                                    able 'sig32'
*** Error code 1

Stop in /usr/src/sys/modules/aio.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/WEB1.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

kirgudu
сержант
Сообщения: 185
Зарегистрирован: 2009-01-16 23:14:00

Re: Ошибка при сборке ядра amd64

Непрочитанное сообщение kirgudu » 2009-02-05 21:53:18

Для начала полный cvsup до 7-STABLE или 7.1-RELEASE. Далее все самопальные CCFLAGS выкинь из make.conf и из кернеля и пробуй собирать

Код: Выделить всё

# cd /usr/src 
# make buildkernel KERNCONF=WEB1 && make installkernel KERNCONF=WEB1

Аватара пользователя
iZEN
ст. лейтенант
Сообщения: 1095
Зарегистрирован: 2007-09-15 16:45:26
Контактная информация:

Re: Ошибка при сборке ядра amd64

Непрочитанное сообщение iZEN » 2009-02-05 21:56:05

Код: Выделить всё

% cd /usr/src/ && chflags -R noschg * && make cleandir && make cleandir
Дальше csup'ить исходники RELENG_7.
GNU/Linux — это не Unix и даже никогда им не был, и, что самое смешное, никогда им не станет — GNU's Not Unix

Аватара пользователя
Volodymyr
лейтенант
Сообщения: 614
Зарегистрирован: 2008-06-17 16:04:56
Откуда: Ukraine, Lviv
Контактная информация:

Re: Ошибка при сборке ядра amd64

Непрочитанное сообщение Volodymyr » 2009-02-06 17:05:11

На WEB1 все собралось

Проблема теперь на локальной машине.

Код: Выделить всё

#uname -a
FreeBSD studio.nucleart.net 7.1-STABLE FreeBSD 7.1-STABLE #1: Mon Jan 26 17:55:04 EET 2009     volodymyr@studio.nucleart.net:/usr/obj/usr/src/sys/STUDIO  i386
Делаю все аналогично.

standard-supfile:

Код: Выделить всё

*default host=cvsup.freebsd.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7
*default delete use-rel-suffix
*default compress
src-all

Код: Выделить всё

# cvsup -g -L 2 standard-supfile
Parsing supfile "standard-supfile"
Connecting to cvsup.freebsd.org
Connected to cvsup.freebsd.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Shutting down connection to server
Finished successfully
Сорци обновились я так понимаю (за день уже третий раз делал).

Код: Выделить всё

# cd /usr/src/ && chflags -R noschg * && make cleandir && make cleandir

Код: Выделить всё

cd /usr/src/ && make buildkernel KERNCONF=STUDIO && make installkernel KERNCONF=STUDIO

...

:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh /usr/src/sys/conf/newvers.sh STUDIO
cc -c -O -pipe  -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/usr/src/sys -I/usr/src/sys/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  vers.c
linking kernel.debug
umass.o(.text+0x1c): In function `umass_cam_detach_sim':
/usr/src/sys/dev/usb/umass.c:2725: undefined reference to `xpt_bus_deregister'
umass.o(.text+0x38):/usr/src/sys/dev/usb/umass.c:2726: undefined reference to `cam_sim_free'
umass.o(.text+0x44d): In function `umass_cam_quirk_cb':
/usr/src/sys/dev/usb/umass.c:3276: undefined reference to `xpt_done'
umass.o(.text+0x465):/usr/src/sys/dev/usb/umass.c:3285: undefined reference to `xpt_done'
umass.o(.text+0x493): In function `umass_cam_sense_cb':
/usr/src/sys/dev/usb/umass.c:3176: undefined reference to `xpt_done'
umass.o(.text+0x5c2):/usr/src/sys/dev/usb/umass.c:3250: undefined reference to `xpt_done'
umass.o(.text+0x5d3):/usr/src/sys/dev/usb/umass.c:3257: undefined reference to `xpt_done'
umass.o(.text+0x619):/usr/src/sys/dev/usb/umass.c:3083: more undefined references to `xpt_done' follow
umass.o(.text+0xdae): In function `umass_cam_action':
/usr/src/sys/dev/usb/umass.c:3027: undefined reference to `cam_calc_geometry'
umass.o(.text+0xdb6):/usr/src/sys/dev/usb/umass.c:3028: undefined reference to `xpt_done'
umass.o(.text+0xdc7):/usr/src/sys/dev/usb/umass.c:3039: undefined reference to `xpt_done'
umass.o(.text+0xddb):/usr/src/sys/dev/usb/umass.c:3051: undefined reference to `xpt_done'
umass.o(.text+0x1221): In function `umass_attach':
/usr/src/sys/dev/usb/umass.c:2618: undefined reference to `cam_simq_alloc'
umass.o(.text+0x1275):/usr/src/sys/dev/usb/umass.c:2622: undefined reference to `cam_sim_alloc'
umass.o(.text+0x1284):/usr/src/sys/dev/usb/umass.c:2631: undefined reference to `cam_simq_free'
umass.o(.text+0x12a7):/usr/src/sys/dev/usb/umass.c:2635: undefined reference to `xpt_bus_register'
umass.o(.text+0x13b1): In function `umass_cam_rescan_callback':
/usr/src/sys/dev/usb/umass.c:2656: undefined reference to `xpt_free_path'
umass.o(.text+0x2602): In function `umass_cam_rescan':
/usr/src/sys/dev/usb/umass.c:2675: undefined reference to `xpt_periph'
umass.o(.text+0x2611):/usr/src/sys/dev/usb/umass.c:2675: undefined reference to `xpt_create_path'
umass.o(.text+0x2643):/usr/src/sys/dev/usb/umass.c:2682: undefined reference to `xpt_setup_ccb'
umass.o(.text+0x2660):/usr/src/sys/dev/usb/umass.c:2686: undefined reference to `xpt_action'
*** Error code 1

Stop in /usr/obj/usr/src/sys/STUDIO.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
Что не так? Может какое-то ЮСБ закоментировать (на веб1 все ЮСБ закоментировано и собралось)
Последний раз редактировалось Volodymyr 2009-02-06 17:52:37, всего редактировалось 1 раз.

kirgudu
сержант
Сообщения: 185
Зарегистрирован: 2009-01-16 23:14:00

Re: Ошибка при сборке ядра amd64

Непрочитанное сообщение kirgudu » 2009-02-06 17:38:33

Generic собирается? Скорее всего в конфиге напортачил.