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

Bug 68640

Summary: app-arch/zip-2.3-r2 compile failure
Product: Gentoo Linux Reporter: Elan Ruusamäe <glen>
Component: Current packagesAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Elan Ruusamäe 2004-10-23 07:55:27 UTC
# FEATURES="-ccache -distcc" emerge -u world -e --resume
*** Resuming merge...
>>> emerge (1 of 454) app-arch/zip-2.3-r2 to /
>>> md5 src_uri ;-) zip23.tar.gz
>>> Unpacking source...
>>> Unpacking zip23.tar.gz to /var/tmp/portage/zip-2.3-r2/work
>>> Source unpacked.
sh unix/configure "gcc" "-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX "
Check for the C preprocessor
Check if we can use asm code
Check for ANSI options
Check for prototypes
Check the handling of const
Check for time_t
Check for size_t
Check for rmdir
Check for strchr
Check for strrchr
Check for rename
Check for mktemp
Check for mktime
Check for memset
Check for errno declaration
Check for directory libraries
Check for readlink
Check for directory include file
Check for non existent include files
Check for term I/O include file
Check for valloc
Check for /usr/local/bin and /usr/local/man
Checking for OS specialties
Check for symbolic links
eval make -f unix/Makefile zips `cat flags`
make[1]: Entering directory `/var/tmp/portage/zip-2.3-r2/work/zip-2.3'
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zip.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zipfile.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zipup.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  fileio.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  util.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  globals.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  crypt.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  ttyio.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  unix/unix.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  crc32.c
zipup.c: In function `zipup':
zipup.c:558: warning: assignment makes pointer from integer without a cast
zipfile.c: In function `ziptyp':
zipfile.c:190: warning: assignment makes pointer from integer without a cast
fileio.c: In function `newname':
fileio.c:383: warning: assignment makes pointer from integer without a cast
fileio.c:452: warning: assignment makes pointer from integer without a cast
zipfile.c: In function `scanzipf_fix':
zipfile.c:518: warning: assignment makes pointer from integer without a cast
zipfile.c:519: warning: assignment makes pointer from integer without a cast
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  crctab.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  deflate.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  trees.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zipnote.c
zip.c: In function `version_info':
zip.c:613: warning: assignment makes pointer from integer without a cast
zip.c: In function `zipstdout':
zip.c:634: warning: assignment makes pointer from integer without a cast
rm -f zipfile_.c; ln -s zipfile.c zipfile_.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  -DUTIL zipfile_.c
rm -f fileio_.c; ln -s fileio.c fileio_.c
util.c: In function `envargs':
util.c:492: warning: assignment makes pointer from integer without a cast
rm -f util_.c; ln -s util.c util_.c
rm -f unix_.c; ln -s unix/unix.c unix_.c
unix/unix.c:60: error: syntax error before '*' token
unix/unix.c:95: error: syntax error before "DIR"
unix/unix.c:95: warning: data definition has no type or storage class
unix/unix.c:98: error: syntax error before '{' token
unix/unix.c:101: error: initializer element is not constant
unix/unix.c:101: warning: data definition has no type or storage class
unix/unix.c:102: error: syntax error before "return"
unix/unix.c: In function `procname':
unix/unix.c:112: error: `DIR' undeclared (first use in this function)
unix/unix.c:112: error: (Each undeclared identifier is reported only once
unix/unix.c:112: error: for each function it appears in.)
unix/unix.c:159: warning: assignment makes pointer from integer without a cast
unix/unix.c:174: warning: assignment makes pointer from integer without a cast
unix/unix.c:179: warning: assignment makes pointer from integer without a cast
unix/unix.c: In function `ex2in':
unix/unix.c:243: warning: assignment makes pointer from integer without a cast
unix/unix.c: In function `in2ex':
unix/unix.c:269: warning: assignment makes pointer from integer without a cast
zip.c: In function `main':
zip.c:1436: warning: assignment makes pointer from integer without a cast
zip.c:1472: warning: assignment makes pointer from integer without a cast
zip.c:1627: warning: assignment makes pointer from integer without a cast
zip.c:1807: warning: assignment makes pointer from integer without a cast
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  -DUTIL fileio_.c
zip.c:2062: warning: assignment makes pointer from integer without a cast
zip.c:2095: warning: assignment makes pointer from integer without a cast
zip.c:2130: warning: assignment makes pointer from integer without a cast
zip.c:2141: warning: assignment makes pointer from integer without a cast
zip.c:2168: warning: assignment makes pointer from integer without a cast
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  -DUTIL util_.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zipsplit.c
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  zipcloak.c
zipfile_.c: In function `ziptyp':
zipfile_.c:190: warning: assignment makes pointer from integer without a cast
zipfile_.c: In function `scanzipf_reg':
zipfile_.c:657: warning: assignment makes pointer from integer without a cast
zipfile_.c:749: warning: assignment makes pointer from integer without a cast
zipfile_.c:816: warning: assignment makes pointer from integer without a cast
zipfile_.c:817: warning: assignment makes pointer from integer without a cast
zipfile_.c:818: warning: assignment makes pointer from integer without a cast
zipfile_.c:860: warning: assignment makes pointer from integer without a cast
zipfile_.c:879: warning: assignment makes pointer from integer without a cast
fileio.c: In function `tempname':
fileio.c:814: warning: assignment makes pointer from integer without a cast
fileio.c:850: warning: assignment makes pointer from integer without a cast
fileio.c: In function `fcopy':
fileio.c:879: warning: assignment makes pointer from integer without a cast
make[1]: *** [unix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gcc -c -mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H  -DUTIL unix_.c
rm -f util_.c
zipfile.c: In function `scanzipf_reg':
fileio_.c: In function `tempname':
fileio_.c:814: warning: assignment makes pointer from integer without a cast
fileio_.c:850: warning: assignment makes pointer from integer without a cast
fileio_.c: In function `fcopy':
fileio_.c:879: warning: assignment makes pointer from integer without a cast
rm -f unix_.c
rm -f fileio_.c
zipnote.c: In function `catalloc':
zipnote.c:279: warning: assignment makes pointer from integer without a cast
zipnote.c: In function `main':
zipnote.c:413: warning: assignment makes pointer from integer without a cast
zipnote.c:429: warning: assignment makes pointer from integer without a cast
zipnote.c:441: warning: assignment makes pointer from integer without a cast
zipfile.c:657: warning: assignment makes pointer from integer without a cast
zipfile.c:749: warning: assignment makes pointer from integer without a cast
zipfile.c:816: warning: assignment makes pointer from integer without a cast
zipfile.c:817: warning: assignment makes pointer from integer without a cast
zipfile.c:818: warning: assignment makes pointer from integer without a cast
zipfile.c:860: warning: assignment makes pointer from integer without a cast
zipfile.c:879: warning: assignment makes pointer from integer without a cast
rm -f zipfile_.c
make[1]: Leaving directory `/var/tmp/portage/zip-2.3-r2/work/zip-2.3'
make: *** [generic] Error 2

!!! ERROR: app-arch/zip-2.3-r2 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

here's the cpp parsed source, i added numbers in front for easier tracking.

# 51 "unix/unix.c"
51:   int utime (char *, time_t *);
52:
53:
54:extern char *label;
55:static ulg label_time = 0;
56:static ulg label_mode = 0;
57:static time_t label_utim = 0;
58:
59:
60:static char *readd (DIR *);
# 94 "unix/unix.c"
94:static char *readd(d)
95:DIR *d;

# FEATURES="-distcc -ccache" emerge info
Portage 2.0.51-r2 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.4.22-1.2115.nptlsmp i686)
=================================================================
System uname: 2.4.22-1.2115.nptlsmp i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg distlocks noinfo sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j22"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/gentoo/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts artswrappersuid avi bitmap-fonts chroot crypt cups dga directfb divx4linux dvd encode fam flac foomaticdb ggi gif gphoto2 gpm gstreamer gtk2 imagemagick imlib jpeg kde libg++ libwww lirc mad maildir memlimit mmx mng motif mozilla mpeg ncurses oggvorbis opengl oss pam perl png pthreads qt quicktime samba sdl slang speex spell sse ssl svg tiff truetype wmf x86 xinerama xml xml2 xprint xv xvid zlib video_cards_rage128 linguas_et"



Reproducible: Always
Steps to Reproduce:
Comment 1 Elan Ruusamäe 2004-10-24 06:44:17 UTC
appears that this bug is tightly related to bug 68699.

so to reproduce this. emerge gcc-config first with 'umask 7'.
Comment 2 SpanKY gentoo-dev 2004-12-06 20:21:36 UTC

*** This bug has been marked as a duplicate of 68699 ***