Hi,
On (22/01/06 18:11), saf wrote:
> Hi all,
> 
> thanks for your support on this mailing list.
> Gentoo is a very great Linux distribution.
> 
> I have a question about Midnight Commander:
> I can't emerge mc because of a compiler error.
> Does somebody knows how to fix it?
> I tried already to remove samba in the USE flags, but it changes nothing.
> 
> When I try to emerge mc, I get this error:
> 
> i686-pc-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
> -mar
> ch=athlon-xp -O9 -pipe -mfpmath=sse,387 -mmmx -msse -fomit-frame-pointer 
> -funrol
> l-loops -m3dnow -I/usr/include/gssapi -Wall   -o man2hlp  man2hlp.o 
> -lglib-2.0  
>  
> ../vfs/libvfs-mc.a(smbfs.o): In function `chkpath':
> smbfs.c:(.text+0x5867): undefined reference to `write_socket'
> collect2: ld returned 1 exit status
> make[2]: *** [mc] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0'
> make: *** [all] Error 2
> ...SKIP...
> #
> # -mcpu=<cpu-type> means optimize code for the particular type of CPU without
> # breaking compatibility with other CPUs.
> #
> # -march=<cpu-type> means to take full advantage of the ABI and instructions
> # for the particular CPU; this will break compatibility with older CPUs (for
> # example, -march=athlon-xp code will not run on a regular Athlon, and
> # -march=i686 code will not run on a Pentium Classic.
> #
> # CPU types supported in gcc-3.2 and higher: athlon-xp, athlon-mp,
> # athlon-tbird, athlon, k6, k6-2, k6-3, i386, i486, i586 (Pentium), i686
> # (PentiumPro), pentium, pentium-mmx, pentiumpro, pentium2 (Celeron),
> # pentium3, and pentium4.
> #
> # Note that Gentoo Linux 1.4 and higher include at least gcc-3.2.
> # 
> # CPU types supported in gcc-2.95*: k6, i386, i486, i586 (Pentium), i686
> # (Pentium Pro), pentium, pentiumpro Gentoo Linux 1.2 and below use gcc-2.95*
> #
> # CRITICAL WARNINGS: ****************************************************** #
> # K6 markings are deceptive. Avoid setting -march for them. See Bug #24379. #
> # Pentium-M CPU's should not enable sse2 until at least gcc-3.4. Bug 50616. #
> # ************************************************************************* #
> #
> # General CFLAGS variable
> #
> CFLAGS="-march=athlon-xp -O9 -pipe -mfpmath=sse,387 -mmmx -msse 
> -fomit-frame-pointer -funroll-loops -m3dnow"
Try with more sane CFLAGS, at least replace -O9 with -O2, IMHO you could remove 
-mmmx,-m3dnow,-msse 
(haven't checked but think some of them are assumed when using 
-march=athlon-xp). Check the docs.
> 
> # To compile valgrind:
> # CFLAGS="-O2 -pipe"
> 
> #CFLAGS="-march=pentium3 -O3 -pipe"
> 
> # If you set a CFLAGS above, then this line will set your default C++ flags to
> # the same settings.
> 
> CXXFLAGS="${CFLAGS}"
> ...SKIP...
> #     for parallel makes is CPUs+1.
> 
> MAKEOPTS="-j2"
Very rarely but sometimes i had to compile something with "-j1"
> ...SKIP...
> -- 
> Best regards,
> Stephan FERRARO
> NOOFS Core Developper - http://www.noofs.org/
> GnuPG public key: gpg --keyserver www.keyserver.net --recv-key 94B2664F
HTH.Rumen

Attachment: pgpLqVKgAc4es.pgp
Description: PGP signature



Reply via email to