Make 1 leaving directory linux

Проблема с сборкой модуля.

Добрый день. Пытаюсь скомпилить модуль для ядра 2,6,30 для дистра Mandriva. При попытке компиляции make -C /usr/src/kernel-linus-`uname -r` SUBDIRS=$PWD
Выдаётся данная ошибка:

Перемещено JB из Development

У тебя ядро сконфигурено или ты просто сорцы распаковал?

make -C /usr/src/kernel-linux-`uname -r` SUBDIRS=$PWD должно помочь

> Run ‘make oldconfig && make prepare’ on kernel src to fix it.

тебе же английским по-черному пишут, что сделать надо

Pavval — просто сорцы рапаковал )
ananas — зашёл в папку с исходниками, там сделал make oldconfig && make prepare и теперь компиляция вроде как запускается нормально.
Если можно, поясните мне смысл этой команды и что от неё изменяется, что происходит вообще?

Ты установил Linux =)

Кстати, есть вероятность, очень сильно отличающаяся от 0, что модуль твой скомпилируется, но не запустится. Ты где сорцы ядра взял и что у тебя за дистрибутив?

Дистр Mandriva 2009 , исходиники через их установщик пакетов скачал.
Сейчас повнимательней вывод компиляции посмотрел, вот какая ошибка.

Что можно с этим сделать и как?

Проблема решена) мне просто тупить не надо было. Сорцы для компиляции были в папке kernel-linus-devel-2.6.30-2mdv а не kernel-linus-2.6.30-2mdv

Источник

Ошибки при компиляции ядра. Хелп.

make[1]: Leaving directory `/usr/src/linux-2.4.26/arch/i386/math-emu’ gcc -E -C -P -I/usr/src/linux-2.4.26/include -D__KERNEL__ -imacros /usr/src/linux-2.4.26/include/linux/config.h -imacros /usr/src/linux-2.4.26/include/asm-i386/segment.h -imacros /usr/src/linux-2.4.26/include/asm-i386/page.h -Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds ld -m elf_i386 -T /usr/src/linux-2.4.26/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \ —start-group \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \ drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/net/tokenring/tr.o drivers/net/wan/wan.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o drivers/net/pcmcia/pcmcia_net.o drivers/net/wireless/wireless_net.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o drivers/bluetooth/bluetooth.o drivers/hotplug/vmlinux-obj.o drivers/isdn/vmlinux-obj.o crypto/crypto.o arch/i386/math-emu/math.o \ net/network.o \ grsecurity/grsec.o \ /usr/src/linux-2.4.26/arch/i386/lib/lib.a /usr/src/linux-2.4.26/lib/lib.a /usr/src/linux-2.4.26/arch/i386/lib/lib.a \ —end-group \ -o vmlinux fs/fs.o(.text+0x291bd): In function `extended_partition’: : undefined reference to `md_autodetect_dev’ fs/fs.o(.text+0x298e8): In function `msdos_partition’: : undefined reference to `md_autodetect_dev’ make: *** [vmlinux] Ошибка 1 root@home:/usr/src/linux#

Что это может означать? Где какие галочки убрать или что добавить в menuconfig ?

Уже второе ядро не могу собрать из-за этого fs.o ! 🙁

Re: Ошибки при компиляции ядра. Хелп.

make[1]: Leaving directory

gcc -E -C -P -I/usr/src/linux-2.4.26/include -D__KERNEL__

-imacros /usr/src/linux-2.4.26/include/asm-i386/page.h -Ui386

ld -m elf_i386 -T /usr/src/linux-2.4.26/arch/i386/vmlinux.lds -e

stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o

init/main.o init/version.o init/do_mounts.o \

arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o

mm/mm.o fs/fs.o ipc/ipc.o \

drivers/block/block.o drivers/misc/misc.o drivers/net/net.o

drivers/cdrom/driver.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o

drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o

drivers/isdn/vmlinux-obj.o crypto/crypto.o arch/i386/math-emu/math.o

/usr/src/linux-2.4.26/arch/i386/lib/lib.a /usr/src/linux-2.4.26/lib/lib.a /usr/src/linux-2.4.26/arch/i386/lib/lib.a

Читайте также:  Windows update для пиратской

fs/fs.o(.text+0x291bd): In function `extended_partition’:

: undefined reference to `md_autodetect_dev’

fs/fs.o(.text+0x298e8): In function `msdos_partition’:

: undefined reference to `md_autodetect_dev’

make: *** [vmlinux] Ошибка 1

Чтобы было понятнее.

Re: Re: Ошибки при компиляции ядра. Хелп.

О требованиях к пакетам пишут в README или INSTALL? Наверное какой-нибудь из пакетов слишком стар.

Re: Re: Ошибки при компиляции ядра. Хелп.

Копай в сторону патчей, которые накладываешь. В одном из них, наверняка, есть изменение работы с дисками/файловыми системами.

Re: Ошибки при компиляции ядра. Хелп.

В разделе file systems какие галочки ставил?

Re: Ошибки при компиляции ядра. Хелп.

> In function `msdos_partition’: : undefined reference to `md_autodetect_dev’

Это ключевое слово.

Включи поддержку устройств md:

Block devices -> Multi-device support

опции Multiple devices driver support и RAID support установить в

Источник

Thread: make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

Thread Tools
Display

make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

hi all Aircrack user plzzz i’m trying to install my wireless card but i tried to do like in this tutorial http://ubuntuforums.org/showthread.php?p=10107880 but i get errors while compiling make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’
knownig that my kernel is 2.6.35-22
my wireless card : BCM4313 [14e4:4727]

i’ve googled it but i didn’t find any solution and i know how to use patch and aircrack .
plsss heeelp

Re: make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

It doesn’t look like an error to me. Does it say ERROR? Are there any errors when you do:

Last edited by chili555; May 19th, 2012 at 02:07 AM .

Re: make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

it always show me the same error if we can call it error ===>
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’
:/

Re: make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

All I can say is what I already said: It doesn’t look like an error to me. Does it say ERROR? What you quoted is not an error. Can you try again:

Post the result or post it here and give me the link: http://paste.ubuntu.com/

What you quoted is not an error.

Re: make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic’

Seems that i evoluated from the lasttime i installed the last ubuntu 12.04 and i the wireless is working fine but when i’m trying to inject i get fixed channel mon0: -1 so i tried to fix it using this tutorial http://hi.baidu.com/9linux/blog/item. 9c93d6d97.html ( i used compat-wireless-3.4-rc3-1 in the case of compat-wireless-2012-04-26) but i can’t compile, when typing make at the end i get

make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic-pae’

@ASPj I have already istalled kernel-sources
sudo apt-get install linux-headers-3.2.0-23-generic-pae
linux-headers-3.2.0-23-generic-pae is already the newest version.

uname -a
Linux xgeniu-PC 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
@chili555 i always can’t campile :/

Источник

Linux: How to Make a Directory Command

H ow do I make directory under Linux operating systems using the command prompt or bash shell?

You need to use the mkdir command to create new folders or directories under Linux operating systems. A directory (also known as folder in MS-Windows/macOS ) is nothing but a container for other directories and files. This page explains the basics of using the mkdir command on Linux.

Tutorial details
Difficulty level Easy
Root privileges No
Requirements mkdir on Linux
Est. reading time 3 mintues

mkdir command Syntax

The mkdir command has the following syntax:
mkdir dirname
mkdir dirname1 dirname2
mkdir [option] dieNameHere
mkdir -p dir1/dir2/dir3

Examples

Let us see some commann useful examples.

How to create a new director

Open a terminal and then use the mkdir command to create empty directories. The following command would create a directory called foo:
$ mkdir foo
To list directories, enter:
$ ls
$ ls -l
The following command would create two directories within the current directory:
$ mkdir tom jerry
$ ls -l

How to create Directories in Linux

The -p option allows you to create parent directories as needed (if parent do not already exits). For example, you can create the following directory structure:
$ mkdir -p

/public_html/images/trip
Verify it:
ls -l

/public_html/
ls -l

/public_html/images/
ls -R -l

How to create directories in Linux with verbose option

Pass the -v as follows to display a message for each created directory:
mkdir -v dir1
ls -l

  • No ads and tracking
  • In-depth guides for developers and sysadmins at Opensourceflare✨
  • Join my Patreon to support independent content creators and start reading latest guides:
    • How to set up Redis sentinel cluster on Ubuntu or Debian Linux
    • How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
    • How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
    • A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
    • How to protect Linux against rogue USB devices using USBGuard

Join Patreon

Setting up permissions when creating a directory

To set directory mode (permission) pass the -m option as follows:
mkdir -m dirName
The -m option is same as giving permissions using the chmod command. For examples:
mkdir data
chmod 0700 data
We can do the same with a single command and save typing time at the command-line:
mkdir -v -m 0700 data
ls -ld data

Setting up SELinux context with mkdir on RHEL or CentOS

The syntax is follows to set up system_u:object_r:httpd_sys_content_t:s0 as SELinux context for foo dir:

How to Create a Directory in Linux with mkdir Command with SELinux

Sample mkdir demo command

Animated gif 01: mkdir in action under Linux / Unix like operating systems

Summing up

The mkdir command in Linux is used to make new directories as per your needs. We create a new directory in current directory or given path:
mkdir my-dir-name-here
ls -l
Also make directories recursively which is useful for creating nested dirs on Linux. For instance:
mkdir -p path/to/dir1/dir2

Getting help

Make sure you read the following man pages:
man mkdir
man ls
mkdir —help

Options summary

Option Description Example
-m ( —mode=MODE ) Set file mode (as in chmod command), not a=rwx – umask. mkdir -m 0644 sales
-p ( —parents ) No error if existing, make parent directories as needed. mkdir -p one/two/three
-v ( —verbose ) Print a message for each created directory. mkdir -v detla
-Z Set SELinux security context of each created directory to the default type. mkdir -Z dir1
—context[=CTX] Like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX. See above
—help Display this help and exit. mkdir —help
—version output version information and exit. mkdir —version

🐧 Get the latest tutorials on Linux, Open Source & DevOps via

Источник

LFS проблемы с gcc

Здравствуйте! Я новичок в linux. LFS — для того, что бы разобраться что к чему. Да и к тому же много много веселья)
Дошел до пункта 5.5.

>Вроде make выполнился без ошибок

А это что?
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.5.2′ make: *** [all] Error 2

Очевидно, вы пытаетесь собрать gcc в каталоге с его исходниками, несмотря на то, что в инструкции написано:

Это не поддерживается, те вам нужно создать отдельный каталог, и запускать configure && make уже оттуда.

внимательно читатайте манул

мне почти удалось всё собрать.

используйте только те версии пакетов которые там указаны

нет, это первый вывод. потом порылся, нашел то самое решение, снова запустил make и make install и не увидел ошибок, только насторожила скорость выполнения.

Очевидно, вы пытаетесь собрать gcc в каталоге с его исходниками

Исходники в sources, создал папку gcc-build, скопировал туда исходники gcc, распаковал и пытаюсь там собрать. Да, видимо сглупил. Получается, мне нужно в gcc-build создать папку и из нее запускать «/mnt/lfs/gcc-build/gcc-4.5.2/configure \»?

Спасибо большое!
По-моему, вы указали на основную мою ошибку.. А как тогда быть потом с обновлениями? Или сначала главное все собрать, а обновляться легче будет?

>>мне почти удалось всё собрать.

не знаю, до финиша у меня дойти не получилось

> А как тогда быть потом с обновлениями?
Фактически, никак. Никакой системы обновлений нет.
Поставь арч, советую тебе ещё раз.

>нет, это первый вывод. потом порылся, нашел то самое решение

Если следовать инструкции, проблемы не было бы.

Исходники в sources, создал папку gcc-build, скопировал туда исходники gcc, распаковал и пытаюсь там собрать.

Если скопировать каталог с сорцами пару раз он перестаёт таким быть? Лол, или что ты пытаешься сказать?

Если следовать инструкции, проблемы не было бы.

Если скопировать каталог с сорцами пару раз он перестаёт таким быть? Лол, или что ты пытаешься сказать?

Кретинизм мозга не позволяет дочитать до конца?

И еще, хватит насаждать всем свое мнение. Не знаешь как решить проблему, зачем тогда вообще что-то писать?

Ты чо такой дерзкий? 😀 Вопрос был в этом:

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

В 4-ом посте я признал свою ошибку, а вы снова указываете мне на нее. Я понял с первого раза. Спасибо.

>Надеюсь, правильно понял смысл «j2» — аналог MAKEOPTS, который в /etc/make.

-j2 у make — это параллельная сборка в два потока. Это ускоряет сборку, но некоторые программы могут так не собраться, если авторы не протестировали параллельную сборку.

Можно при выходе новой версии просто собрать её и установить, она перезапишет старые файлы, обычно всё работает хорошо.

Источник

Читайте также:  Linux mint после обновления не входит пользователь
Оцените статью