Make menuconfig ошибка 2

I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type «make menuconfig» it says:

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

I trying to install «libncurses5-dev», but I get the error:

E: Unable to locate package libncurses5-dev

P.S.

I downloaded and installed the packages manually and now everything is okay!
Thanks a lot!!

Veerendra K's user avatar

Veerendra K

2,1157 gold badges32 silver badges61 bronze badges

asked Apr 14, 2014 at 0:36

ValeriRangelov's user avatar

ValeriRangelovValeriRangelov

5832 gold badges7 silver badges18 bronze badges

You should have run (as root)

aptitude update
aptitude search libncurses

that would suggest you the right package name.

Then try

aptitude install libncurses-dev

and

aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64 

At last, use make-kpkg --initrd binary to compile your kernel. (it will produce *.deb files in the parent directory). You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf

answered Apr 14, 2014 at 5:35

Basile Starynkevitch's user avatar

3

I had the same problem. In my case installation of package libncursesw5-dev solved the issue.

Patrizio Bertoni's user avatar

answered May 16, 2016 at 13:36

gogo's user avatar

make menuconfig needs ncurses libraries try following command to install ncurses library

sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev

answered Apr 14, 2014 at 5:56

Rahul R Dhobi's user avatar

Rahul R DhobiRahul R Dhobi

5,6381 gold badge29 silver badges38 bronze badges

make menuconfig

worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff

# Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) NOPASSWD:ALL

%b37399 ALL=(ALL:ALL) NOPASSWD:ALL

answered Jun 17, 2016 at 16:07

ashish's user avatar

ashishashish

3533 silver badges8 bronze badges

For Fedora(Red Hat);

$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution : 
$ sudo yum install libncurses-dev

Thanks

answered May 5, 2020 at 19:29

Sarkar_T's user avatar

Sarkar_TSarkar_T

5611 gold badge4 silver badges4 bronze badges

1

Depending on the project the menuconfig could be made with the kconfiglib library:

https://pypi.org/project/kconfiglib/

For these projects it’s required to:

  • Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)
  • Install pip (if it’s not done with Python)
  • And then the pip install kconfiglib

And for some projects, this will fix the error instead of the libcurses package.

Just as example here is one kconfiglib based project which prints the same error, but will not be fixed with libcurse:

https://github.com/polarfire-soc/hart-software-services

answered Jun 8, 2021 at 13:10

Anton Krug's user avatar

Anton KrugAnton Krug

1,5572 gold badges19 silver badges32 bronze badges


0

0

Для конфигурированиz ядра 2.6.9 вызываю make menuconfig.А он выдаёт ошибки:
make[2]:*** [scripts/lxdialog/checklist.o] Ошибка 1
make[1]:*** [menuconfig] Ошибка 2
make:***[menuconfig] Ошибка 2
Просто make config работает нормально.

  • Ссылка

Re: Не работает make menuconfig

ncurses стоит

anonymous

(16.02.05 10:10:44 MSK)

  • Показать ответ
  • Ссылка

Re: Не работает make menuconfig

это был вопрос или утверждение?

кто это сказал?


> P.S. вот цена анонимности…

eugrus ★★★★

(16.02.05 11:01:57 MSK)

  • Показать ответ
  • Ссылка

Re: Не работает make menuconfig

это был вопрос — тебе нужно поставить ncurser-devel
или можешь запустить make xconfig

anonymous

(16.02.05 11:30:43 MSK)

  • Показать ответ
  • Ссылка

Re: Не работает make menuconfig

У меня не стоят ИКСЫ потому-то я и хочу использовать menuconfig.
А можно поподробнее про ncurser-devel. Что это такое? И как проверить
стоят они или нет.

anonymous

(16.02.05 12:41:34 MSK)

  • Показать ответы
  • Ссылка

Re: Не работает make menuconfig

ncurses и ncurses-devel эта такая либа которая рисует окошечный интерфейс в консоли ( типа тот который есть в утилитах типа linuxconf и тп )
ты ведь когда запускаешь make menuconfig — то видишь окошки — это они и есть …
так что посмотри в твоем дистре пакеты ncurses-devel …
в дебиане так:
apt-cache search ncurses ….

anonymous

(16.02.05 12:56:21 MSK)

  • Показать ответ
  • Ссылка

Re: Не работает make menuconfig

Установи все пакеты для разработчиков и не парь мозги «разработка ядра «

gizmo

(16.02.05 13:34:16 MSK)

  • Ссылка

Re: Не работает make menuconfig

> И как проверить стоят они или нет.

если rpm-based дистрибутив:

rpm -qa | grep curces

eugrus ★★★★

(16.02.05 14:59:01 MSK)

  • Ссылка

Re: Не работает make menuconfig

> А можно поподробнее про ncurser-devel. Что это такое?

что-то вроде conio.h в DOS, но только гораздо функциональнее

для «рисования» в консоли

eugrus ★★★★

(16.02.05 15:01:14 MSK)

  • Показать ответ
  • Ссылка

Re: Не работает make menuconfig

Спасибо за помощь. Поставил эту либу и всё заработало:)

anonymous

(16.02.05 15:08:17 MSK)

  • Ссылка

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.

Working with a Headless Raspberry PI 4 with an Ubuntu Server 18.04.4 LTS.. I am trying to configure the source kernel. I have installed libncurses-dev, kernel-package, qt4-dev-tools.

When I run ‘make menuconfig’ in the directory /linux-5.7, it shows:

  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:588: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

Lost on what to do, everything I have read hasn’t helped so far. My goal is to start programming device drivers, and to do so I need a configured and built kernel source tree on disk.

asked Jun 1, 2020 at 19:42

Jack's user avatar

0

In the Ubuntu’s Build Your Own Kernel guide it is stated that you have to install following programs :

sudo apt-get install libncurses-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf

to be able to compile the kernel from source successfully.

answered Jun 1, 2020 at 19:48

Parsa Mousavi's user avatar

flex is not installed. Install it by

sudo apt install flex

answered Jun 1, 2020 at 19:45

Pilot6's user avatar

Pilot6Pilot6

88.1k91 gold badges199 silver badges306 bronze badges

I’m not sure this will be helpful, but when making kernel modules you can receive this same error if the makefile in use uses the keyword SUBDIRS= which was eliminated after version 5.3 of the kernel. Instances of SUBDIRS= need to be replaced by M=

Again, this is for building modules and drivers, but I would be surprised if building the kernel did not require similar references depending on the tools being used.

answered Jan 18, 2022 at 15:36

Dytraction's user avatar

0

ядро с make menuconfig (Debian)

Модераторы: Warderer, Модераторы разделов

godima

Сообщения: 92
ОС: Debian Etch

ядро с make menuconfig

Добрый день всем!
Рискнул открыть тему, так как по поиску не нашел подходящего ответа для себя.
Надеюсь на понимание.
Вчера попытался в первые пересобрать ядро. Нашел статью как это делается, ну и начал, собственно как там написано.
У меня система на 3 DVD, так что с дисков поставил пакет linux-source-2.6.18
в /usr/src/ распаковал его.
Далее автор рекомендует скопировать /boot/config-2.6.18-686 в /usr/src/linux-source-2.6.18/.config , что я и сделал
После этого запустить в /usr/src/linux-source-2.6.18/ make menuconfig
запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?
Пробовал запустить make config — нормально заработало, задает вопросы, ну, как и должно быть :)
Только вот конфигурировать в режиме ответов на вопросы, как-то не очень уж нравится…

И еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра, или я не прав, и нужно качать kernel-source-2.6.18 из сети для сборки своего ядра?

Спасибо всем за ответы!

Аватара пользователя

greak

Сообщения: 485
Статус: debian user
ОС: Debian Lenny/Sid

Re: ядро с make menuconfig

Сообщение

greak » 04.06.2007 09:25

запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?

Что система говорит?

И еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра

Качай лучше с kernel.org уже 2.6.21

godima

Сообщения: 92
ОС: Debian Etch

Re: ядро с make menuconfig

Сообщение

godima » 04.06.2007 09:31

greak писал(а): ↑

04.06.2007 09:25

запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?

Что система говорит?

ругается на некоторые файлы — говорит, что не найден файл при попытке #include <abc>
где abc — имя файла, сейчас поточнее сказать не могу — только вечером у компа буду

И еще вопрос — автор статьи, по которой я пробовал собрать свое ядро предлагает скачать пакет kernel-source-2.6.18
на 3 DVD Debian Etch такого пакета нету, но как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра

Качай лучше с kernel.org уже 2.6.21

Аватара пользователя

chitatel

Сообщения: 2015

Re: ядро с make menuconfig

Сообщение

chitatel » 04.06.2007 16:19

godima писал(а): ↑

04.06.2007 09:22

запускаю, что-то начинает на экран выводить, после чего строка — завершение make menuconfig с кодом ошибки 2.
Что делать?

Поставьте пакет libncurses5-dev. И посмотрите, что получится. Может быть, ничего и не получится…

как я понимаю пакет linux-source-2.6.18 как раз содержит исходники ядра

Правильно понимаете.

godima

Сообщения: 92
ОС: Debian Etch

Re: ядро с make menuconfig

Сообщение

godima » 07.06.2007 08:09

Извините, что с опозданием, но вот, что выдает make menuconfig:

Код:

debian:/usr/src/linux-source-2.6.18# make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’
scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’
scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’
scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function ‘endwin’
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘stdscr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function ‘keypad’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘TRUE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:148: error: ‘attributes’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:191: warning: implicit declaration of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:200: warning: implicit declaration of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:207: warning: implicit declaration of function ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_DOWN’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:224: error: ‘FALSE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:225: warning: implicit declaration of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:226: warning: implicit declaration of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:235: warning: implicit declaration of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:285: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/kconfig/lxdialog/checklist.c:286: warning: implicit declaration of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:290: error: ‘KEY_LEFT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:291: error: ‘KEY_RIGHT’ undeclared (first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Ошибка 1
make[1]: *** [menuconfig] Ошибка 2
make: *** [menuconfig] Ошибка 2
debian:/usr/src/linux-source-2.6.18#

godima

Сообщения: 92
ОС: Debian Etch

Re: ядро с make menuconfig

Сообщение

godima » 07.06.2007 09:34

greak писал(а): ↑

07.06.2007 08:23

scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory

libncurses5-dev установлен?

возможно, что нет, сечас я не у машины, поэтому не могу сказать

godima

Сообщения: 92
ОС: Debian Etch

Re: ядро с make menuconfig

Сообщение

godima » 07.06.2007 09:42

greak писал(а): ↑

07.06.2007 08:23

scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory

libncurses5-dev установлен?

а про остальные ошибки что-то можете сказать?

Аватара пользователя

Aectann

Бывший модератор
Сообщения: 3491
Статус:
ОС: OS X, GNU_и_не_только/Linux

Re: ядро с make menuconfig

Сообщение

Aectann » 07.06.2007 17:30

godima писал(а): ↑

07.06.2007 09:42

а про остальные ошибки что-то можете сказать?

Ошибки из последнего лога вроде только из-за отстутствия ncurses, так что ставьте ncurses-dev и попробуйте ещё раз menuconfig запустить.

My god… it’s full of stars!…

Аватара пользователя

mczim

Сообщения: 665
ОС: Debian/Ubuntu
Контактная информация:

View previous topic :: View next topic  
Author Message
obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 7:18 am    Post subject: make: *** [menuconfig] Error 2 Reply with quote

Hello!

I use a IBM Thinkpad R40 with Pentium M CPU, gentoo-dev-sources-2.6.10-r6 and I already compiled some Kernels (so the system once worked perfectly), but if I’m now doing as root make menuconfig in the folder /usr/src/linux I’m getting this errormessage:

Code:
make menuconfig

scripts/kconfig/mconf arch/i386/Kconfig

#

# using defaults fount in arch/i386/defconfig

#

arch/i386/defconfig:129: trying to assign nonexistent symbol PM_DISK

arch/i386/defconfig:176: trying to assign nonexistent symbol PCI_USE_VECTOR

arch/i386/defconfig:252: trying to assign nonexistent symbol BLK_DEV_CARMEL

arch/i386/defconfig:273: trying to assign nonexistent symbol IDE_TASKFILE_IO

arch/i386/defconfig:292: trying to assign nonexistent symbol BLK_DEV_ADMA

arch/i386/defconfig:365: trying to assign nonexistent symbol SCSI_MEGARAID

arch/i386/defconfig:570: trying to assign nonexistent symbol NET_FASTROUTE

arch/i386/defconfig:571: trying to assign nonexistent symbol NET_HW_FLOWCONTROL

arch/i386/defconfig:777: trying to assign nonexistent symbol QIC02_TAPE

arch/i386/defconfig:1248: trying to assign nonexistent symbol X86_STD_RESOUCES

interrupted(11)

               make[1]: *** [menuconfig] Error 1

make: *** [menuconfig] Error 2



The error is persistent even if I do a make mrproper, or if I even emerge a new kernel.

What’s the matter, where is the problem? Somewhere must be something like an errorlogfile, but I don’t know where to look after, to get a clou.

Neather a revdep-rebuild, nor an emerge -pvu system, nor an esync solves it, or gives me a clou.

I don’t know if this is relevant, but I deleted a time ago the folders beneath /usr/tmp/portage, because they were grown above 1 GB… and since a short period of time, lets say for a week I get a Segmentation fault if I try to run top.

Any suggestions?

Greetings,

Mike

[edit]

By the way, how can I anyhow get my System running? Do I really have to format my hdd and reinstall all?

Last edited by obscurus on Tue Mar 01, 2005 8:59 am; edited 1 time in total

Back to top

View user's profile Send private message

donjuan
l33t
l33t

Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Tue Mar 01, 2005 7:59 am    Post subject: Reply with quote

Have you tried copying across an old config, runinning «make oldconfig», then seeing what happens when you run «make menuconfig»? Does «make menuconfig» still work with old kernel versions?

Also, I don’t think problems are coming from deleting /usr/tmp/portage, that’s just the portage temp directory.
_________________
Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.

The Stage 1 on 3 Install

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 8:13 am    Post subject: Reply with quote

donjuan wrote:
Have you tried copying across an old config, runinning «make oldconfig», then seeing what happens when you run «make menuconfig»? Does «make menuconfig» still work with old kernel versions?



Oh yes, this one I forgot.

I moved the configfiles a folder above, so they are no longer within the same directory. In my oppinion they’re now unreachable for make menuconfig and it shoud generate a new one, but the problem persists! :(

donjuan wrote:
Also, I don’t think problems are coming from deleting /usr/tmp/portage, that’s just the portage temp directory.



This I thought too, but this is what I did «tremendous» in the last time…

I have absolutely no idea where this problems derives from! :(

Back to top

View user's profile Send private message

To
Veteran
Veteran

Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Tue Mar 01, 2005 10:52 am    Post subject: Reply with quote

Try this:

emerge -C gentoo-dev-sources

backup your .config file and rm -rf /usr/src/linux*

emerge gentoo-dev-sources

make the symlink from your kernel dir to linux

copy your .config file to the linux dir

make oldconfig

make menuconfig

and see how it goes.


_________________


————————————————

Linux Gandalf 3.2.35-grsec

Gentoo Base System version 2.2

————————————————

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 11:08 am    Post subject: Reply with quote

To wrote:
Try this:

emerge -C gentoo-dev-sources

backup your .config file and rm -rf /usr/src/linux*

emerge gentoo-dev-sources

make the symlink from your kernel dir to linux

copy your .config file to the linux dir

make oldconfig

make menuconfig

and see how it goes.

I don’t think this will work, because I already emerged another Kernel (development-sources 2.6.10-r1) and tried to make menuconfig in the new folder, with the same error…

But I’ll give it a try… ;)

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 11:55 am    Post subject: Reply with quote

To wrote:
Try this:

emerge -C gentoo-dev-sources

backup your .config file and rm -rf /usr/src/linux*

emerge gentoo-dev-sources

make the symlink from your kernel dir to linux

copy your .config file to the linux dir

make oldconfig

make menuconfig

and see how it goes.

Like I thought it doesn’t matter. I did everything from above with no failure, but the error persists:

Code:
make menuconfig

interrupted(11)

               make[1]: *** [menuconfig] Error 1

make: *** [menuconfig] Error 2

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 12:27 pm    Post subject: Reply with quote

I just booted knoppix 3.7 from CD and made a Filesystemcheck on each Partition in hope of finding ANYTHING….

…but nothing.

The make menuconfig and Segmentation fault error is not related to a Filesystem failure.

What could it be???

Back to top

View user's profile Send private message

kimchi_sg
Advocate
Advocate

Joined: 26 Nov 2004
Posts: 2917

PostPosted: Tue Mar 01, 2005 12:41 pm    Post subject: Reply with quote

Have you tried checking your RAM with memtest86 on the liveCD?

Code:
boot: memtest86

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 12:50 pm    Post subject: Reply with quote

kimchi_sg wrote:
Have you tried checking your RAM with memtest86 on the liveCD?

Code:
boot: memtest86

No, not yet.

I can’t imagine, that this could be the cause for my trouble, because the Systems works fine except these mentioned errors. Within several days of my running system should a memory-defect cause a hangup (or other problems and not everytime the same ones), what did not happen.

But to eliminate all possible causes i’ll do a memtest too.

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Tue Mar 01, 2005 3:19 pm    Post subject: Reply with quote

Alright, after 2 1/4 hours of mem-testing, I can say the memory is fine!

Not a single error occured!

So its not the memory.

I booted an «older» Kernel (gentoo-dev-sources-2.6.10-r4, instead of r6) and tried to make menuconfig, but the problem remains.

So its not the kernel either…

ARGH! I’m going mad, what could it be?

I’m trying now for two weeks… :cry:

Back to top

View user's profile Send private message

eerok
n00b
n00b

Joined: 14 Feb 2005
Posts: 69
Location: Canada

PostPosted: Tue Mar 01, 2005 5:41 pm    Post subject: Reply with quote

It could be hardware. The last time I got sig 11’s while compiling a kernel it was because my cpu fan was clogged. Unfortunately, cleaning it didn’t solve the problem; the cpu died soon after.

You might want to look at http://www.bitwizard.nl/sig11/

The references to hardware and software in that faq are old … but it’s an old problem.
_________________
noobus perpetuus

Back to top

View user's profile Send private message

{{Azrael}}
Tux’s lil’ helper
Tux's lil' helper

Joined: 01 Mar 2005
Posts: 117

PostPosted: Tue Mar 01, 2005 5:43 pm    Post subject: Reply with quote

How about:

make clean

:oops:

Back to top

View user's profile Send private message

donjuan
l33t
l33t

Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Wed Mar 02, 2005 12:33 am    Post subject: Reply with quote

Can you compile anything? I’m wondering if your make is bad.

Have you updated recently? Trying to think of broken packages here.
_________________
Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.

The Stage 1 on 3 Install

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Wed Mar 02, 2005 1:18 pm    Post subject: Reply with quote

eerok wrote:
It could be hardware. The last time I got sig 11’s while compiling a kernel it was because my cpu fan was clogged. Unfortunately, cleaning it didn’t solve the problem; the cpu died soon after.

You might want to look at http://www.bitwizard.nl/sig11/

The references to hardware and software in that faq are old … but it’s an old problem.

I don’t think it’s the hardware, because I just compiled openoffice-ximian 1.3.7 for about 18 hours now, without an error!

And I’d guess that oo-ximian is «heavier» to compile than a kernel…

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Wed Mar 02, 2005 1:22 pm    Post subject: Reply with quote

{{Azrael}} wrote:
How about:

make clean

:oops:

hm, quite interssting…

Code:

make clean

awk: cmd. line:2: fatal: cannot open file `/usr/src/linux-2.6.10-gentoo-r6/include/linux/version.h’ for reading (No such file or directory)



but the error remains.

Just for info again. I did like To said and removed all old ones and emerged the new one.

I’m now wondering why this mentioned file from above is missing…

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Wed Mar 02, 2005 1:30 pm    Post subject: Reply with quote

donjuan wrote:
Can you compile anything? I’m wondering if your make is bad.

Have you updated recently? Trying to think of broken packages here.

I recently (until now) compiled openoffice-ximian, so the mechanisms should work properly…

But what do you mean with «updated»? What updated?

How do I check the system of «broken packages»?

I made an esync, and an emerge system BEVORE I compiled openoffice, with nothing to do.

While writing this message I did it again and I’m really astonished:

Code:
emerge -pv system   

These are the packages that I would merge, in order:

Calculating system dependencies …done!

[ebuild     U ] sys-kernel/linux-headers-2.4.22-r1 [2.4.21-r1] -build 28,836 kB

Total size of downloads: 28,836 kB

Why should he (the system) want me to emerge vanilla-headers, though I’m using the gentoo-dev-sources-2.6.10-r6???

Back to top

View user's profile Send private message

donjuan
l33t
l33t

Joined: 11 May 2004
Posts: 760
Location: At Uni

PostPosted: Thu Mar 03, 2005 1:30 am    Post subject: Reply with quote

By «updated» I was primarily referring to emerge -uD world or similar. There’s no good way to check your system for broken packages (ones that aren’t working correctly). The revdep-rebuild command searches for missing libraries and a couple other things but otherwise there’s not really anything to help you there.

About the headers, the default is to still use 2.4 headers even with 2.6 kernels. The only thing I know of that requires 2.6 headers is NPTL.
_________________
Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.

The Stage 1 on 3 Install

Back to top

View user's profile Send private message

wbrack
n00b
n00b

Joined: 03 Mar 2005
Posts: 4
Location: Hong Kong

PostPosted: Thu Mar 03, 2005 4:55 am    Post subject: Reply with quote

I’m maintaining several different Gentoo systems [~8] and I got the same problem on one of them (but not any of the others). After a *lot* of debugging, I found that it was because of some trouble (within the Kernel scripts) in ncurses. By re-emerging ncurses, the problem (for me) was solved. I’d suggest you try that, and let us know whether that’s it for you as well.
Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Thu Mar 03, 2005 9:14 am    Post subject: Reply with quote

donjuan wrote:
By «updated» I was primarily referring to emerge -uD world or similar. There’s no good way to check your system for broken packages (ones that aren’t working correctly). The revdep-rebuild command searches for missing libraries and a couple other things but otherwise there’s not really anything to help you there.

About the headers, the default is to still use 2.4 headers even with 2.6 kernels. The only thing I know of that requires 2.6 headers is NPTL.



Alright, thanks for your explanation!

I think I hafe a problem with the gcc-compiler…

wbrack wrote:
After a *lot* of debugging, I found that it was because of some trouble (within the Kernel scripts) in ncurses. By re-emerging ncurses, the problem (for me) was solved. I’d suggest you try that, and let us know whether that’s it for you as well.



Alright i unmerged ncurses, with the warning it could damage my system. — No problem, but with the try to reemerge it:

Code:
gntobscurus (09:10 AM) :

checking for prefix… /usr

checking for i686-pc-linux-gnu-gcc… i686-pc-linux-gnu-gcc

checking for C compiler default output…

checking whether the C compiler works… yes

checking whether we are cross compiling… yes

checking for executable suffix…

checking for object suffix…

checking whether we are using the GNU C compiler… no

checking whether i686-pc-linux-gnu-gcc accepts -g… no

checking how to run the C preprocessor… i686-pc-linux-gnu-gcc -E

checking for POSIXized ISC… no

checking for i686-pc-linux-gnu-gcc option to accept ANSI C… no

configure: error: Your compiler does not appear to recognize prototypes.

You have the following choices:

        a. adjust your compiler options

        b. get an up-to-date compiler

        c. use a wrapper such as unproto

!!! Please attach the config.log to your bug report:

!!! /var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/config.log

!!! ERROR: sys-libs/ncurses-5.4-r5 failed.

!!! Function econf, Line 485, Exitcode 0

!!! econf failed

!!! If you need support, post the topmost build error, NOT this status message.



So I’d say something with gcc itself is broken.

I tried to

Code:
emerge -pv gcc

These are the packages that I would merge, in order:

Calculating dependencies …done!

[ebuild  N    ] sys-libs/ncurses-5.4-r5  -bootstrap -build -debug -doc +gpm -nocxx (-uclibc) +unicode 0 kB

[ebuild   R   ] sys-devel/gcc-3.3.5-r1  -bootstrap -boundschecking -build -debug +fortran -gcj +gtk -hardened (-ip28) (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 23,550 kB

Total size of downloads: 23,550 kB



and thougt it would be alright after emerging gcc

Code:
 

emerge -v gcc

Calculating dependencies …done!

>>> emerge (1 of 2) sys-libs/ncurses-5.4-r5 to /

>>> md5 src_uri ;-) ncurses-5.4.tar.gz

>>> Unpacking source…

>>> Unpacking ncurses-5.4.tar.gz to /var/tmp/portage/ncurses-5.4-r5/work

 * Applying ncurses-5.4-xterm.patch …                                                                                                                            [ ok ]

 * Applying ncurses-5.4-share-sed.patch …                                                                                                                        [ ok ]

 * Using GNU config files from /usr/share/libtool

 *  Updating config.sub                                                                                                                                            [ ok ]

 *  Updating config.guess                                                                                                                                          [ ok ]

>>> Source unpacked.

gcc

* econf: updating ncurses-5.4/config.guess with /usr/share/gnuconfig/config.guess

 * econf: updating ncurses-5.4/config.sub with /usr/share/gnuconfig/config.sub

./configure —prefix=/usr —host=i686-pc-linux-gnu —mandir=/usr/share/man —infodir=/usr/share/info —datadir=/usr/share —sysconfdir=/etc —localstatedir=/var/lib —libdir=/lib —with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo —disable-termcap —with-shared —with-rcs-ids —without-ada —enable-symlinks —program-prefix= —without-debug —with-gpm —enable-widec

configure: WARNING: If you wanted to set the —build type, don’t use —host.

    If a cross compiler is detected then cross compile mode will be used.

Configuring NCURSES 5.4 ABI 5 (Thu Mar  3 09:16:35 CET 2005)

checking build system type… i686-pc-linux-gnu

checking host system type… i686-pc-linux-gnu

checking target system type… i686-pc-linux-gnu

Configuring for linux-gnu

checking for prefix… /usr

checking for i686-pc-linux-gnu-gcc… i686-pc-linux-gnu-gcc

checking for C compiler default output…

checking whether the C compiler works… yes

checking whether we are cross compiling… yes

checking for executable suffix…

checking for object suffix…

checking whether we are using the GNU C compiler… no

checking whether i686-pc-linux-gnu-gcc accepts -g… no

checking how to run the C preprocessor… i686-pc-linux-gnu-gcc -E

checking for POSIXized ISC… no

checking for i686-pc-linux-gnu-gcc option to accept ANSI C… no

configure: error: Your compiler does not appear to recognize prototypes.

You have the following choices:

       a. adjust your compiler options

        b. get an up-to-date compiler

        c. use a wrapper such as unproto

!!! Please attach the config.log to your bug report:

!!! /var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/config.log

!!! ERROR: sys-libs/ncurses-5.4-r5 failed.

!!! Function econf, Line 485, Exitcode 0

!!! econf failed

!!! If you need support, post the topmost build error, NOT this status message.

Too bad, that without ncurses the system is not able to make less, ls, …

But I deleted the distfile

Code:
rm /usr/portage/distfiles/ncurses-5.4.tar.gz

and tried it again.

O.K. wrong way! If the gcc-compiler is the problem, I can’t solve it by trying with ncurses.

Next I’ll try to use a gcc-3.3.5-r1-binary from https://www.entrap.de/binaries/ especially https://www.entrap.de/binaries/gcc-3.3.5-r1.tbz2

I don’t know yet how to make it to be used, but I’ll see… ;)

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Thu Mar 03, 2005 10:01 am    Post subject: Reply with quote

I untared the gcc-binary and setup the paths within /etc/env.d/05gcc.

Afterwards I did an env-update with the ncurses-error.

I thought this should be enough to setup the «new» gcc-compiler.

But after doing emerge ncurses, the error perists.

:evil:

damn!

Shall I reboot and hope the environment is setup correctly, or should I overwrite the original gcc-folders?

I think I’ll try to rename the original gcc-folders and untar the binary to the «original gcc places»…

Back to top

View user's profile Send private message

obscurus
Tux’s lil’ helper
Tux's lil' helper

Joined: 30 Aug 2002
Posts: 89
Location: Deutschland — Köln

PostPosted: Thu Mar 03, 2005 10:42 am    Post subject: Reply with quote

O.K. I think it’s time to reinstall the system! :(

After replacing the original with the downloaded (gentoo, i686, like mine) binary-files and rebooting my hope is lost… ;(

I’ll reinstall the system and the first thing i’ll do is to use partimage

Back to top

View user's profile Send private message

wbrack
n00b
n00b

Joined: 03 Mar 2005
Posts: 4
Location: Hong Kong

PostPosted: Thu Mar 03, 2005 1:09 pm    Post subject: Reply with quote

Sorry to hear of your problems. Just for anyone else following this thread, when I suggested to re-emerge ncurses, that meant to just «emerge ncurses» (i.e. not to «emerge -C ncurses» first, which would certainly be dangerous).
Back to top

View user's profile Send private message

Spirit4ever
n00b
n00b

Joined: 14 Nov 2003
Posts: 58
Location: Germany, Augsburg

PostPosted: Sat Nov 12, 2005 1:59 pm    Post subject: Reply with quote

wbrack wrote:
Sorry to hear of your problems. Just for anyone else following this thread, when I suggested to re-emerge ncurses, that meant to just «emerge ncurses» (i.e. not to «emerge -C ncurses» first, which would certainly be dangerous).



Just for the info .. «emerge ncurses» (without «-C»!!) does fix it..

Back to top

View user's profile Send private message

kgodric
n00b
n00b

Joined: 14 Nov 2005
Posts: 1

PostPosted: Mon Nov 14, 2005 5:49 pm    Post subject: Reply with quote

I re-emerged ncurses and it corrected the issues I was having with getting make menuconf to run. The output I was getting is as follows:

Code:

  HOSTCC  scripts/kconfig/conf.o

  HOSTCC  scripts/kconfig/kxgettext.o

  HOSTCC  scripts/kconfig/mconf.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/lex.zconf.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/mconf

  HOSTCC  scripts/lxdialog/checklist.o

  HOSTCC  scripts/lxdialog/inputbox.o

  HOSTCC  scripts/lxdialog/lxdialog.o

  HOSTCC  scripts/lxdialog/menubox.o

  HOSTCC  scripts/lxdialog/msgbox.o

  HOSTCC  scripts/lxdialog/textbox.o

  HOSTCC  scripts/lxdialog/util.o

  HOSTCC  scripts/lxdialog/yesno.o

  HOSTLD  scripts/lxdialog/lxdialog

scripts/kconfig/mconf arch/i386/Kconfig

#

# using defaults found in arch/i386/defconfig

#

arch/i386/defconfig:129: trying to assign nonexistent symbol PM_DISK

arch/i386/defconfig:176: trying to assign nonexistent symbol PCI_USE_VECTOR

arch/i386/defconfig:221: trying to assign nonexistent symbol PARPORT_PC_CML1

arch/i386/defconfig:225: trying to assign nonexistent symbol PARPORT_OTHER

arch/i386/defconfig:252: trying to assign nonexistent symbol BLK_DEV_CARMEL

arch/i386/defconfig:273: trying to assign nonexistent symbol IDE_TASKFILE_IO

arch/i386/defconfig:292: trying to assign nonexistent symbol BLK_DEV_ADMA

arch/i386/defconfig:365: trying to assign nonexistent symbol SCSI_MEGARAID

arch/i386/defconfig:406: trying to assign nonexistent symbol SCSI_QLA6322

arch/i386/defconfig:477: trying to assign nonexistent symbol NETLINK_DEV

arch/i386/defconfig:569: trying to assign nonexistent symbol NET_FASTROUTE

arch/i386/defconfig:570: trying to assign nonexistent symbol NET_HW_FLOWCONTROL

arch/i386/defconfig:720: trying to assign nonexistent symbol SOUND_GAMEPORT

arch/i386/defconfig:776: trying to assign nonexistent symbol QIC02_TAPE

arch/i386/defconfig:998: trying to assign nonexistent symbol USB_STORAGE_HP8200e

arch/i386/defconfig:1024: trying to assign nonexistent symbol USB_HPUSBSCSI

arch/i386/defconfig:1059: trying to assign nonexistent symbol USB_TIGL

arch/i386/defconfig:1246: trying to assign nonexistent symbol X86_STD_RESOURCES

Your kernel configuration changes were NOT saved.

No matter what Kernel I used, I received this error. Once I re-emerged ncurses as listed in above posts, make menuconfig worked like a charm. You may, also, want to verify that you do not have the minimal tag in your make.conf file. This can cause some issues in the long run. You can see what use flags are going to affect your emerge by using:

Code:
emerge -vp [insert package here]

Kurt

Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Понравилась статья? Поделить с друзьями:
  • Mail ru ошибка загрузки файла
  • Mail ru ошибка авторизации 535
  • Mail ru ошибка 505
  • Mail ru ошибка 451
  • Mail ru внутренняя ошибка сборщика