From: "Прокопьев Евгений" <john@rmts.donpac.ru> To: Community@altlinux.ru Subject: [Comm] NVIDIA kernel module Date: Wed, 16 Oct 2002 09:36:15 +0400 Message-ID: <3DACFACF.2070105@rmts.donpac.ru> (raw) Здравствуйте! Читаю http://www.atmsk.ru/viewtopic.php?t=351 1. $ wget -c ftp://download.nvidia.com/XFree86_40/1.0-2960/NVIDIA_kernel-1.0-2960.src.rpm --09:12:45-- ftp://download.nvidia.com/XFree86_40/1.0-2960/NVIDIA_kernel-1.0-2960.src.rpm => `NVIDIA_kernel-1.0-2960.src.rpm' Установка соединения с 192.168.10.13:80... соединились. Запрос Proxy послан, ожидание ответа... 502 Proxy Error ( The operation timed out ) 09:17:48 ОШИБКА 502: Proxy Error ( The operation timed out ). 2. Ладно, раз так, выкачиваем http://download.nvidia.com/XFree86_40/1.0-3123/NVIDIA_kernel-1.0-3123.src.rpm 3. Устанавливаем от пользователя 4. Выполняем perl -pe -i 's,unset,#unset,g' /usr/src/RPM/SPECS/NVIDIA_kernel.spec Unrecognized file test: -i at -e line 1. Кстати, а что это строка делает? 5. Выполняем rpm --target i586 -bb /usr/src/RPM/SPECS/NVIDIA_kernel.spec Платформы для сборки: --bb Сборка для платформы --bb ошибка: невозможно получить информацию о /usr/src/RPM/SPECS/i586: No such file or directory Такого файла и правда нет. Как его сделать? Собираем проще rpm -bb /usr/src/RPM/SPECS/NVIDIA_kernel.spec Получаем: Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.20019 + umask 022 + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf NVIDIA_kernel-1.0-3123 + echo 'Source #0 (NVIDIA_kernel-1.0-3123.tar.gz):' Source #0 (NVIDIA_kernel-1.0-3123.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/NVIDIA_kernel-1.0-3123.tar.gz + /bin/tar -xf - + cd NVIDIA_kernel-1.0-3123 + exit 0 Выполняется(%build): /bin/sh -e /var/tmp/rpm-tmp.20019 + umask 022 + cd /usr/src/RPM/BUILD + cd NVIDIA_kernel-1.0-3123 + set +e ++ rpm -q --queryformat '%{VERSION}' rpm + RPMVERSION=4.0.4 ++ echo 4.0.4 ++ awk -F . '{print $1;}' + RPMMAJOR=4 ++ echo 4.0.4 ++ awk -F . '{print $2;}' + RPMMINOR=0 ++ echo 4.0.4 ++ awk -F . '{print $3;}' + RPMPATCH=4 + '[' 4 -le 3 -a 0 -le 0 -a 4 -lt 4 ']' + make NVdriver echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual os-interface.c cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual os-registry.c ld -r -o Module-linux nv.o os-interface.o os-registry.o ld -r -o NVdriver Module-linux Module-nvkernel size NVdriver text data bss dec hex filename 895602 55508 52396 1003506 f4ff2 NVdriver + exit 0 Выполняется(%install): /bin/sh -e /var/tmp/rpm-tmp.731 + umask 022 + cd /usr/src/RPM/BUILD + /bin/chmod -R u+w /var/tmp/NVIDIA_kernel-buildroot + /bin/rm -rf /var/tmp/NVIDIA_kernel-buildroot + cd NVIDIA_kernel-1.0-3123 + rm -f /tmp/files.lst + '[' -z '' ']' ++ uname -r + export TARGET_KERNEL=2.4.18-alt6master-up + TARGET_KERNEL=2.4.18-alt6master-up + '[' -d /lib/modules/2.4.18-alt6master-up/kernel ']' + INSTALLPATH=/lib/modules/2.4.18-alt6master-up/kernel/drivers/video + mkdir -p /var/tmp/NVIDIA_kernel-buildroot//lib/modules/2.4.18-alt6master-up/kernel/drivers/video + install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-buildroot//lib/modules/2.4.18-alt6master-up/kernel/drivers/video + echo '%attr(444 root root) ' /lib/modules/2.4.18-alt6master-up/kernel/drivers/video/NVdriver + unset RPM_BUILD_ROOT + /usr/lib/rpm/brp-alt brp-alt: non-/ $RPM_BUILD_ROOT expected ошибка: Неверный код возврата из /var/tmp/rpm-tmp.731 (%install) Ошибки сборки пакетов: Неверный код возврата из /var/tmp/rpm-tmp.731 (%install) Если я говорю make, находясь в /usr/src/RPM/BUILD/NVIDIA_kernel-1.0-3123, то получаю $ make ld -r -o NVdriver Module-linux Module-nvkernel size NVdriver text data bss dec hex filename 895602 55508 52396 1003506 f4ff2 NVdriver Please run "make install" as root. Собирается и tar.gz с nvidia.com, но я хочу rpm. Что делать? -- С уважением, Прокопьев Евгений
next reply other threads:[~2002-10-16 5:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-16 5:36 Прокопьев Евгений [this message] 2002-10-16 7:21 ` å×ÇÅÎÉÊ ëÏÂÚÅ× 2002-10-16 8:46 ` Прокопьев Евгений
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3DACFACF.2070105@rmts.donpac.ru \ --to=john@rmts.donpac.ru \ --cc=Community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git