Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13206 - STLport fails to build
Summary: STLport fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-03 21:41 UTC by Sean E Russell
Modified: 2003-01-08 14:34 UTC (History)
0 users

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


Attachments
A log of an attempted emerge (STL.script,29.48 KB, text/plain)
2003-01-03 21:42 UTC, Sean E Russell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean E Russell 2003-01-03 21:41:37 UTC
STLport fails to build.  The short version is that it doesn't seem to be 
getting the correct environment from the build process: 
 
%h)%B%n@%m%b %U%2.%u%# emerge STLport 
Calculating dependencies ...done! 
>>> emerge (1 of 1) dev-libs/STLport-4.5.3-r2 to / 
>>> md5 ;-) STLport-4.5.3.tar.gz 
>>> Unpacking source... 
>>> Unpacking STLport-4.5.3.tar.gz 
 * Applying STLport-4.5.3-gcc3.patch2...                                  [ ok 
] 
 * Applying STLport-4.5.3-optimize.patch...                               [ ok 
] 
>>> Source unpacked. 
*** ATTENTION! *** 
This makefile tries to use system locale which might not work well with all 
glibc flavours. 
If build fails, please resort to gcc.mak which will build C-locale only version 
for STLport 
****************** 
mkdir -p ../lib/obj/GCC-LINUX/ReleaseD 
c++  -pthread -fexceptions -I../stlport -W -Wno-sign-compare -Wno-unused 
-Wno-uninitialized -D_STLP_USE_GLIBC  -fPIC dll_main.cpp -c -o 
../lib/obj/GCC-LINUX/ReleaseD/dll_main.o 
c++  -pthread -fexceptions -I../stlport -W -Wno-sign-compare -Wno-unused 
-Wno-uninitialized -D_STLP_USE_GLIBC  -fPIC fstream.cpp -c -o 
../lib/obj/GCC-LINUX/ReleaseD/fstream.o 
In file included from stlport_prefix.h:28, 
                 from fstream.cpp:20: 
../stlport/ctime:25:44: ../g++-v32/ctime: No such file or directory 
In file included from stlport_prefix.h:28, 
                 from fstream.cpp:20: 
... 
 
and: 
 
%h)%B%n@%m%b %U%2.%u%# locate ctime 
/home/ser/Webcam/camstream-0.26.1/docs/api/html/class_ctimesnapdlg-members.html 
/home/ser/Webcam/camstream-0.26.1/docs/api/html/class_ctimesnapdlg.gif 
/home/ser/Webcam/camstream-0.26.1/docs/api/html/class_ctimesnapdlg.html 
/usr/include/g++-v32/ctime 
... 
 
Attached is a script of the entire build process.
Comment 1 Sean E Russell 2003-01-03 21:42:19 UTC
Created attachment 6939 [details]
A log of an attempted emerge
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-05 11:23:09 UTC
Install gentoolkit, and include the output of:

 # epm -q gcc
 # emerge info
Comment 3 Sean E Russell 2003-01-05 17:13:04 UTC
%h)%B%n@%m%b %U%2.%u%# epm -q gcc 
gcc-3.2.1-r6 
gcc-3.2.1 
%h)%B%n@%m%b %U%2.%u%# emerge info 
Portage 2.0.46-r4 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3) 
================================================================= 
System uname: 2.4.19-gentoo-r10 i686 Mobile Pentium II 
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx mpeg 
ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml 
gdbm berkdb readline arts svga ggi tcltk java ruby X sdl gpm tcpd pam ssl esd 
imlib oggvorbis gtk qt kde motif gphoto2 cdr -nano -alsa -3dnow -sse -3dfx 
-voodoo3 -matrox -scanner -dga -opengl -fbcon -directfb -gnome -bonobo -evo -gb 
-mysql -guile -perl -python -slang -zeo -innodb -cjk -canna -freewnn -mule +xv 
+ruby +qt +qtmt +wavelan +kamera" 
ARCH="x86" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-O2 -mcpu=i686 -pipe" 
CXXFLAGS="" 
ACCEPT_KEYWORDS="x86 ~x86" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config 
/usr/kde/2/share/config /usr/kde/3/share/config 
/usr/kde/3/share/config:/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
MAKEOPTS="-j2" 
JDK_HOME="/opt/sun-jdk-1.4.1.01" 
JAVA_HOME="/opt/sun-jdk-1.4.1.01" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 12:35:54 UTC
Ok, problem is that you have both gcc-3.2.1 and gcc-3.2.1-r6.  They use
different locations for g++ includes.  Please run:

 # emerge clean gcc

to remove the oldest (or second last merted).  Let me know what happens.
Comment 5 Sean E Russell 2003-01-07 19:41:30 UTC
Hmmm.  I keep my system pretty "clean", although I admit that I'm no Portage 
expert.  So this doesn't surprise me: 
 
%h)%B%n@%m%b %U%2.%u%# emerge clean gcc 
 
 sys-devel/gcc 
    selected: none 
   protected: 3.2.1-r6 3.2.1 
     omitted: none 
 
>>> clean: No packages selected for removal. 
 
"Hmmm." I thought.  So I ran epm on the packages: 
 
1)ser@bean ~% epm -qi gcc-3.2.1 
Name        : gcc 
Version     : 3.2.1 
Release     :                                     Slot: 3.2 
Install date: Sun Nov 24 12:05:40 2002      Build Host: i686-pc-linux-gnu 
Group       : sys-devel                        License: GPL-2 LGPL-2.1 
Size        : TBD 
Packager    : azarah 
Description : 
Modern C/C++ compiler written by the GNU people 
2)ser@bean ~% epm -qi gcc-3.2.1-r6 
Use of uninitialized value in localtime at /usr/bin/epm line 188. 
readline() on closed filehandle F at /usr/bin/epm line 203. 
Use of uninitialized value in pattern match (m//) at /usr/bin/epm line 204. 
Use of uninitialized value in pattern match (m//) at /usr/bin/epm line 205. 
Name        : gcc 
Version     : 3.2.1 
Release     : 6                                   Slot: 
Install date: Wed Dec 31 19:00:00 1969      Build Host: 
Group       : sys-devel                        License: 
Size        : TBD 
Packager    : 
Description : 
 
Could my 3.2.1-r6 install be munged somehow?  So I'm re-installing 
gcc-3.2.1-r6.  Next, I'll try forcably de-installing gcc-3.2.1.  I'd like to 
know *why* this happened, but I guess it'll have to remain a mystery unless 
somebody else encounters it. 
 
Oh, by the way: 
 
%h)%B%n@%m%b %U%2.%u%# qpkg -q gcc-3.2.1-r6 
sys-devel/gcc-3.2.1-r6 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
%h)%B%n@%m%b %U%2.%u%# qpkg -q gcc-3.2.1 
sys-devel/gcc-3.2.1 * 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
sys-devel/gcc-3.2.1 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
sys-devel/gcc-3.2.1-r5 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
sys-devel/gcc-3.2.1-r6 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
sys-devel/gcc-3.2.1-r1 
DEPENDED ON BY: 
        app-emulation/wine-20021125 
        app-games/chromium-0.9.12-r1 
        dev-lang/nasm-0.98.34 
        dev-lang/swig-1.3.16 
        net-analyzer/nmap-3.10_alpha3 
        sys-libs/pam-0.75-r11 
 
Comment 6 Sean E Russell 2003-01-08 06:19:23 UTC
That did it.  Re-emerging gcc cleaned out the duplication, and STL builds and 
installs.  Thanks! 
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-08 14:34:56 UTC
Great!