Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 210232

Summary: sys-fs/e2fsprogs-1.40.4 failed
Product: Gentoo Linux Reporter: Dr. Carl Frederik Loos <frederik.loos>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: aaron, ad_grobi
Priority: High    
Version: 2007.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: unix.i output file
Desired Output

Description Dr. Carl Frederik Loos 2008-02-15 10:51:54 UTC
e2fsprogs is not emerging cleanly. I have created a new system from stage3 install and it still fails to built. 

As using the discussion forums did not help either, the cause could be my system configuration / please refer to emerge --info below

<snip>
make[2]: `lib/uuid/uuid_types.h' is up to date.
make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4'
making all in e2fsck
make[2]: Entering directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4/e2fsck'
        CC dict.c
        COMPILE_ET prof_err.et
        CC unix.c
unix.c: In function ‘PRS’:
unix.c:614: error: ‘et_ext2_error_table’ undeclared (first use in this function)
unix.c:614: error: (Each undeclared identifier is reported only once
unix.c:614: error: for each function it appears in.)
unix.c:615: error: ‘et_prof_error_table’ undeclared (first use in this function)
unix.c: In function ‘main’:
unix.c:1362: error: ‘et_ext2_error_table’ undeclared (first use in this function)
unix.c:1363: error: ‘et_prof_error_table’ undeclared (first use in this function)
make[2]: *** [unix.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4/e2fsck'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4'
make: *** [all] Error 2
 * 
 * ERROR: sys-fs/e2fsprogs-1.40.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2345:  Called die
 * The specific snippet of code:
 *       emake -j1 COMPILE_ET=compile_et || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/temp/environment'.
 * 

 * Messages for package sys-fs/e2fsprogs-1.40.4:

 * 
 * ERROR: sys-fs/e2fsprogs-1.40.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2345:  Called die
 * The specific snippet of code:
 *       emake -j1 COMPILE_ET=compile_et || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/e2fsprogs-1.40.4/temp/environment'.
 * 
</snip>


emerge --info>

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-14-generic i686)
=================================================================
System uname: 2.6.22-14-generic i686 AMD Athlon(tm) Processor
Timestamp of tree: Fri, 15 Feb 2008 08:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/qmail/alias /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_US.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa ao arts asf audiofile berkdb bidi bitmap-fonts bootsplash bzip2 bzlib cairo cdda cddb cdparanoia cdr cdrom cli cracklib crypt css cups dbus dga directfb dri dv dvb dvd dvdr dvdram dvdread edl encode fbcon ffmpeg flac fortran gdbm gif gpm gtk h323 hal iconv ieee1394 imagemagick ipv6 isdnlog java javascript jpeg jpeg2k kde kdepim kdexdeltas latex ldap libcaca liv live logrotate matroska midi mixer mjpeg mmx mmxext mono mp3 mpeg mpeg4 mplayer mudflap ncurses network nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt3support quicktime rar raw rdesktop readline reflection samba sdl server session slang speex spell spl sse ssl subtitles svg tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vcdimager vdr vnc vorbis webdav win32codecs wmf x264 x86 xcomposite xemacs xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2008-02-17 09:40:27 UTC
go into /var/tmp/portage/sys-fs/e2fsprogs-1.40.4/work/e2fsprogs-1.40.4/e2fsck and run:
make unix.o

if that fails as well, run:
sed -i '/^[[:space:]]*@/s:@::' Makefile
make unix.o

and post the output
Comment 2 Dr. Carl Frederik Loos 2008-02-17 21:06:46 UTC
Sorry, but both attempts failed


loos e2fsck # make unix.o
        CC unix.c
unix.c: In function 'PRS':
unix.c:614: error: 'et_ext2_error_table' undeclared (first use in this function)
unix.c:614: error: (Each undeclared identifier is reported only once
unix.c:614: error: for each function it appears in.)
unix.c:615: error: 'et_prof_error_table' undeclared (first use in this function)
unix.c: In function 'main':
unix.c:1362: error: 'et_ext2_error_table' undeclared (first use in this function)
unix.c:1363: error: 'et_prof_error_table' undeclared (first use in this function)
make: *** [unix.o] Error 1


loos e2fsck # sed -i '/^[[:space:]]*@/s:@::' Makefile
loos e2fsck # make unix.o
echo "  CC unix.c"
        CC unix.c
i686-pc-linux-gnu-gcc -c -I../lib -I../lib  -DLOCALEDIR=\"/usr/share/locale\" -DROOT_SYSCONFDIR=\"/etc\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DENABLE_HTREE=1 -DENABLE_SWAPFS=1 -DTLS=__thread -DUSE_UUIDD=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"0.14.1\" -DHAVE_LONG_LONG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_INTMAX_T=1 -DHAVE_POSIX_PRINTF=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 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unix.o
unix.c: In function 'PRS':
unix.c:614: error: 'et_ext2_error_table' undeclared (first use in this function)
unix.c:614: error: (Each undeclared identifier is reported only once
unix.c:614: error: for each function it appears in.)
unix.c:615: error: 'et_prof_error_table' undeclared (first use in this function)
unix.c: In function 'main':
unix.c:1362: error: 'et_ext2_error_table' undeclared (first use in this function)
unix.c:1363: error: 'et_prof_error_table' undeclared (first use in this function)
make: *** [unix.o] Error 1
Comment 3 SpanKY gentoo-dev 2008-02-18 05:32:27 UTC
so take that long command line that it echoed out, remove "-c" and "-o unix.o", and add "-E -dD -o unix.i"

then post the unix.i file as an attachment
Comment 4 Dr. Carl Frederik Loos 2008-02-18 09:02:06 UTC
Whow - that was astounding! I didn't get any output file at all because of

bash: CC: command not found

So I tried to make a link to cc to avoid the capitals

loos bin # ln -s /usr/bin/cc CC

now it gives me 

gcc-config error: Could not run/locate "CC"





Comment 5 SpanKY gentoo-dev 2008-02-18 09:28:47 UTC
err, dont type "CC unix.c", that is just a status message

run the command starting with i686-.....
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-02-18 15:17:13 UTC
(In reply to comment #4)
> Whow - that was astounding! I didn't get any output file at all because of
> 
> bash: CC: command not found
> 
> So I tried to make a link to cc to avoid the capitals
> 
> loos bin # ln -s /usr/bin/cc CC
> 
> now it gives me 
> 
> gcc-config error: Could not run/locate "CC"
> 

Rule of thumb for any UNIX based system. Capital letters are environment variables. In this case CC is the environment variable used for about 4 decades to denote "C Compiler". In your case it's going to be i686-pc-linux-gnu-gcc. Use that instead
Comment 7 Dr. Carl Frederik Loos 2008-02-19 09:30:28 UTC
Created attachment 143939 [details]
unix.i output file
Comment 8 Dr. Carl Frederik Loos 2008-02-25 09:50:14 UTC
Please excuse my ignorance. Is the outpout file of any use?
Comment 9 SpanKY gentoo-dev 2008-02-25 16:44:26 UTC
sorry, i didnt see you post the file

your lib/ext2fs/ext2_err.h is being generated incorrectly

go into lib/ext2fs and run:
../et/compile_et --build-tree ext2_err.et

then post the file ext2_err.h as an attachment
Comment 10 Dr. Carl Frederik Loos 2008-02-26 08:06:39 UTC
 
> go into lib/ext2fs and run:
> ../et/compile_et --build-tree ext2_err.et
> 
> then post the file ext2_err.h as an attachment

Tried this but compile_et doesn't exist.

loos et # ls -l
total 193
-rw-r--r-- 1 root root 15816 Feb 25 10:06 Makefile
-rw-r--r-- 1 root root  4616 Jun 30  2007 Makefile.in
-rw-r--r-- 1 root root  2372 Jun 30  2007 com_err.3
-rw-r--r-- 1 root root  2062 Jun 30  2007 com_err.c
-rw-r--r-- 1 root root  1807 Jun 30  2007 com_err.h
-rw-r--r-- 1 root root   229 Feb 25 10:06 com_err.pc
-rw-r--r-- 1 root root   235 Jun 30  2007 com_err.pc.in
-rw-r--r-- 1 root root 21290 Dec 17 18:46 com_err.texinfo
-rw-r--r-- 1 root root  3318 Jun 30  2007 com_right.c
-rw-r--r-- 1 root root  2237 Jun 30  2007 compile_et.1
-rw-r--r-- 1 root root  1446 Jun 30  2007 compile_et.sh.in
-rw-r--r-- 1 root root  4962 Dec 17 16:02 error_message.c
-rw-r--r-- 1 root root   961 Jun 30  2007 error_table.h
-rw-r--r-- 1 root root  6414 Jun 30  2007 et_c.awk
-rw-r--r-- 1 root root  4539 Jun 30  2007 et_h.awk
-rw-r--r-- 1 root root  1280 Jun 30  2007 et_name.c
-rw-r--r-- 1 root root  1378 Jun 30  2007 init_et.c
-rw-r--r-- 1 root root   676 Jun 30  2007 internal.h
drwxr-xr-x 2 root root   608 Jun 30  2007 test_cases
-rw-r--r-- 1 root root 65751 Nov  1 04:23 texinfo.tex
-rw-r--r-- 1 root root  1468 Jun 30  2007 vfprintf.c

So I tried the compile_et.sh.in

loos ext2fs # sh ../et/compile_et.sh.in --build-tree ext2_err.et
compile_et: Couldn't find compile_et's template files.
Comment 11 SpanKY gentoo-dev 2008-03-09 10:31:10 UTC
try emerging with MAKEFLAGS=-j1
Comment 12 Dr. Carl Frederik Loos 2008-03-10 10:57:52 UTC
(In reply to comment #11)
> try emerging with MAKEFLAGS=-j1
> 

Still not working. In the meantime I have upgraded my system to a athlon64x2, different mobo and RAM and still e2fsprogs f*cks up (using -j3 now in standard configuration due to the dual-CPU). 
Comment 13 Aaron Dummer 2008-03-12 23:01:26 UTC
I experienced the same error. Re-emerging these packages fixed the problem for me.
sys-libs/com_err-1.40.4
sys-libs/ss-1.40.4

Comment 14 SpanKY gentoo-dev 2008-03-16 08:15:03 UTC
you'll have to set COMPILE_ET=compile_et when running make by hand

also try Aaron's suggestion
Comment 15 Dr. Carl Frederik Loos 2008-04-29 12:00:33 UTC
Created attachment 151328 [details]
Desired Output
Comment 16 Dr. Carl Frederik Loos 2008-04-29 12:01:51 UTC
I don't know whether this is of any use but posted it anyway
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-01-07 12:54:26 UTC
*** Bug 254058 has been marked as a duplicate of this bug. ***
Comment 18 Peter Ulrich 2009-01-08 17:21:02 UTC
finally. after hours...

equery b /usr/local/bin/compile_et
and then (since it did not belong to something)
rm /usr/local/bin/compile_et

afterwards I could install 1.41.2
Comment 19 SpanKY gentoo-dev 2009-01-10 12:27:21 UTC
thanks for finally tracking that ... nothing from Gentoo should be installing into /usr/local/ ...