another gcc4 problem... i686-pc-linux-gnu-gcc -DUNIX -DGNU_X86_FIXED_ASM -D__JDOOM__ -I. -I. -I../.. -I../../Include/jDoom -I../../Include/Common -I../../Include -Wunused-variable -Wunused-function -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -MT p_setup.lo -MD -MP -MF .deps/p_setup.Tpo -c p_setup.c -fPIC -DPIC -o .libs/p_setup.o p_setup.c: In function 'P_LoadVertexes': p_setup.c:77: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness p_setup.c:77: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness p_setup.c:87: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadSegs': p_setup.c:135: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadSegsGL': p_setup.c:176: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadSubsectors': p_setup.c:242: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadSectors': p_setup.c:269: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadNodes': p_setup.c:304: error: invalid lvalue in assignment p_setup.c: In function 'P_LoadLineDefs': p_setup.c:395: error: invalid lvalue in assignment make: *** [p_setup.lo] Error 1 here the problem is: Src/jDoom/p_setup.c line 269 sectors = Z_Malloc(numsectors * sizeof(sector_t), PU_LEVEL, 0); all errors are equals...
same problem with 4.1.0 (of course!)
Same issue for me, with gcc-4.1. My emerge --info : Portage 2.1_pre7 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck1 i686) ================================================================= System uname: 2.6.16-ck1 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mir1.ovh.net/gentoo-distfiles/ ftp://mir1.ovh.net/gentoo-distfiles/ ftp://194.117.143.69/mirrors/gentoo" LINGUAS="fr fr_FR" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi bash-completion bitmap-fonts cli crypt ctype cups dba dga dri eds emboss encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gpm gstreamer gtk gtk2 imlib ithreads jpeg libg++ libwww mad memlimit mmx mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png posix python quicktime readline sdl session simplexml soap sockets spell spl sse ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xsl xv zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev kernel_linux linguas_fr linguas_fr_FR userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Doomsday 1.8.6 contains depreciated (illegal) lvalue assignments in its code. This has been fixed in the Doomsday 1.9.0 beta series, which compiles cleanly with GCC4.x. 1.9.0beta isn't in Portage yet though, unfortunately; I just compiled and installed it by hand.
so let's ask mainteiner to bump to 1.9.0beta.please
1.9.0_beta3 now in portage
i tested and it works. only one thing: it's masked due to 1.8.6 security problems, please unmask 1.9.0 release.