Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC-4.0 (part 3)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... , 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Tomasu
n00b
n00b


Joined: 01 Jun 2005
Posts: 34

PostPosted: Mon Dec 05, 2005 8:41 am    Post subject: Reply with quote

Actually, the problem was "patched" in the other thread. Patched with bubble gum. Large file support has nothing to do with missing symbols in C++.
Back to top
View user's profile Send private message
Tomasu
n00b
n00b


Joined: 01 Jun 2005
Posts: 34

PostPosted: Tue Dec 06, 2005 1:30 am    Post subject: Reply with quote

It seems I was right. Now its failing in kdemultimedia, with the same error, but now theres no define.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Tue Dec 06, 2005 10:19 am    Post subject: Reply with quote

i have a different problem. i noticed it when i build my system from scratch with gcc-4.0.2. it has to something to do with shared libs, but i don't know what

bbconf:
Code:
unable to create plugin from /usr/lib/bbconf/plugins/libthemes.so
unable to create plugin from /usr/lib/bbconf/plugins/libbbconf.so
unable to create plugin from /usr/lib/bbconf/plugins/libmenu.so
unable to create plugin from /usr/lib/bbconf/plugins/libkeybindings.so


qtconfig cannot load polymer (plastik-based KDE independent theme) libraries.

fbpanel
Code:
Error is /usr/share/fbpanel/plugins/wincmd.so: undefined symbol: a_NET_WM_STATE
fbpanel: can't load wincmd plugin
fbpanel: can't start panel


sometimes building with gcc 3.4 helps, i don't know what to do with this. it worked when whole system was built with gcc-3.4

also epiphany crashes trying to load bookmarks plugin - i had to delete it to make it work :(

my setup
gcc-4.0.2-r1

Code:
CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -funit-at-a-time"
CXXFLAGS="${CFLAGS}"


most of the problems pop up when i try -fvisibility=hidden for cxxflags, so i recompile without it. and someone said it's recommended and stable (??)
also -fomit-frame-pointer is considered safe for c++ with gcc4. it that true?
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
Tomasu
n00b
n00b


Joined: 01 Jun 2005
Posts: 34

PostPosted: Tue Dec 06, 2005 11:28 am    Post subject: Reply with quote

Quote:
-fvisibility=hidden
Woha, bad idea. That flag needs direct support for it in packages. Now, -fvisibility-inlines-hidden is fine (afaik) in CXXFLAGS, maybe that's what you meant?

Basically what that first flag does is make all symbols "private", means the linker can't see them outside thier module. for as long as linux has used the elf format, all symbols defaulted to being visible and exported in all shared libraries. Which makes for a lot of work for the runtime linker (ld.so). Now if you use that flag, all share libs will have to start explicitly exporting symbols that are apart of thier public API. Like the win32 __declspec(dllexport). And for gcc, the specific command goes something like: __attribute__ ((visibility("default"))).

so unless an ebuild uses -fvisibility=hidden itself, or is directly enabled by emerge, I'd stay away from using it.
Back to top
View user's profile Send private message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Tue Dec 06, 2005 8:56 pm    Post subject: Reply with quote

I'm getting problems compiling anything that needs libstdc++.so in /usr/lib

Code:
creating libusb.la
(cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -O2 -march=pentium4 -pipe -MT usbpp.lo -MD -MP -MF .deps/usbpp.Tpo -c usbpp.cpp -o usbpp.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link i686-pc-linux-gnu-g++  -O2 -march=pentium4 -pipe   -o libusbpp.la -rpath /usr/lib -version-info 8:2:4 -release 0.1 -export-dynamic  -lusb  usbpp.lo
i686-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/crtbeginS.o  .libs/usbpp.o  -Wl,--rpath -Wl,/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a/.libs /var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a/.libs/libusb.so -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2 -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../.. /usr/lib/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../crtn.o  -march=pentium4 -Wl,-soname -Wl,libusbpp-0.1.so.4 -o .libs/libusbpp-0.1.so.4.4.2
i686-pc-linux-gnu-g++: /usr/lib/libstdc++.so: No such file or directory
make[2]: *** [libusbpp.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.10a failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



Code:
lo libmcop_la.all_cc.cc
buffer.cc:150: warning: unused parameter 'l'
buffer.cc: In member function 'void Arts::Buffer::patchLong(long int, long int)':
buffer.cc:321: warning: unused variable 'len'
socketconnection.cc: At global scope:
socketconnection.cc:124: warning: unused parameter '_fd'
tcpserver.cc: In member function 'virtual void Arts::TCPServer::notifyIO(int, int)':
tcpserver.cc:182: warning: unused variable 'nbl_result'
unixserver.cc: In member function 'virtual void Arts::UnixServer::notifyIO(int, int)':
unixserver.cc:142: warning: unused variable 'nbl_result'
tmpglobalcomm.cc: In member function 'virtual bool Arts::TmpGlobalComm_impl::put(const std::string&, const std::string&)':
tmpglobalcomm.cc:43: warning: unused variable 'result'
loopback.cc: In member function 'virtual void Arts::LoopbackConnection::qSendBuffer(Arts::Buffer*)':
loopback.cc:39: warning: unused variable 'magic'
/bin/sh ../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -ftemplate-depth-99    -o libmcop.la -rpath /usr/kde/3.5/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 1:0  -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    md5.lo libmcop_la.all_cc.lo   -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0   ../libltdl/libltdlc.la
i686-pc-linux-gnu-g++: /usr/lib/libstdc++.so: No such file or directory
make[3]: *** [libmcop.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/arts-3.5.0/work/arts-1.5.0/mcop'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/arts-3.5.0/work/arts-1.5.0/mcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-3.5.0/work/arts-1.5.0'
make: *** [all] Error 2

!!! ERROR: kde-base/arts-3.5.0 failed.
!!! Function kde_src_compile, Line 173, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.



emerge --info
Code:
rr4dvd / # emerge --info
Portage 2.0.53 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14-reiser4-r2-nosmp i686)
=================================================================
System uname: 2.6.14-reiser4-r2-nosmp i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.rhnet.is/pub/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac accesibility acpi alsa apache2 apm arts audiofile avi bcmath berkdb bitmap-fonts bonobo bzip2 cdb cdparanoia cdr cjk crypt cups curl dio directfb dix4linux dri dv dvd dvdr dvdread eds emboss encode expat fftw foomaticdb fortran ftp gd gdbm geoip gif glut gmp gnome gpm gstreamer gtk gtk2 hal howl icc iconv idn ieee1394 imlib ipv6 java jpeg kde kdeenablefinal lcms libg++ libwww mad mcal mhash mikmod mng mono motif mp3 mpeg mysqli ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png posix python qt quicktime readline ruby samba sdl soap sockets spell sqlite sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev vorbis won32codecs xml2 xmlrpc xmms xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY



Code:
rr4dvd / # emerge -pv binutils glibc gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/binutils-2.16.1-r1  -multislot -multitarget +nls -test 0 kB
[ebuild   R   ] sys-libs/glibc-2.3.6-r1  -build -erandom -glibc-compat20 -glibc-omitfp -hardened -linuxthreads-tls (-multilib) +nls +nptl +nptlonly -pic -profile (-selinux) -userlocales 0 kB
[ebuild   R   ] sys-devel/gcc-4.0.2-r1  (-altivec) -bootstrap -boundschecking -build +fortran -gcj +gtk -hardened -ip28 -mudflap (-multilib) -multislot (-n32) (-n64) +nls -nocxx -nopie -objc -objc-gc -vanilla 0 kB

Total size of downloads: 0 kB


Using gcc-4.0.2-r1 - what's the problem? or rather - how do i get a libstdc++.so in /usr/lib (I have libstdc++-v3.so there)?


Edit: very strange. Even if I symlink /usr/lib/libstdc++.so to libstdc++.so.6.0.6 in the gcc lib directory it still stops at that error. Maybe I need a emerge -e system && emerge -e world
Back to top
View user's profile Send private message
Sabishii-ookami
n00b
n00b


Joined: 15 Mar 2005
Posts: 36

PostPosted: Thu Dec 08, 2005 8:19 am    Post subject: Reply with quote

Same problem here, when I try to emerge arts or libusb it fails when searching for libstdc++.so in /usr/lib (at the wrong place, cause on my other computer it locates correctly the libstdc++.so in /usr/lib/gcc/i686-pc-linux-gnu/3.4.4). I find this quite annoying. Which application is responsible for correctly locating this library? I really need to recompile those packages with my new gcc 3.4.4
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Tue Dec 13, 2005 6:29 am    Post subject: Reply with quote

Alright, its that time again folks, gcc-4.0.2-r2 is in the tree. Go crazy and try to break it. Hopefully this version will prove to be good enough to go into ~arch, along with glibc-2.3.6, so any feedback on either is appreciated.
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Wed Dec 14, 2005 9:33 am    Post subject: Reply with quote

heh, here you go:
Code:

config.status: executing default-1 commands
Adding multilib support to Makefile in /var/tmp/portage/gcc-4.0.2-r2/work/gcc-4.0.2/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-4.0.2-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-4.0.2-r2/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-4.0.2-r2/work/build/gcc/xgcc -B/var/tmp/portage/gcc-4.0.2-r2/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.2-r2/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.0.2-r2 failed.
!!! Function gcc_do_make, Line 1312, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


Compiling with gcc-4.0.2-r1 on AMD64:
Code:

Portage 2.0.53 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.90.20051201-r0, 2.6.14-archck5 x86_64)
=================================================================
System uname: 2.6.14-archck5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=athlon64 -pipe -ffast-math -fomit-frame-pointer -fforce-addr -fforce-mem -falign-functions=5"
CHOST="x86_64-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="-Os -march=athlon64 -pipe -ffast-math -fomit-frame-pointer -fforce-addr -fforce-mem -falign-functions=5"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 alsa apache2 async atm bitmap-fonts bzip2 crypt cups curl dhcp expat foomaticdb ftp gd geoip gif glibc-omitfp gpm imlib ithreads jpeg lm_sensors lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly pam pcre pdflib perl pic png pppoa python readline samba sockets spell ssl symlink tcpd threads tiff truetype-fonts type1-fonts udev unicode usb userlocales wifi xml xml2 xpm zlib linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS


Maybe this new ebuild depends on libsdtc++-v3, because I have:
Code:

 emerge -pv libstdc++-v3

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-libs/libstdc++-v3-3.3.6  -build (-multilib) +nls +nptl 0 kB

Total size of downloads: 0 kB


Will try emerging that now...
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Dec 14, 2005 9:49 am    Post subject: Reply with quote

What does config.log say? Is gcc the only thing you can't compile?
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Wed Dec 14, 2005 11:18 am    Post subject: Reply with quote

At the moment, yes. But now my router shut down itself (its overheating, AMD64 3200+ in a MicroATX case, rather weak HSF), and I'm at work now so I can't press the power-on button. :)
I'm going to try and compile new gcc on my 32-bit laptop now.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Wed Dec 14, 2005 12:17 pm    Post subject: Reply with quote

gcc 4.0.2-r2 compiled cleanly on my laptop (with previous version of 4.0.2), which HAS libstdc++-v3 installed.
Back to top
View user's profile Send private message
chtephan
Apprentice
Apprentice


Joined: 03 Feb 2004
Posts: 266
Location: Offenburg, Germany

PostPosted: Wed Dec 14, 2005 3:11 pm    Post subject: Reply with quote

Hmm, gcc_movelibs moved my 32 bit libstdc++ to /usr/lib/gcc/x86-64-pc-linux-gnu/4.0.2/ instead of ...foo.../4.0.2/32 .

I'm running the amd64 no-symlinks profile (IWANTTOTRASHMYSYSTEM=1), where the 64 bit libraries are stored in (/usr)/lib64 and 32 bit libraries in (/usr)/lib.

for FROMDIR in ... ${PREFIX}/lib/${MULTIDIR} ... resolves to /usr/lib/. where the 32 bit library is installed, but the 64 lib library expected.

Either /${PREFIX}/lib/${MULTIDIR} should be replaced by /${PREFIX}/$(get_libdir)/${MULTIDIR} or one of those five paths where the for loop is lookin in dropped. I don't know what weird combinations are out there, but in my case he's definitely looking in the wrong place.

"gcc -m32 --print-multi-os-dir" -> "../lib"
"gcc -m64 --print-multi-os-dir" -> "../lib64"
"gcc -m32 --print-multi-dir" -> "32"
"gcc -m64 --print-multi-dir" -> "."
Back to top
View user's profile Send private message
Fritz Heinrichmeyer
n00b
n00b


Joined: 15 Jul 2004
Posts: 14
Location: Hagen, Germany

PostPosted: Wed Dec 14, 2005 7:19 pm    Post subject: more savings with kde-3.5 expected Reply with quote

today i installed gcc-4.0.2 to recompile qt and some kde libs:

no problems so far, but there where no smaller executables.
Recompiling of qt-4 on the other side produced much smaller binaries (40%).
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Wed Dec 14, 2005 8:20 pm    Post subject: Reply with quote

nxsty wrote:
What does config.log say? Is gcc the only thing you can't compile?


It complains about missing "gmp.h" and of course I don't have gmp emerged. Is it required, but missing dependency from the ebuild? I'm talking about AMD64 platform.
EDIT: can't emerge gcc-4.0.2-r2 even after emerging gmp :(


Last edited by mbar on Thu Dec 15, 2005 6:22 am; edited 1 time in total
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Dec 14, 2005 8:35 pm    Post subject: Reply with quote

Do we have to re-emerge world?
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Thu Dec 15, 2005 6:12 pm    Post subject: Reply with quote

help, i'm at loss here:
Code:

updating cache ./config.cache
checking for gxx-include-dir... /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4
checking for --enable-version-specific-runtime-libs... no
checking for install location... /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libmath/Makefile
config.status: creating libsupc++/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile
config.status: creating testsuite/Makefile
config.status: creating scripts/testsuite_flags
config.status: creating config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in /var/tmp/portage/gcc-4.0.2-r2/work/gcc-4.0.2/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-4.0.2-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-4.0.2-r2/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-4.0.2-r2/work/build/gcc/xgcc -B/var/tmp/portage/gcc-4.0.2-r2/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.2-r2/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.0.2-r2 failed.
!!! Function gcc_do_make, Line 1312, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.


work/build/config.log:
Code:

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

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (gcc -O2 -march=athlon64 -pipe -Wl,-O1 -Wl,-Bdirect) works
configure:1937: gcc -o conftest -O2 -march=athlon64 -pipe  -Wl,-O1 -Wl,-Bdirect conftest.c  1>&5
configure:1963: checking whether the C compiler (gcc -O2 -march=athlon64 -pipe -Wl,-O1 -Wl,-Bdirect) is a cross-compiler
configure:1968: checking whether we are using GNU C
configure:1977: gcc -E conftest.c
configure:1996: checking whether gcc accepts -g
configure:2063: checking for gnatbind
configure:2128: checking whether compiler driver understands Ada
configure:2160: checking how to compare bootstrapped objects
configure:2258: checking for correct version of gmp.h
configure:2271: gcc -c -O2 -march=athlon64 -pipe   conftest.c 1>&5
configure:2284: checking for MPFR
configure:2297: gcc -o conftest -O2 -march=athlon64 -pipe   -Wl,-O1 -Wl,-Bdirect conftest.c  -lmpfr -lgmp 1>&5
configure:2793: checking for bison
configure:2828: checking for bison
configure:2863: checking for gm4
configure:2863: checking for gnum4
configure:2863: checking for m4
configure:2898: checking for flex
configure:2933: checking for flex
configure:2968: checking for makeinfo
configure:3615: checking for x86_64-pc-linux-gnu-ar
configure:3687: checking for x86_64-pc-linux-gnu-as
configure:3759: checking for x86_64-pc-linux-gnu-dlltool
configure:3792: checking for dlltool
configure:3831: checking for x86_64-pc-linux-gnu-ld
configure:3903: checking for x86_64-pc-linux-gnu-nm
configure:3975: checking for x86_64-pc-linux-gnu-ranlib
configure:4047: checking for x86_64-pc-linux-gnu-windres
configure:4080: checking for windres
configure:4119: checking for x86_64-pc-linux-gnu-objcopy
configure:4191: checking for x86_64-pc-linux-gnu-objdump
configure:4270: checking for x86_64-pc-linux-gnu-ar
configure:4342: checking for x86_64-pc-linux-gnu-as
configure:4414: checking for x86_64-pc-linux-gnu-dlltool
configure:4447: checking for dlltool
configure:4486: checking for x86_64-pc-linux-gnu-ld
configure:4558: checking for x86_64-pc-linux-gnu-nm
configure:4630: checking for x86_64-pc-linux-gnu-ranlib
configure:4702: checking for x86_64-pc-linux-gnu-windres
configure:4735: checking for windres
configure:4820: checking whether to enable maintainer-specific portions of Makefiles
configure:4867: checking if symbolic links between directories work
gateway build #
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Dec 15, 2005 7:02 pm    Post subject: Reply with quote

mbar wrote:
nxsty wrote:
What does config.log say? Is gcc the only thing you can't compile?


It complains about missing "gmp.h" and of course I don't have gmp emerged. Is it required, but missing dependency from the ebuild? I'm talking about AMD64 platform.
EDIT: can't emerge gcc-4.0.2-r2 even after emerging gmp :(


dev-libs/mpfr and dev-libs/gmp are required if you build with fortran. Does it still complain about a missing gmp.h now?
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Thu Dec 15, 2005 7:57 pm    Post subject: Reply with quote

no, I emerged both packages by hand, but it didn't help much, gcc-4.0.2-r2 fails as shown above
but I have no need of fortran:
Code:

gateway ~ # emerge -pv sys-devel/gcc sys-libs/glibc libstdc++-v3 mpfr gmp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] sys-devel/gcc-4.0.2-r2 [4.0.2-r1] (-altivec) -bootstrap -boundschecking -build -fortran -gcj -gtk -hardened -ip28 -mudflap (-multilib) -multislot (-n32) (-n64) +nls -nocxx -nopie -objc -objc-gc -vanilla 0 kB
[ebuild   R   ] sys-libs/glibc-2.3.90.20051201  -build -erandom -gcc4ssp -glibc-compat20 +glibc-omitfp -hardened -linuxthreads-tls (-multilib) +nls -nomalloccheck +nptl +nptlonly +pic -profile (-selinux) +userlocales 17,437 kB [1]
[ebuild   R   ] sys-libs/libstdc++-v3-3.3.6  -build (-multilib) +nls +nptl 0 kB
[ebuild   R   ] dev-libs/mpfr-2.2.0_p4  0 kB
[ebuild   R   ] dev-libs/gmp-4.1.4-r2  -doc -nocxx 0 kB

Total size of downloads: 17,437 kB
Portage overlays:
 [1] /usr/local/portage
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Dec 16, 2005 12:49 pm    Post subject: Reply with quote

OMG SOLVED!
I had to enable
[*] Executable file formats / Emulations
[*] IA32 Emulation
[*] IA32 a.out support
in kernel, tough I don't have need for it. But it might be caused by installing crossdev on my gateway, it is distcc host for 64 and 32-bit computers on my home network.
New gcc compiled now fine.
Back to top
View user's profile Send private message
Karl-Franz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2005
Posts: 121
Location: /se/lund

PostPosted: Thu Dec 22, 2005 11:08 am    Post subject: Reply with quote

MySQL 5.0.17 won't comile

Code:
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.      -DDBUG_OFF -march=pentium4 -mtune=pentium4 -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -fvisibility-inlines-hidden -fno-enforce-eh-specs -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT derror.o -MD -MP -MF ".deps/derror.Tpo" -c -o derror.o derror.cc; \
then mv -f ".deps/derror.Tpo" ".deps/derror.Po"; else rm -f ".deps/derror.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.      -DDBUG_OFF -march=pentium4 -mtune=pentium4 -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -fvisibility-inlines-hidden -fno-enforce-eh-specs -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_acl.o -MD -MP -MF ".deps/sql_acl.Tpo" -c -o sql_acl.o sql_acl.cc; \
then mv -f ".deps/sql_acl.Tpo" ".deps/sql_acl.Po"; else rm -f ".deps/sql_acl.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.      -DDBUG_OFF -march=pentium4 -mtune=pentium4 -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -fvisibility-inlines-hidden -fno-enforce-eh-specs -DHAVE_ERRNO_AS_DEFINE=1 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT unireg.o -MD -MP -MF ".deps/unireg.Tpo" -c -o unireg.o unireg.cc; \
then mv -f ".deps/unireg.Tpo" ".deps/unireg.Po"; else rm -f ".deps/unireg.Tpo"; exit 1; fi
sql_insert.cc: In function 'int check_update_fields(THD*, TABLE_LIST*, List<Item>&)':
sql_insert.cc:241: fatal error: internal consistency failure
compilation terminated.
Preprocessed source stored into /var/tmp/portage/mysql-5.0.17/temp/ccXP1zOH.out file, please attach this to your bugreport.
make[4]: *** [sql_insert.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/mysql-5.0.17/work/mysql/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/mysql-5.0.17/work/mysql/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/mysql-5.0.17/work/mysql/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-5.0.17/work/mysql'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-5.0.17 failed.
!!! Function src_compile, Line 485, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


emerge info:
Code:

Portage 2.1_pre1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r1, 2.6.14-nitro2London i686)
=================================================================
System uname: 2.6.14-nitro2London i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
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, 2.16.1-r1, 2.16.91.0.4, 2.16.91.0.5
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mtune=pentium4 -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mtune=pentium4 -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo ftp://ftp.du.se/pub/os/gentoo  http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="sv_SE"
LC_ALL="sv_SE"
LDFLAGS="-Wl,-O1 -Wl,-Bdirect -Wl,-z,now -Wl,--sort-common -s"
LINGUAS="se sv"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl acpi adns alsa apache2 apm arts artswrappersuid audiofile avi bash-completion bashlogger berkdb bindist bitmap-fonts bonobo browserplugin bzip2 bzlib cairo canvas caps cdb cdda cddb cdr cpdflib cross crypt css ctype cups curl curlwrappers dga dio directfb dri dv dvd dvdr dvdread eds effects emboss encode exif expat fam fastcgi fbcon ffmpeg fjbfft flac flash foomaticdb fortran ftp gcc4ssp gd gdbm gif gimp glut gmp gphoto2 gpm gstreamer gtk gtk2 gui hal httpd icc icc-pgo icecast id3 idn imagemagick imlib inifile inkjar ithreads jack jack-tmpfs java javascript jikes jpeg jpeg2k kde kdeenablefinal lame lcms ldap libcaca libg++ libwww logitech-mouse mad md5sum memlimit mhash mime ming mmx mng mozcalendar mozsvg mp3 mp4live mpeg multislot music musicbrainz mysql nas ncurses network nis nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oss pam pcntl pcre pdflib perl php pic player plugin png ppds profile python qt quicktime rar readline real sasl sblive sdl session shared sharedmem skins slang slp sndfile sockets spell sse sse2 ssl stream subtitles subversion svg svga sysfs tcp tcpd threads tiff tokenizer toolbar truetype truetype-fonts type1-fonts udev usb userlocales vhosts videos visualization vorbis win32codecs wxwindows xine xinerama xml xml2 xosd xprint xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_se linguas_sv userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET


Dunno if I'm to place this at bugzilla since it's gcc 4.02. Tried with LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" with no luck.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Fri Jan 27, 2006 7:25 pm    Post subject: Reply with quote

Code:
make[2]: *** [libusbpp.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.10a failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


i get this error trying to compile libusb using gcc 4.0.3 (cvs) on amd64

any solution?
Back to top
View user's profile Send private message
Hum
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2005
Posts: 116
Location: Canada

PostPosted: Sat Jan 28, 2006 1:14 am    Post subject: Reply with quote

rush_ad wrote:
Code:
make[2]: *** [libusbpp.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.10a failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


i get this error trying to compile libusb using gcc 4.0.3 (cvs) on amd64

any solution?


you need to scroll up some more and post more of the error :). What you have listed just says that the compile failed.
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Mon Jan 30, 2006 3:53 am    Post subject: Reply with quote

Did an amd64 stage 3/1 fresh install bootstrapping with gcc 4.0.2, glibc 2.3.6, and modular xorg unmasked. My hardware is two opteron 246s on a H8DCE motherboard, 4gb ram, and a Radeon X800 XL PCIe video card. I can only recall two packages, festival and one of it's dependencies, requiring compilation with gcc 3.4.5. I've been using the system for over a week now and the only real issue I had to resolve was configuring fglrx to work with xorg.
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Mon Jan 30, 2006 5:50 am    Post subject: Reply with quote

Unfortunately, ncpfs also requires to be compiled with gcc 3.4.x.
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Mon Jan 30, 2006 2:44 pm    Post subject: Reply with quote

Hum wrote:
rush_ad wrote:
Code:
make[2]: *** [libusbpp.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.10a/work/libusb-0.1.10a'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.10a failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


i get this error trying to compile libusb using gcc 4.0.3 (cvs) on amd64

any solution?


you need to scroll up some more and post more of the error :). What you have listed just says that the compile failed.


got it fixed it somehow, not sure how.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3 ... , 10, 11, 12  Next
Page 11 of 12

 
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