xf86-video-mga-1.4.7 does not compile. I've no idea why, my guess is that it has something to do with the upgrade to X.org 7.3. Reproducible: Always Steps to Reproduce: 1. emerge xf86-video-mga-1.4.7 Actual Results: i get a compile error Expected Results: i want it to compile and install properly >>> Compiling source in /var/tmp/portage/x11-drivers/xf86-video-mga-1.4.7/work/xf86-video-mga-1.4.7 ... * econf: updating xf86-video-mga-1.4.7/config.guess with /usr/share/gnuconfig/config.guess * econf: updating xf86-video-mga-1.4.7/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --enable-dri --build=i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-g++ accepts -g... yes checking dependency style of i686-pc-linux-gnu-g++... gcc3 checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E checking for i686-pc-linux-gnu-g77... no checking for i686-pc-linux-gnu-xlf... no checking for i686-pc-linux-gnu-f77... no checking for i686-pc-linux-gnu-frt... no checking for i686-pc-linux-gnu-pgf77... no checking for i686-pc-linux-gnu-cf77... no checking for i686-pc-linux-gnu-fort77... no checking for i686-pc-linux-gnu-fl32... no checking for i686-pc-linux-gnu-af77... no checking for i686-pc-linux-gnu-xlf90... no checking for i686-pc-linux-gnu-f90... no checking for i686-pc-linux-gnu-pgf90... no checking for i686-pc-linux-gnu-pghpf... no checking for i686-pc-linux-gnu-epcf90... no checking for i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether i686-pc-linux-gnu-gfortran accepts -g... yes checking the maximum length of command line arguments... 98304 checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc static flag -static works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g++ static flag -static works... yes checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for i686-pc-linux-gnu-gfortran option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gfortran PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gfortran static flag -static works... yes checking if i686-pc-linux-gnu-gfortran supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3 checking if RANDR is defined... yes checking if RENDER is defined... yes checking if XV is defined... yes checking if DPMSExtension is defined... yes checking for i686-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for XORG... yes checking for ANSI C header files... (cached) yes checking for /usr/include/xorg/dri.h... yes checking for /usr/include/xorg/sarea.h... yes checking for /usr/include/xorg/dristruct.h... yes checking whether to include DRI support... yes checking for DRI... yes checking whether XSERVER_LIBPCIACCESS is declared... no checking whether to enable EXA support... yes checking exa.h usability... yes checking exa.h presence... yes checking for exa.h... yes checking whether EXA version is at least 2.0.0... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating util/Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory `/var/tmp/portage/x11-drivers/xf86-video-mga-1.4.7/work/xf86-video-mga-1.4.7' Making all in src make[2]: Entering directory `/var/tmp/portage/x11-drivers/xf86-video-mga-1.4.7/work/xf86-video-mga-1.4.7/src' /bin/sh ../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -O2 -march=pentium3 -msse -mmmx -fomit-frame-pointer -MT clientlx.lo -MD -MP -MF .deps/clientlx.Tpo -c -o clientlx.lo clientlx.c mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -O2 -march=pentium3 -msse -mmmx -fomit-frame-pointer -MT clientlx.lo -MD -MP -MF .deps/clientlx.Tpo -c clientlx.c -fPIC -DPIC -o .libs/clientlx.o In file included from clientlx.c:18: mga.h:431: error: expected specifier-qualifier-list before 'uint32_t' make[2]: *** [clientlx.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-mga-1.4.7/work/xf86-video-mga-1.4.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-mga-1.4.7/work/xf86-video-mga-1.4.7' make: *** [all] Error 2 * * ERROR: x11-drivers/xf86-video-mga-1.4.7 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1334: Called x-modular_src_compile * x-modular.eclass, line 337: Called x-modular_src_make * x-modular.eclass, line 332: Called die * * emake failed * 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/x11-drivers/xf86-video-mga-1.4.7/temp/build.log'. *
I have the same compiler error. Already, x11-drivers/xf86-video-mga-1.4.6 does not compile! I think with the same error.
I can't reproduce your error. Please attach `emerge --info` and paste the output of `emerge -vp xf86-video-mga`, then reopen. Thanks!
Created attachment 130548 [details] emerge info
(In reply to comment #3) > Created an attachment (id=130548) [edit] > emerge info > And here's the output of "emerge -vp xf86-video-mga" : emerge -vp xf86-video-mga These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] x11-drivers/xf86-video-mga-1.4.7 [1.4.6.1] USE="dri -debug" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB I hereby reopen this bug.
Can you reproduce it with gcc 4.2? Be sure to disable ccache.
Same problem for me with Xorg 7.3. After emerging xorg 7.4 (xorg-server 1.4 instead of 1.3.0.0), this package did compile. Xorg-server 1.3.x includes must not pull in the needed uint32_t type. The rdep in this package should be changed from xorg-server-1.0.99 to xorg-server-1.4.
(In reply to comment #6) > Same problem for me with Xorg 7.3. After emerging xorg 7.4 (xorg-server 1.4 > instead of 1.3.0.0), this package did compile. Xorg-server 1.3.x includes must > not pull in the needed uint32_t type. > > The rdep in this package should be changed from xorg-server-1.0.99 to > xorg-server-1.4. > I can confirm this. After an upgrade to xorg-servr 1.4 xf86-video-mga compiled fine.
Fixed in CVS, thanks!