2008-01-29 16:59:05     Build error with make menuconfig

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-01-29 16:59:05     Build error with make menuconfig

Mark Noonchester (NEW ZEALAND)

Message: 50338    Error with

<pre class="code">make menuconfig

Mac OS X 10.4.11

 

Was working but now seems to have been broken

 

latest toolchain.  uboot builds fine

 

any ideas?

 

find vendors -mindepth 2 -name Kconfig | sed 's:^:source ../:' > vendors/Kconfig

config/mkconfig > Kconfig

CC=cc make -C /Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig conf

cc   conf.o zconf.tab.o   -o conf

/usr/bin/ld: Undefined symbols:

_libintl_gettext

collect2: ld returned 1 exit status

make[1]: *** [conf] Error 1

make: *** [/Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig/conf] Error 2

QuoteReplyEditDelete

 

 

2008-01-29 19:06:27     Re: Build error with make menuconfig

Mike Frysinger (UNITED STATES)

Message: 50339    should be fixed in svn trunk now

QuoteReplyEditDelete

 

 

2008-01-30 21:36:22     Re: Build error with make menuconfig

Mark Noonchester (NEW ZEALAND)

Message: 50409    still not fixed

 

nooney:/Volumes/Work_d/blackfin-sources/u-boot$ cd /Volumes/Work_d/blackfin-sources/uclinux-dist

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ svn up

 

Fetching external item into 'linux-2.6.x'

U    linux-2.6.x/arch/blackfin/kernel/setup.c

U    linux-2.6.x/arch/blackfin/kernel/vmlinux.lds.S

U    linux-2.6.x/arch/blackfin/kernel/init_task.c

Updated external to revision 4192.

 

Updated to revision 6127.

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make menuconfig

find vendors -mindepth 2 -name Kconfig | sed 's:^:source ../:' > vendors/Kconfig

config/mkconfig > Kconfig

CC=cc make -C /Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig conf

cc   conf.o zconf.tab.o  -lncurses -o conf

/usr/bin/ld: Undefined symbols:

_libintl_gettext

collect2: ld returned 1 exit status

make[1]: *** [conf] Error 1

make: *** [/Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig/conf] Error 2

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make xconfig

make: *** No rule to make target `xconfig'.  Stop.

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make

*************************************************

You have not run make config.

The build sequence for this source tree is:

1. 'make config' or 'make xconfig'

2. 'make dep'

3. 'make'

*************************************************

make: *** [config_error] Error 1

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make xconfig

make: *** No rule to make target `xconfig'.  Stop.

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make config

find vendors -mindepth 2 -name Kconfig | sed 's:^:source ../:' > vendors/Kconfig

config/mkconfig > Kconfig

CC=cc make -C /Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig conf

cc   conf.o zconf.tab.o  -lncurses -o conf

/usr/bin/ld: Undefined symbols:

_libintl_gettext

collect2: ld returned 1 exit status

make[1]: *** [conf] Error 1

make: *** [/Volumes/Work_d/blackfin-sources/uclinux-dist/config/kconfig/conf] Error 2

QuoteReplyEditDelete

 

 

2008-01-30 23:41:40     Re: Build error with make menuconfig

Mike Frysinger (UNITED STATES)

Message: 50411    you need to make clean first

 

to be sure, run:

make -C config/kconfig clean

QuoteReplyEditDelete

 

 

2008-01-31 00:27:30     Re: Build error with make menuconfig

Mark Noonchester (NEW ZEALAND)

Message: 50412    Thanks that helped but.....

 

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/basic/docproc

  HOSTCC  scripts/kconfig/conf.o

  HOSTCC  scripts/kconfig/kxgettext.o

  HOSTCC  scripts/kconfig/mconf.o

scripts/kconfig/mconf.c: In function 'main':

scripts/kconfig/mconf.c:1048: warning: statement with no effect

scripts/kconfig/mconf.c:1049: warning: statement with no effect

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

scripts/kconfig/conf -s arch/blackfin/Kconfig

  SYMLINK include/asm-blackfin/mach-bf533 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  CC      arch/blackfin/kernel/asm-offsets.s

  GEN     include/asm-blackfin/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

scripts/mod/mk_elfconfig.c:4:17: error: elf.h: No such file or directory

scripts/mod/mk_elfconfig.c: In function 'main':

scripts/mod/mk_elfconfig.c:9: error: 'EI_NIDENT' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:9: error: (Each undeclared identifier is reported only once

scripts/mod/mk_elfconfig.c:9: error: for each function it appears in.)

scripts/mod/mk_elfconfig.c:19: error: 'ELFMAG' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:19: error: 'SELFMAG' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:23: error: 'EI_CLASS' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:24: error: 'ELFCLASS32' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:27: error: 'ELFCLASS64' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:33: error: 'EI_DATA' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:34: error: 'ELFDATA2LSB' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:37: error: 'ELFDATA2MSB' undeclared (first use in this function)

scripts/mod/mk_elfconfig.c:9: warning: unused variable 'ei'

make[3]: *** [scripts/mod/mk_elfconfig] Error 1

make[2]: *** [scripts/mod] Error 2

make[1]: *** [scripts] Error 2

make: *** [linux] Error 1

 

any ideas?

 

Building with the defaults and the 533_stamp

 

 

QuoteReplyEditDelete

 

 

2008-01-31 09:05:20     Re: Build error with make menuconfig

Mike Frysinger (UNITED STATES)

Message: 50467    the kernel build system currently requires elf.h to be installed in your development system

 

you can find an elf.h in the uClibc directory ... just place it into /usr/local/include/ or something

QuoteReplyEditDelete

 

 

2008-02-03 20:24:07     Re: Build error with make menuconfig

Mark Noonchester (NEW ZEALAND)

Message: 50622    nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

scripts/kconfig/conf -s arch/blackfin/Kconfig

  SYMLINK include/asm-blackfin/mach-bf533 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  UPD     include/linux/utsrelease.h

  CALL    scripts/checksyscalls.sh

  HOSTCC  scripts/mod/mk_elfconfig

In file included from /usr/local/include/elf.h:23,

                 from scripts/mod/mk_elfconfig.c:4:

/usr/local/include/features.h:35:32: error: bits/uClibc_config.h: No such file or directory

/usr/local/include/features.h:37:39: error: bits/uClibc_arch_features.h: No such file or directory

make[3]: *** [scripts/mod/mk_elfconfig] Error 1

make[2]: *** [scripts/mod] Error 2

make[1]: *** [scripts] Error 2

make: *** [linux] Error 1

 

sudo cp /Volumes/Work_d/blackfin-sources/toolchain/uClibc/include/features.h /usr/local/include/.

 

nooney:/Volumes/Work_d/blackfin-sources/uclinux-dist$ make

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

  SYMLINK include/asm-blackfin/mach-bf533 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/basic/docproc

  CC      arch/blackfin/kernel/asm-offsets.s

  GEN     include/asm-blackfin/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

In file included from /usr/local/include/elf.h:23,

                 from scripts/mod/mk_elfconfig.c:4:

/usr/local/include/features.h:35:32: error: bits/uClibc_config.h: No such file or directory

/usr/local/include/features.h:37:39: error: bits/uClibc_arch_features.h: No such file or directory

make[3]: *** [scripts/mod/mk_elfconfig] Error 1

make[2]: *** [scripts/mod] Error 2

make[1]: *** [scripts] Error 2

make: *** [linux] Error 1

 

Am I using the wrong version of features.h or is something else wrong.

Attachments

    Outcomes