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

Bug 69472

Summary: lablgtk-2.4.0 fails to compile, complaint about compiler
Product: Gentoo Linux Reporter: Jory A. Pratt <geekypenguin>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config log

Description Jory A. Pratt 2004-10-29 16:40:39 UTC
fails to compile complaing about the compiler cant create executables.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
checking for ocamlyacc... ocamlyacc
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for camlp4o... camlp4o
checking for ocaml threads... system
checking for ocaml dll support... yes
checking for i586-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
OCaml uses gcc `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. to
compile C files
checking for i586-pc-linux-gnu-gcc... gcc
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
checking for C compiler default output file name... configure: error: C compiler
cannot create executables


I have had other updates that compile just fine even right now I am compiling
gaim update with same gcc and there is no problem.

Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Celeron (Coppermine)
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=pentium3 -fomit-frame-pointer -pipe -funroll-loops"
CHOST="i586-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium3 -fomit-frame-pointer -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com
http://gentoo.netnitco.net"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm avi berkdb bitmap-fonts crypt cups dba encode esd f77
foomaticdb gd gd-external gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++
libwww mad mikmod motif moznocompose moznoirc moznomail moznoxft mozsvg
mozxmlterm mpeg mysql ncurses nls nowin nptl oggvorbis opengl oss pam pdflib
perl png python quicktime readline sdl slang spell ssl svga tcltk tcpd truetype
x86 xml2 xmms xv zlib"
Comment 1 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-30 11:18:37 UTC
I have no problem with gcc-3.4.2-r2, could you attach the config.log that is in /var/tmp/portage/lablgtk-2.4.0/work/lablgtk-2.4.0/config.log ?
Comment 2 Jory A. Pratt 2004-10-30 13:17:41 UTC
Created attachment 42921 [details]
config log 

Here is the log you have requested, just remember I know the compiler is fine
seeing I can build other packages without any problems.
Comment 3 Matthieu Sozeau (RETIRED) gentoo-dev 2004-10-31 04:50:58 UTC
Most likely this is because ocaml itself was compiled with another gcc version with -mcpu= flags. 
To check this try: $ touch test.c ; ocamlc -verbose -c test.c and paste the result here. 
Comment 4 Jory A. Pratt 2004-10-31 15:17:19 UTC
I have recompiled ocaml and everything is working fine again your suggestion was right on for getting the info about ocaml thanks.
Comment 5 Matthieu Sozeau (RETIRED) gentoo-dev 2005-02-06 06:04:57 UTC
Closing bug.
Comment 6 Matthieu Sozeau (RETIRED) gentoo-dev 2005-02-06 06:05:34 UTC
Really close it!