On Sunday 18 October 2009 05:49, Mark Constable wrote:
> Using Git on x86_64, make defconfig && make gives this error...
> 
> ...
> klogd (KLOGD) [Y/n/?] y
> logger (LOGGER) [Y/n/?] y
> gcc -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wshadow -Wwrite-strings 
> -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function 
> -Wunused-value -Wmissing-prototypes -Wmissing-declarations 
> -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen 
> -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections 
> -fno-guess-branch-probability -funsigned-char -static-libgcc 
> -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os   
> -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE 
> -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
> -D"BB_VER=KBUILD_STR(1.16.0.git)" -DBB_BT=AUTOCONF_TIMESTAMP   
> applets/usage_pod.c   m crypt -o applets/usage_pod
> gcc: m: No such file or directory
> gcc: crypt: No such file or directory

You somehow get HOSTCFLAGS or HOST_EXTRACFLAGS messed up.
The above command should look like this:

gcc -Wp,-MD,applets/.usage_pod.d  -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -Iinclude -Iinclude -o applets/usage_pod 
applets/usage_pod.c

and it should be visible with "make V=1" only.

What is your version of make?

Does it happen if you clean up environment? Like this:

env - "PATH=$PATH" make

> applets/usage_pod.c:19:27: error: applet_tables.h: No such file or directory
> applets/usage_pod.c: In function 'main':
> applets/usage_pod.c:45: error: 'applet_names' undeclared (first use in this 
> function)
> applets/usage_pod.c:45: error: (Each undeclared identifier is reported only 
> once
> applets/usage_pod.c:45: error: for each function it appears in.)
> ...

Here is the same on my machine:

# make defconfig && make
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  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
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -d Config.in
*
* Busybox Configuration
*
*
* Busybox Settings
*
*
* General Configuration
*
Enable options for full-blown desktop systems (DESKTOP) [N/y/?] n
Provide compatible behavior for rare corner cases (bigger code) (EXTRA_COMPAT) 
[N/y/?] n
Avoid using GCC-specific code constructs (USE_PORTABLE_CODE) [N/y/?] (NEW) n
...
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  GEN     include/usage_compressed.h
12995+0 records in
12995+0 records out
  HOSTCC  applets/applet_tables
  GEN     include/applet_tables.h
  CC      applets/applets.o
  LD      applets/built-in.o
  HOSTCC  applets/usage_pod
  LD      archival/built-in.o
  CC      archival/ar.o
  CC      archival/bbunzip.o
  CC      archival/bzip2.o
...
  CC      util-linux/volume_id/volume_id.o
  CC      util-linux/volume_id/xfs.o
  AR      util-linux/volume_id/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m
 Library crypt is not needed, excluding it
 Library m is needed, can't exclude it (yet)
Final link with: m
  DOC     busybox.pod
  DOC     BusyBox.txt
  DOC     BusyBox.1
  DOC     BusyBox.html

--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to