View previous topic :: View next topic |
Author |
Message |
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Sat Apr 07, 2007 8:04 pm Post subject: STLport compilation issues |
|
|
Hi everyone.
STLport 5.1.2 has gone stable. Normally, I wouldn't need to tell you this here, but apparently some people's gcc installations have namespace issues with c++ programs. To fix this problem, emerge the currently stable glibc, then emerge gcc again, even if it doesn't need to be updated. This should fix the problem with STLport (and maybe other C++ compilation issues too).
Thanks to everyone in this thread for figuring out a working solution. :) _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Last edited by JoseJX on Thu Jul 12, 2007 11:37 pm; edited 2 times in total |
|
Back to top |
|
|
fuzion n00b
Joined: 19 Feb 2003 Posts: 56
|
Posted: Mon Apr 16, 2007 11:56 pm Post subject: |
|
|
I did
and then
still get the following error:
Quote: | localhost devin # emerge STLport
Calculating dependencies... done!
>>> Emerging (1 of 1) dev-libs/STLport-5.1.2 to /
* STLport-5.1.2.tar.bz2 RMD160 ... [ ok ]
* STLport-5.1.2.tar.bz2 SHA1 ... [ ok ]
* STLport-5.1.2.tar.bz2 SHA256 ... [ ok ]
* STLport-5.1.2.tar.bz2 size ... [ ok ]
* checking ebuild checksums ... [ ok ]
* checking auxfile checksums ... [ ok ]
* checking miscfile checksums ... [ ok ]
* checking STLport-5.1.2.tar.bz2 ... [ ok ]
>>> Unpacking source...
>>> Unpacking STLport-5.1.2.tar.bz2 to /var/tmp/portage/dev-libs/STLport-5.1.2/work
* Applying STLport-5.1.2-wrong_russian_currency_name.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2 ...
make: Entering directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fident -fPIC -fuse-cxa-atexit -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -I../../stlport -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
../../stlport/stl/_cstdlib.h:91: error: '__std_alias::llabs' has not been declared
../../stlport/stl/_cstdlib.h:92: error: '__std_alias::lldiv_t' has not been declared
../../stlport/stl/_cstdlib.h:93: error: '__std_alias::lldiv' has not been declared
../../stlport/stl/_cstdlib.h: In function 'long long int abs(long long int)':
../../stlport/stl/_cstdlib.h:144: error: 'llabs' is not a member of '__std_alias'
../../stlport/stl/_cstdlib.h: In function 'lldiv_t div(long long int, long long int)':
../../stlport/stl/_cstdlib.h:145: error: 'lldiv' is not a member of '__std_alias'
make: *** [obj/gcc/so/dll_main.o] Error 1
make: Leaving directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
!!! ERROR: dev-libs/STLport-5.1.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3515: Called src_compile
STLport-5.1.2.ebuild, line 79: Called die
!!! Compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/STLport-5.1.2/temp/build.log'.
localhost devin # |
Let me know if I can help troubleshoot/fix this. Any suggestions?
Quote: | localhost devin # gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include/g++-v4 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)
localhost devin # |
|
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Apr 18, 2007 2:29 am Post subject: |
|
|
Besides moving to gcc-4.1.2 (latest unstable), not really. We never figured out what the issue was, but recompiling solved the issue for everyone that we had testing it. The upgrade to 4.1.2 shouldn't be a big deal, no ABI breakage or anything, so I'd try that and see if it helps. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
fuzion n00b
Joined: 19 Feb 2003 Posts: 56
|
Posted: Fri Apr 20, 2007 2:53 am Post subject: |
|
|
I just emerged 4.1.2 and it's still not working. Any suggestions?
Quote: | localhost devin # gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2) |
Quote: | localhost devin # emerge STLport
Calculating dependencies... done!
>>> Emerging (1 of 1) dev-libs/STLport-5.1.2 to /
* STLport-5.1.2.tar.bz2 RMD160 ;-) ... [ ok ]
* STLport-5.1.2.tar.bz2 SHA1 ;-) ... [ ok ]
* STLport-5.1.2.tar.bz2 SHA256 ;-) ... [ ok ]
* STLport-5.1.2.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking STLport-5.1.2.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking STLport-5.1.2.tar.bz2 to /var/tmp/portage/dev-libs/STLport-5.1.2/work
* Applying STLport-5.1.2-wrong_russian_currency_name.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2 ...
make: Entering directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
powerpc-unknown-linux-gnu-g++ -pthread -fexceptions -fident -fPIC -fuse-cxa-atexit -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE -I../../stlport -c -o obj/gcc/so/dll_main.o ../../src/dll_main.cpp
../../stlport/stl/_cstdlib.h:91: error: '__std_alias::llabs' has not been declared
../../stlport/stl/_cstdlib.h:92: error: '__std_alias::lldiv_t' has not been declared
../../stlport/stl/_cstdlib.h:93: error: '__std_alias::lldiv' has not been declared
../../stlport/stl/_cstdlib.h: In function 'long long int abs(long long int)':
../../stlport/stl/_cstdlib.h:144: error: 'llabs' is not a member of '__std_alias'
../../stlport/stl/_cstdlib.h: In function 'lldiv_t div(long long int, long long int)':
../../stlport/stl/_cstdlib.h:145: error: 'lldiv' is not a member of '__std_alias'
make: *** [obj/gcc/so/dll_main.o] Error 1
make: Leaving directory `/var/tmp/portage/dev-libs/STLport-5.1.2/work/STLport-5.1.2/build/lib'
!!! ERROR: dev-libs/STLport-5.1.2 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3515: Called src_compile
STLport-5.1.2.ebuild, line 79: Called die
!!! Compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/STLport-5.1.2/temp/build.log'.
localhost devin # |
|
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
fuzion n00b
Joined: 19 Feb 2003 Posts: 56
|
Posted: Fri Apr 20, 2007 11:21 am Post subject: |
|
|
Quote: | localhost devin # emerge gcc -vp
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-devel/gcc-4.1.2 USE="altivec doc gcj gtk nls test -bootstrap -build -d -fortran (-hardened) (-ip28) -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -vanilla" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB |
Quote: | localhost devin # emerge --info
Portage 2.1.2.2 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.2, glibc-2.4-r4, 2.6.18.4 ppc)
=================================================================
System uname: 2.6.18.4 ppc 7400, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 15 Apr 2007 19:30:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
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.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec bash-completion bcmath bidi bitmap-fonts bzip2 caps cdparanoia cjk cli cracklib crypt cscope ctype curl curlwrappers dga dio directfb doc dri dts dv dvb dvd dvdread encode esd examples fam fastcgi fbcon ffmpeg firefox flac flatfile fltk ftp gcj gd gdbm ggi gif glut gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hardened howl iconv idn ieee1394 imagemagick imap imlib inifile innodb isdnlog jack java javascript jbig jikes jpeg jpeg2000 junit kerberos lash lcms ldap libcaca libedit libnotify libwww mad maildir mailwrapper memlimit midi milter mime ming mmap mng motif mozilla mp3 mpeg mpi mplayer msn musepack mysql mysqli ncurses nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl osc oss pam pcntl pcre pdf perl png portaudio posix postgres ppc pppd profile python qt3 qt4 quicktime readline recode reflection ruby samba sasl sdl session sharedext sharedmem shorten simplexml snmp soap sockets socks5 source sox speex spell spl ssl startup-notification symlink sysvipc szip tcl tcltk tcpd test tetex theora threads tidy tk tokenizer truetype truetype-fonts type1-fonts unicode usb v4l vcd verbose vim-syntax vorbis wmf wxwindows xface xine xinerama xml xml-rpc xorg xpm xsl xv xvid yahoo zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio 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 ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="r128"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
|
|
Back to top |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Sat Apr 21, 2007 10:28 am Post subject: |
|
|
I had a feeling you had glibc-2.4. I am wondering if the problem I and other
people experienced was because we didn't rebuild gcc after updating to glibc-2.5.
Can you upgrade glibc and possibly rebuild gcc after that and retry? |
|
Back to top |
|
|
sno35 Guru
Joined: 15 May 2004 Posts: 334 Location: Paris, France
|
Posted: Sun Apr 22, 2007 1:03 pm Post subject: |
|
|
Hi
I had the same problem. Verified I last emerged glibc before gcc.
Then re-emerged gcc, problem fixed.
My2c. |
|
Back to top |
|
|
fuzion n00b
Joined: 19 Feb 2003 Posts: 56
|
Posted: Sun Apr 22, 2007 4:58 pm Post subject: |
|
|
Worked for me, many thanks! |
|
Back to top |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Mon Apr 23, 2007 5:05 am Post subject: |
|
|
sno35 wrote: | Hi
I had the same problem. Verified I last emerged glibc before gcc.
Then re-emerged gcc, problem fixed.
My2c. |
Do you mean you did go through glibc - gcc and gcc again before
it worked?
Or did you as I suggested go throught glibc then later gcc because
of STLport? |
|
Back to top |
|
|
sno35 Guru
Joined: 15 May 2004 Posts: 334 Location: Paris, France
|
Posted: Mon Apr 23, 2007 9:16 pm Post subject: |
|
|
Hi fb,
I was just in the situation you described.
I checked that in /var/log/emerge.log.
gcc-4.1.1 had been emerged on Jan 13, 2007,
gcc-3.4.6-r1 on Jun 18, 2007
and glibc-2.5 on Feb 24, 2007.
And just fired
which reemerged 4.1.1 and it got OK
Have a nice day. |
|
Back to top |
|
|
|
|
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
|
|