Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305863 - sys-apps/busybox-1.14.2 fails to build on amd64: error in miscutils/flash_eraseall.c
Summary: sys-apps/busybox-1.14.2 fails to build on amd64: error in miscutils/flash_era...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 11:28 UTC by Markus Walter
Modified: 2010-03-20 09:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build-log for busybox 1.14,2 (build.log,23.75 KB, text/plain)
2010-02-19 11:29 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2010-02-19 11:28:09 UTC
When I try to merge the current stable busybox (1.14.2) I get the following error:

  CC      miscutils/flash_eraseall.o
miscutils/flash_eraseall.c:15:28: error: mtd/jffs2-user.h: No such file or directory
miscutils/flash_eraseall.c: In function 'flash_eraseall_main':
miscutils/flash_eraseall.c:52: error: storage size of 'cleanmarker' isn't known
miscutils/flash_eraseall.c:83: warning: implicit declaration of function 'cpu_to_je16'
miscutils/flash_eraseall.c:83: error: 'JFFS2_MAGIC_BITMASK' undeclared (first use in this function)
miscutils/flash_eraseall.c:83: error: (Each undeclared identifier is reported only once
miscutils/flash_eraseall.c:83: error: for each function it appears in.)
miscutils/flash_eraseall.c:84: error: 'JFFS2_NODETYPE_CLEANMARKER' undeclared (first use in this function)
miscutils/flash_eraseall.c:86: warning: implicit declaration of function 'cpu_to_je32'
miscutils/flash_eraseall.c:86: error: invalid application of 'sizeof' to incomplete type 'struct jffs2_unknown_node' 
miscutils/flash_eraseall.c:121: error: invalid application of 'sizeof' to incomplete type 'struct jffs2_unknown_node' 
miscutils/flash_eraseall.c:122: warning: overflow in implicit constant conversion
miscutils/flash_eraseall.c:52: warning: unused variable 'cleanmarker'
make[1]: *** [miscutils/flash_eraseall.o] Error 1
make: *** [miscutils] Error 2

This error does not occur with the current unstable version (1.15.3). Unfortunately I don't have a clue what's happening here.

My info:

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 19 Feb 2010 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.lagis.at/ ftp://gentoo.lagis.at/ http://gentoo.wetzlmayr.com/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv imagemagick ipv6 jpeg ldap libnotify lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Walter 2010-02-19 11:29:26 UTC
Created attachment 220341 [details]
build-log for busybox 1.14,2

for this run I used MAKEOPTS="-j1"
Comment 2 Jon Severinsson 2010-02-21 09:34:07 UTC
Im getting the same error on both amd64 and x86. I believe it has to do with upgrading linux-headers from 2.6.30 to 2.6.32, as a google on the missing header indicates that it was part of the kernel once upon a time.
Comment 3 Azamat H. Hackimov 2010-02-21 21:39:36 UTC
This is >=linux-headers-2.6.32 and <busybox-1.6.0 compatibility problem.

mtd/jffs2-user.h is moved to linux/jffs2.h

There may be three options:

1. mask >=linux-headers-2.6.32 and (probably) kernel 2.6.32 too
2. wait until busybox-1.6.0 gets into portage
3. use patch for compatibility

I'll try make patch for 3th option.
Comment 4 Azamat H. Hackimov 2010-02-21 21:53:16 UTC
(In reply to comment #3)
Uhh, sorry for previous post, I didn't tested all variants.

To solve this problem, just unmask and install 1.15.3, this is correct version for 2.6.32.
Comment 5 Markus Walter 2010-02-22 09:54:41 UTC
OK, I see the problem (current unstable linux-headers don't mix with current stabele busybox).

What about making busybox-1.14.2 depend on linux-headers<2.6.32 just to state this dependency. 

If I understand it correctly, dependencies on things in the 'system' set are not listed. But here it would be nice, since a specific version is required.
Comment 6 Marcus Spading 2010-02-23 20:02:57 UTC
(In reply to comment #3)
> 3. use patch for compatibility
> 
> I'll try make patch for 3th option.

You don't need to. The upstream is aware of this problem [1] and already has a patch [2] for this problem available too. I tried it and it fixes the build problem.

[1] http://www.mail-archive.com/busybox@busybox.net/msg10192.html
[2] http://busybox.net/downloads/fixes-1.15.2/busybox-1.15.2-flash.patch
Comment 7 Azamat H. Hackimov 2010-02-23 20:13:31 UTC
(In reply to comment #6)
> You don't need to. The upstream is aware of this problem [1] and already has a
> patch [2] for this problem available too. I tried it and it fixes the build
> problem.

Yeah, I knew it. As already I wrote, unmasking 1.15.3 is enough to solve this problem.