Ticket #151 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Busybox build failure

Reported by: cisa@cisa85.de Assigned to: wbx
Priority: minor Milestone: 1.0
Component: packages Version: trunk
Keywords: busybox compile problem Cc:

Description

Akismet went mad again.....

As reported by cisa@cisa85.de:

Building the package fails with following output:

# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:16:29:
# macro "usage" passed 1 arguments, but takes just 0
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:17:
# error: syntax error before '{' token
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# error: parse error before numeric constant
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# warning: type defaults to `int' in declaration of `exit'
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# warning: function declaration isn't a prototype
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# error: conflicting types for 'exit'
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# error: conflicting types for 'exit'
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23:
# warning: data definition has no type or storage class
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121:16:
# macro "usage" passed 1 arguments, but takes just 0
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:
# In function `lock_main':
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121:
# error: `usage' undeclared (first use in this function)
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121:
# error: (Each undeclared identifier is reported only once
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121:
# error: for each function it appears in.)
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/modutils/lsmod.c:
# In function `lsmod_main':
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/modutils/lsmod.c:109:
# warning: dereferencing type-punned pointer will break strict-aliasing
# rules
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/modutils/lsmod.c:127:
# warning: dereferencing type-punned pointer will break strict-aliasing
# rules
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/modutils/rmmod.c:
# In function `rmmod_main':
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/modutils/rmmod.c:89:
# warning: passing arg 3 of `my_query_module' from incompatible pointer
# type
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c:
# In function `netmsg_main':
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c:56:
# warning: implicit declaration of function `close'
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c:17:
# warning: unused variable `i'
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/udhcp/options.c:44:
# warning: initializer-string for array of chars is too long
# /home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/udhcp/options.c:44:
# warning: (near initialization for `dhcp_options[26].name')
# gmake[7]: *** [busybox_unstripped] Error 1
# gmake[6]: *** [_all] Error 2
# gmake[5]: ***
# [/home/hg/wrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/.built]
# Error 2
# gmake[4]: *** [compile] Error 2
# gmake[3]: *** [busybox-compile] Error 2
# gmake[2]: *** [package/compile] Error 2
# gmake[1]: *** [world] Fehler 2
# make: *** [all] Fehler 2 

freewrt-trunk-src-2006-11-30.tar.gz builds fine.

Attachments

Change History

12/10/06 18:51:15 changed by wbx

  • keywords set to busybox compile problem.
  • owner changed from somebody to wbx.
  • reporter changed from ulmen to cisa@cisa85.de.
  • status changed from new to assigned.
  • priority changed from critical to minor.

We need more information about this problem. You should always at least provide some information about your host system.

uname -a Distribution? gcc -v

Your .config you used to compile a FreeWRT image.

thx in advance

wbx

12/26/06 12:14:44 changed by wbx

  • status changed from assigned to closed.
  • resolution set to worksforme.

no answer. seems to be not reproducable. please reopen with more details.

02/08/07 12:57:49 changed by Romain <romain@mezimail.com>

  • status changed from closed to reopened.
  • version changed from 1.0 to trunk.
  • resolution deleted.

I have the same problem, here my info :

Linux XXXX 2.6.18-4-686 #1 SMP Fri Feb 2 15:10:49 UTC 2007 i686 GNU/Linux

Debian GNU/Linux sid

Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

02/08/07 13:11:34 changed by Romain <romain@mezimail.com>

here the build log :

/bin/bash /tmp/freewrt/freewrt_1_0/scripts/scan-pkgs.sh
/tmp/freewrt/freewrt_1_0/lbin/gmake -f mk/build.mk tools/install toolchain/install target/compile package/compile root_clean package/install target/install package_index
/tmp/freewrt/freewrt_1_0/lbin/gmake -C tools install
/tmp/freewrt/freewrt_1_0/lbin/gmake -C toolchain install
/tmp/freewrt/freewrt_1_0/lbin/gmake -C target compile
/tmp/freewrt/freewrt_1_0/lbin/gmake -C linux prepare
/tmp/freewrt/freewrt_1_0/lbin/gmake -C brcm-2.4 BOARD="brcm" MODEL="asus-wl500g" prepare
mkdir -p /tmp/freewrt/freewrt_1_0/bin/packages
/tmp/freewrt/freewrt_1_0/lbin/gmake -C linux compile
/tmp/freewrt/freewrt_1_0/lbin/gmake -C brcm-2.4 BOARD="brcm" MODEL="asus-wl500g" compile
mkdir -p /tmp/freewrt/freewrt_1_0/bin/packages
/tmp/freewrt/freewrt_1_0/lbin/gmake -C package compile
/tmp/freewrt/freewrt_1_0/lbin/gmake CC=/tmp/freewrt/freewrt_1_0/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc CROSS="/tmp/freewrt/freewrt_1_0/staging_dir_mipsel/bin/mipsel-linux-uclibc-" PREFIX="/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/ipkg/busybox" \
                EXTRA_CFLAGS="-Os -fno-ident" ARCH="mipsel" -C /tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3
/tmp/freewrt/freewrt_1_0/lbin/gmake -C /tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3 \
        top_srcdir=/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3 \
        top_builddir=/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3 \
        KBUILD_SRC=/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3 \
        -f /tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/Makefile _all
/tmp/freewrt/freewrt_1_0/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc -I/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/include -I/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/include -I/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/libbb -funsigned-char -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wstrict-prototypes -Wshadow -Os -funit-at-a-time -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -Os -DIPKG_LIB -DIPKGLIBDIR="/usr/lib" -DHOST_CPU_STR="mipsel" -Os -fno-ident -Wl,--warn-common -Wl,--sort-common
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:16:29: macro "usage" passed 1 arguments, but takes just 0
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:17: error: syntax error before '{' token
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: error: parse error before numeric constant
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: warning: type defaults to `int' in declaration of `exit'
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: warning: function declaration isn't a prototype
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: error: conflicting types for 'exit'
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: error: conflicting types for 'exit'
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:23: warning: data definition has no type or storage class
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121:16: macro "usage" passed 1 arguments, but takes just 0
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c: In function `lock_main':
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121: error: `usage' undeclared (first use in this function)
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121: error: (Each undeclared identifier is reported only once
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/miscutils/lock.c:121: error: for each function it appears in.)
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c: In function `netmsg_main':
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c:56: warning: implicit declaration of function `close'
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/netmsg.c:17: warning: unused variable `i'
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/udhcp/options.c:44: warning: initializer-string for array of chars is too long
/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/networking/udhcp/options.c:44: warning: (near initialization for `dhcp_options[26].name')
gmake[7]: *** [busybox_unstripped] Error 1
gmake[6]: *** [_all] Error 2
gmake[5]: *** [/tmp/freewrt/freewrt_1_0/build_mipsel/w-busybox-1.1.3-6/busybox-1.1.3/.built] Error 2
gmake[4]: *** [compile] Error 2
gmake[3]: *** [busybox-compile] Error 2
gmake[2]: *** [package/compile] Error 2
gmake[1]: *** [world] Error 2
make: *** [all] Error 2

03/26/07 00:27:33 changed by wbx

  • status changed from reopened to closed.
  • resolution set to fixed.

fixed in #2270. BUSYBOX_CONFIG_BUILD_AT_ONCE=y does not work correctly with some addon applets. I disabled it in busybox config.


Add/Change #151 (Busybox build failure)




Action