Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot run 32bit applications [SOLVED]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Utlo
n00b
n00b


Joined: 08 Jun 2005
Posts: 44

PostPosted: Sat Sep 15, 2007 7:12 pm    Post subject: Cannot run 32bit applications [SOLVED] Reply with quote

I can run any of the 32bit applications that I have installed when I do I get a "No such file or directory" error, even though the file clearly exists.
For example
Code:

bob etc # /opt/firefox/firefox-bin
bash: /opt/firefox/firefox-bin: No such file or directory

bob etc # file /opt/firefox/firefox-bin
/opt/firefox/firefox-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

bob etc # strace /opt/firefox/firefox-bin
execve("/opt/firefox/firefox-bin", ["/opt/firefox/firefox-bin"], [/* 60 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7340ca1000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x2b7340ca1000, 4096)            = 0
exit_group(1)                           = ?
Process 27961 detached


I get the same problem with games like doom3 or neverwinter nights, acroread, and wine. I have already checked that other non-32bit applications on the /opt partition can run, so I don't think it is a permissions problem. Also I am using the 2007.0/desktop profile.
Code:

/etc/make.profile -> /usr/portage/profiles/default-linux/amd64/2007.0/desktop/


Finally I also see this problem when trying to emerge wine. Portage can not create a file that it can be executed.
It fails with the error:

Code:

checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.


config.log
Code:

configure:2362: $? = 0
configure:2369: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 \
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man \
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu \
--build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt \
--disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2)
configure:2372: $? = 0
configure:2379: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: '-V' must come at the start of the command line
distcc[29246] ERROR: compile (null) on localhost failed
configure:2382: $? = 1
configure:2405: checking for C compiler default output file name
configure:2432: x86_64-pc-linux-gnu-gcc  -O2 -march=athlon64 -pipe  -Wl,-O1 conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
distcc[29258] ERROR: compile conftest.c on localhost failed
configure:2435: $? = 1
configure:2473: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.45"
| #define PACKAGE_STRING "Wine 0.9.45"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2480: error: C compiler cannot create executables
See `config.log' for more details.


***********************************************************************
EDIT: Solution

I actually finally solved this with out reinstalling gentoo so I am very happy and I'll share what I did and what I think was wrong.
This turned out to be another multilib problem probably created back when I switched to 2007.0 profile. One of the mistakes I did was I played around with the multilib useflag trying to fix things, before I learned it was deprecated. In addition to wine not compiling I also couldn't get app-emulation/emul-linux-x86-java to emerge. So I thought something might be wrong with gcc and tried remerging it to discover it to would not emerge. It failed with and error saying it could not find /usr/include/gnu/stubs-32.h. Which should be included by glibc.
I followed the advice in this post. And downloaded glibc, binutils, and gcc from tinderbox. Then used emerge -k to install the prebuilt packages. And right after that everything worked.
_________________
AMD64
ATI 9800


Last edited by Utlo on Wed Oct 17, 2007 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Sun Sep 16, 2007 3:19 pm    Post subject: Reply with quote

Post emerge --info and check these:

GF20: C compiler cannot create executables

[IG7] cannot run C compiled programs (AMD64)
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
likewhoa
Guru
Guru


Joined: 04 Oct 2006
Posts: 461
Location: Brooklyn, New York

PostPosted: Mon Sep 17, 2007 10:22 am    Post subject: Reply with quote

make sure you have CONFIG_IA32_EMULATION=y in kernel.
Back to top
View user's profile Send private message
Utlo
n00b
n00b


Joined: 08 Jun 2005
Posts: 44

PostPosted: Mon Sep 17, 2007 3:56 pm    Post subject: Reply with quote

Okay, checked those two posts I have "sandbox" turned off, and my CFLAGS appear to be okay. I noticed the /emul/linux/x86/lib file dosen't exist. I don't know if that is the problem or how to fix it.
Code:

CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"


And I do have the emulation enabled.
Code:

bob icfp # zcat /proc/config.gz  | grep IA32
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y


emerge --info
Code:

Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-rc5 x86_64)
=================================================================
System uname: 2.6.22-rc5 x86_64 AMD Athlon(tm) 64 Processor 3400+
Timestamp of tree: Sun, 16 Sep 2007 07:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ABI="amd64"
ACCEPT_KEYWORDS="amd64"
ALSA_CARDS="via82xx"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant-core"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/root/.ccache"
CCACHE_SIZE="4G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
CFLAGS_x86="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORFGBG="15;0"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
DCCC_PATH="/usr/lib/distcc/bin"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTCC_DIR="/tmp/.distcc"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vi"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7/html"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
HOME="/root"
HUSHLOGIN="FALSE"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.17/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-21"
INPUT_DEVICES="keyboard mouse"
JAVAC="/opt/sun-jdk-1.5.0.05/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/opt/sun-jdk-1.5.0.05"
JDK_HOME="/opt/sun-jdk-1.5.0.05"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl-O1"
LDFLAGS_x86="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_x86="lib32"
LIBGL_DRIVERS_PATH="/usr/lib64/dri"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;\
42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;\
31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;\
35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;\
35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:\
*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;\
32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;\
36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j6"
MANPATH="/home/hbullen/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.17/man:\
/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man:/opt/blackdown-jdk-1.4.2.03/man:/etc/java-config/system-vm/man/:\
/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man:/opt/vmware/player/man:/opt/sun-jdk-1.5.0.05/man:/opt/sun-jdk-1.5.0.05/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib /usr/lib /usr/kde/*/lib /usr/qt/*/lib /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
OPENGL_PROFILE="ati"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib64/pkgconfig:/usr/qt/3/lib32/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="4"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage/layman/custom-kernels /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10:/usr/lib/gstreamer-0.8:/usr/lib/klibc"
PWD="/home/hbullen/src/icfp"
PYTHONDOCS="/usr/share/doc/python-docs-2.5.1/html/lib"
PYTHONPATH="/usr/lib64/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/i386-pc-linux-gnu/gcc-bin/4.1.1:/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:\
/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/player/bin"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
SANE_BACKENDS="hp5400"
SANE_CONFIG_DIR="/etc/sane.d"
SGML_CATALOG_FILES="/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:\
/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-docbook-4.4.cat:/etc/sgml/sgml-docbook.cat:\
/etc/sgml/sgml-lite.cat:/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/xml-simple-docbook-1.0.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat"
SHELL="/bin/bash"
SHLVL="7"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
TERMINFO="/usr/share/terminfo"
TEXINPUTS="/usr/lib64/ocaml/ocamldoc:"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa amd64 apache2 avi background bash-completion berkdb bindist binfilter bitmap-fonts boost branding bzip2 cairo cd cdr cli cracklib crypt css cups daap dbus directfb divx4linux doc dri dv dvb dvd dvdr dvdread emacs emboss emul encode escreen etwin evo examples fam fame fbcon ffmpeg firefox flac foomaticdb fortran gcc gdbm gif gimp gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imlib insecure-savers ipod isdnlog jack java jit jpeg kde kerberos lapack latex ldap lirc mad midi mikmod mmx mmxext mono mp3 mp4 mpeg msn mudflap musicbrainz mysql mythtv ncurses nls nodrm nowin nptl nptlonly nsplugin offensive ogg oggvorbis opengl openmp oss pam pcre pdf perl png ppds pppd python qt-static qt3 qt3support qt4 quicktime readline reflection roe sdl session spell spl sse sse2 ssl subtitles svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb vim-pager vim-syntax vim-with-x vorbis xinerama xml xorg xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon fglrx vesa"
VMHANDLE="blackdown-jdk-1.4.2"
WINDOWID="29360134"
WINDOWPATH="7"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthqmZanz"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
_="/usr/bin/emerge"

_________________
AMD64
ATI 9800


Last edited by Utlo on Wed Oct 17, 2007 8:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 28 Dec 2004
Posts: 857
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Sep 17, 2007 4:23 pm    Post subject: Reply with quote

Quote:
LDFLAGS="-Wl-O1"


that should be "-Wl,-O1" You've left out the comma.
_________________
My paludis --info
Back to top
View user's profile Send private message
j79zlr
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 231
Location: Chicago, IL

PostPosted: Mon Sep 17, 2007 6:05 pm    Post subject: Reply with quote

Actually you should remove setting any LDFLAGS atleast according to http://www.gentoo.org/doc/en/gcc-optimization.xml
Back to top
View user's profile Send private message
Utlo
n00b
n00b


Joined: 08 Jun 2005
Posts: 44

PostPosted: Mon Sep 17, 2007 7:02 pm    Post subject: Reply with quote

Your right, it should be that, but that is not the problem. I actually thought that the LDFLAGS might be at fault and removed them, but that didn't change anything. So when I put them back in I missed the comma.

I have remove the LDFLAG completely now.
_________________
AMD64
ATI 9800
Back to top
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Sep 18, 2007 12:29 am    Post subject: Reply with quote

j79zlr wrote:
Actually you should remove setting any LDFLAGS at least according to http://www.gentoo.org/doc/en/gcc-optimization.xml


Well, it's a guide, not gospel. -Wl,-O1 is quite safe and only affects shared libraries, and there's no way it could cause this. Also, it's perfectly acceptable for submitting bug reports, which is what the optimization guide is warning about: stuff that'll get your bugs marked INVALID. I see it all the time in the reports on bugzilla, and it's never once been singled out or even noted by any dev responding to any bug that I've ever seen. I think the guide is probably referring about more exotic stuff like having a bunch of -z 'keyword' options and messing around with hashvals or the -Bdirect stuff that was a sort of minor ricing trend for awhile. --as-needed could be included in that warning I suppose, but even though it's not officially supported, for all intents and purposes, it is. --as-needed bugs are not only accepted and fixed, but have their own tracker on Gentoo's bugzilla.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1036
Location: Gentoo Forums

PostPosted: Mon Oct 01, 2007 2:31 pm    Post subject: Reply with quote

what's

Code:
echo $CC


saying? I ran into that one once using an existing environment - CC was set to g++ ...
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
Utlo
n00b
n00b


Joined: 08 Jun 2005
Posts: 44

PostPosted: Thu Oct 11, 2007 5:03 pm    Post subject: Reply with quote

BlinkEye, not sure how this is related but $CC is the universal name for the systems c compiler. Back in UNIX days it was actually callled cc. In your case it has been set to g++ which is proablly okay because C++ can compile C code.

On a side not the my origional problem still exists, and I haven't been able to solve it.
_________________
AMD64
ATI 9800
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1036
Location: Gentoo Forums

PostPosted: Fri Oct 12, 2007 12:26 am    Post subject: Reply with quote

Utlo, sorry about that. This is obviously the wrong thread I posted to. Some guy had problems with compiling and I wanted him to check that he didn't set CC to a C++ compiler or compiling will brake at some point.
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum