Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126870 - samba fail emerge with gcc-error
Summary: samba fail emerge with gcc-error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 134205 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-19 14:34 UTC by Konstantin
Modified: 2006-05-24 07:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2006-03-19 14:34:30 UTC
Portage 2.0.54 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r2, 2.6.14-hardened-r5 i686)
=================================================================
System uname: 2.6.14-hardened-r5 i686 Intel(R) Celeron(TM) CPU                1200MHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-Os -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 berkdb bidi bzip2 caps cgi cli crypt curl dba dedicated dlloader encode esd ethereal expat extensions fbcon flac gd gdbm gif gmp hardened imap innodb jpeg ldap logmail logrotate maildir mmx mysql ncurses nls pcre perl pic png pop python qmail quotas readline reiserfs samba sasl session snmp softquota sse ssl tcpd udev usb userlocales utf8 vhosts virus-scan x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Konstantin 2006-03-19 14:38:09 UTC
Sorry, I'm first time using this bug report. :(
Here gose my problem:
Linking bin/smbd
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/samba
copying python/samba/printerdata.py -> build/lib.linux-i686-2.4/samba
copying python/samba/__init__.py -> build/lib.linux-i686-2.4/samba
running build_ext
building 'spoolss' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/python
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -Os -march=pentium3 -pipe -fomit-frame-pointer -D_SAMBA_BUILD_ -I/usr/include/mysql -Os -march=pentium3 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/libxml2 -fPIC -I/usr/include/python2.4 -c python/py_spoolss.c -o build/temp.linux-i686-2.4/python/py_spoolss.o -Os -march=pentium3 -pipe -fomit-frame-pointer -D_SAMBA_BUILD_ -I/usr/include/mysql -Os -march=pentium3 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -Os -march=pentium3 -pipe -fomit-frame-pointer -D_SAMBA_BUILD_ -I/usr/include/mysql -Os -march=pentium3 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/libxml2 -Iinclude -I/var/tmp/portage/samba-3.0.21b/work/samba-3.0.21b/source/include -I/var/tmp/portage/samba-3.0.21b/work/samba-3.0.21b/source/ubiqx -I/var/tmp/portage/samba-3.0.21b/work/samba-3.0.21b/source/tdb -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED -I/var/tmp/portage/samba-3.0.21b/work/samba-3.0.21b/source -D_SAMBA_BUILD_
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
error: command 'i386-pc-linux-gnu-gcc' failed with exit status 1
make: *** [python_ext] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: net-fs/samba-3.0.21b failed.
!!! Function src_compile, Line 130, Exitcode 2
!!! SAMBA make everything error
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 Konstantin 2006-03-19 14:54:53 UTC
I've tried: 
reemerge gcc, emerge world -Du, change diffrent gcc profiles:
gcc-config -l
 [1] i686-pc-linux-gnu-3.3.6 *
 [2] i686-pc-linux-gnu-3.3.6-hardenednopie
 [3] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [4] i686-pc-linux-gnu-3.3.6-hardenednossp
 [5] i686-pc-linux-gnu-3.3.6-vanilla
 [6] i686-pc-linux-gnu-3.4.5
 [7] i686-pc-linux-gnu-3.4.5-hardenednopie
 [8] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [9] i686-pc-linux-gnu-3.4.5-hardenednossp
 [10] i686-pc-linux-gnu-3.4.5-vanilla

won't helped. :(
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-20 00:26:15 UTC
1/ Read product descriptions when filing bugs, this has zero in common with Gentoo Bugzilla product.

2/ Read keywords descriptions if you insist on using keywords for whatever reason.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-20 00:27:35 UTC
3/ If you have changed your CHOST, then you'll have to emerge -e system && emerge -e world. Don't change CHOST if you don't know what you are doing.
Comment 5 Konstantin 2006-03-21 07:33:59 UTC
(In reply to comment #3)
> 1/ Read product descriptions when filing bugs, this has zero in common with
> Gentoo Bugzilla product.
> 2/ Read keywords descriptions if you insist on using keywords for whatever
> reason.

I'll try to remember well.

(In reply to comment #4)
> 3/ If you have changed your CHOST, then you'll have to emerge -e system &&
> emerge -e world. Don't change CHOST if you don't know what you are doing.

I have some changes in make.conf. When I've tried to fix my problem I'm accidentally broke my gcc. :( I've tried to reinstall it from another machine with "emerge --usepkgonly sys-devel/gcc", but anyway now I have: 

=========================================================
#emerge system -e
Calculating system dependencies ...done!
>>> emerge (1 of 101) sys-devel/patch-2.5.9 to /
>>> md5 files   ;-) patch-2.5.9.ebuild
>>> md5 files   ;-) patch-2.5.9-r1.ebuild
>>> md5 files   ;-) files/digest-patch-2.5.9
>>> md5 files   ;-) files/patch-2.5.9-cr-stripping.patch
>>> md5 files   ;-) files/digest-patch-2.5.9-r1
>>> md5 src_uri ;-) patch-2.5.9.tar.gz
>>> Unpacking source...
>>> Unpacking patch-2.5.9.tar.gz to /var/tmp/portage/patch-2.5.9/work
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/patch-2.5.9/work/patch-2.5.9/config.log

Here goes config.log:
=========================================================

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by patch configure 2.5.9, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/s$

## --------- ##
## Platform. ##
## --------- ##

hostname = blackdell
uname -m = i686
uname -r = 2.6.14-hardened-r5
uname -s = Linux
uname -v = #1 Wed Mar 8 13:15:02 Local time zone must be set--see zic manua

/usr/bin/uname -p = Intel(R) Celeron(TM) CPU                1200MHz
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.4.5
PATH: /usr/i386-pc-linux-gnu/gcc-bin/3.4.4
PATH: /var/qmail/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1304: checking for i686-pc-linux-gnu-gcc
configure:1320: found /usr/bin/i686-pc-linux-gnu-gcc
configure:1330: result: i686-pc-linux-gnu-gcc
configure:1612: checking for C compiler version
configure:1615: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.4.5 (Gentoo Hardened 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1618: $? = 0
configure:1620: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configured with: /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bi$
Thread model: posix
gcc version 3.4.5 (Gentoo Hardened 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
configure:1623: $? = 0
configure:1625: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
configure:1628: $? = 1
configure:1652: checking for C compiler default output
configure:1655: i686-pc-linux-gnu-gcc  -march=pentium3 -pipe -O2 -DLINUX -D_XOPEN_SOURCE=500   conftest.c  >&5
i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No such file or directory
configure:1658: $? = 2
configure: failed program was:
| #line 1631 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "patch"
| #define PACKAGE_TARNAME "patch"
| #define PACKAGE_VERSION "2.5.9"
| #define PACKAGE_STRING "patch 2.5.9"
| #define PACKAGE_BUGREPORT "bug-patch@gnu.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1697: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -march=pentium3 -pipe -O2 -DLINUX -D_XOPEN_SOURCE=500'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_CC=i686-pc-linux-gnu-gcc
ac_cv_sys_long_file_names=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='i686-pc-linux-gnu-gcc'
CFLAGS=' -march=pentium3 -pipe -O2 -DLINUX -D_XOPEN_SOURCE=500'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
HAVE__BOOL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='bug-patch@gnu.org'
PACKAGE_NAME='patch'
PACKAGE_STRING='patch 2.5.9'
PACKAGE_TARNAME='patch'
PACKAGE_VERSION='2.5.9'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STDBOOL_H=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build_alias='i686-pc-linux-gnu'
datadir='/usr/share'
ed_PROGRAM=''
exec_prefix='NONE'
host_alias='i686-pc-linux-gnu'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "bug-patch@gnu.org"
#define PACKAGE_NAME "patch"
#define PACKAGE_STRING "patch 2.5.9"
#define PACKAGE_TARNAME "patch"
#define PACKAGE_VERSION "2.5.9"

configure: exit 77

=========================================================
Comment 6 Konstantin 2006-03-23 05:42:13 UTC
This bug repeated once again. Now on another machine without any changes in "make.conf"

I cannot emerge Midnight Commander. It fails with this error:

cc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -march=pentium3 -O2 -pipe -fomit-frame-pointer -I/usr/include/gssapi -Wall   -o mc  achown.o background.o boxes.o chmod.o chown.o cmd.o color.o command.o complete.o cons.handler.o dialog.o dir.o dlg.o ext.o file.o filegui.o filenot.o fileopctx.o find.o findme.o fsusage.o help.o hotlist.o info.o key.o keyxdef.o layout.o learn.o listmode.o main.o menu.o mountlist.o mouse.o option.o panelize.o popt.o poptconfig.o popthelp.o poptparse.o profile.o regex.o rxvt.o screen.o setup.o slint.o subshell.o terms.o text.o textconf.o tree.o treestore.o user.o util.o utilunix.o view.o widget.o win.o wtools.o charsets.o selcodepage.o ../edit/libedit.a  ../vfs/libvfs-mc.a ../intl/libintl.a  -lglib-2.0   -lgpm -lncurses  -lsmbclient
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -march=pentium3 -O2 -pipe -fomit-frame-pointer -I/usr/include/gssapi -Wall   -o mcmfmt  mfmt.o
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -march=pentium3 -O2 -pipe -fomit-frame-pointer -I/usr/include/gssapi -Wall   -o man2hlp  man2hlp.o -lglib-2.0
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -march=pentium3 -O2 -pipe -fomit-frame-pointer -I/usr/include/gssapi -Wall   -o cons.saver  cons.saver.o
../vfs/libvfs-mc.a(smbfs.o): In function `loaddir_helper':
smbfs.c:(.text+0xdd8): undefined reference to `LocalTime'
../vfs/libvfs-mc.a(smbfs.o): In function `smbfs_get_path':
smbfs.c:(.text+0x270b): undefined reference to `write_socket'
collect2: ld returned 1 exit status
make[2]: *** [mc] Error 1
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

!!! ERROR: app-misc/mc-4.6.0-r14 failed.
!!! Function src_compile, Line 109, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Here goes my emerge --info:

igoriok ~ # emerge --info
Portage 2.0.54 (default-linux/x86/no-nptl, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-hardened-r5 i686)
=================================================================
System uname: 2.6.14-hardened-r5 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi apache2 apm berkdb bidi bitmap-fonts bzip2 caps cgi clamav cli crypt ctype curl dba dedicated dri eds emboss encode esd ethereal expat extensions fastbuild fbcon flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gmp gnome gpm gstreamer hardened imap imlib innodb jpeg ldap libg++ libwww logmail logrotate maildir memlimit mikmod mmx motif mp3 mysql ncurses nls ogg pcre pdflib perl png pop posix python qmail qt quicktime readline reiserfs samba sasl sdl session simplexml snmp soap sockets softquota spell spl sse ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev usb utf8 vhosts virus-scan vorbis xml xml2 xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

May be I've done some mess with flags in make.conf?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 05:47:58 UTC
(In reply to comment #6)
> This bug repeated once again. Now on another machine without any changes in
> "make.conf"

Excuse me, it's *completely* different bug, with many duplicates besides (see Bug 102356). This bug is not a dumpspace for whatever problems you encounter. 
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-05-24 07:10:17 UTC
*** Bug 134205 has been marked as a duplicate of this bug. ***