Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298506 - sci-libs/mathgl-1.9.0.1 failed to build: ../mgl/.libs/libmgl.so: undefined reference to `ompi_mpi_cxx_op_intercept',`MPI::Datatype::Free()'`MPI::Comm::Comm()',`MPI::Win::Free()'
Summary: sci-libs/mathgl-1.9.0.1 failed to build: ../mgl/.libs/libmgl.so: undefined re...
Status: RESOLVED DUPLICATE of bug 296518
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-27 08:19 UTC by Lebedev Roman
Modified: 2010-01-07 03:55 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,9.09 KB, text/plain)
2009-12-27 08:20 UTC, Lebedev Roman
Details
build.log (build.log,93.23 KB, text/plain)
2009-12-27 08:20 UTC, Lebedev Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lebedev Roman 2009-12-27 08:19:14 UTC
Compilation failed with undefined references in ../mgl/.libs/libmgl.so

Reproducible: Always

Steps to Reproduce:
1.emerge --sync
2.emerge -v sci-libs/mathgl
use flags for mathgl: USE="doc gif glut gsl hdf5 jpeg octave python qt4 -fltk -wxwindows"
Actual Results:  
Making all in utils                                                                                                                                          
make[1]: Entering directory `/var/tmp/portage/sci-libs/mathgl-1.9.0.1/work/mathgl-1.9.0.1/utils'                                                             
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include/mgl -I../include   -Wall -I/usr/include -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe -MT mgl2png.o -MD -MP -MF .deps/mgl2png.Tpo -c -o mgl2png.o mgl2png.cpp                                                          
mv -f .deps/mgl2png.Tpo .deps/mgl2png.Po                                                                                                                     
/bin/sh ../libtool --tag=CXX   --mode=link x86_64-pc-linux-gnu-g++ -Wall -I/usr/include -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe  -Wl,-O1 -o mgl2png mgl2png.o ../mgl/libmgl.la                                                                                            
libtool: link: warning: library `/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libgomp.la' was moved.                                                               
libtool: link: warning: library `/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libgomp.la' was moved.                                                               
libtool: link: x86_64-pc-linux-gnu-g++ -Wall -I/usr/include -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe -Wl,-O1 -o .libs/mgl2png mgl2png.o  ../mgl/.libs/libmgl.so -L/usr/lib64 /usr/lib64/libpng12.so -lGL /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libgomp.so -lrt /usr/lib64/libgsl.so /usr/lib64/libgslcblas.so /usr/lib64/libhdf5.so -lm -lpthread -lz /usr/lib64/libgif.so /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl /usr/lib64/libjpeg.so                                                         
../mgl/.libs/libmgl.so: undefined reference to `ompi_mpi_cxx_op_intercept'                                                                                   
../mgl/.libs/libmgl.so: undefined reference to `MPI::Datatype::Free()'                                                                                       
../mgl/.libs/libmgl.so: undefined reference to `MPI::Comm::Comm()'                                                                                           
../mgl/.libs/libmgl.so: undefined reference to `MPI::Win::Free()'                                                                                            
collect2: ld returned 1 exit status                                                                                                                          
make[1]: *** [mgl2png] Error 1                                                                                                                               
make[1]: Leaving directory `/var/tmp/portage/sci-libs/mathgl-1.9.0.1/work/mathgl-1.9.0.1/utils'                                                              
make: *** [all-recursive] Error 1

Expected Results:  
sci-libs/mathgl should build fine :)
Comment 1 Lebedev Roman 2009-12-27 08:20:02 UTC
Created attachment 214267 [details]
emerge --info
Comment 2 Lebedev Roman 2009-12-27 08:20:36 UTC
Created attachment 214269 [details]
build.log
Comment 3 Lebedev Roman 2009-12-27 11:25:31 UTC
I`m gettig same error when trying to re-emerge sci-mathematics/octave-3.2.3 (USE="curl doc fftw hdf5 readline sparse zlib -debug -emacs -xemacs"):
making DOCSTRINGS                                                                                                                                            
rm -f liboctinterp.so.3.2.3                                                                                                                                  
ln -s liboctinterp.so liboctinterp.so.3.2.3                                                                                                                  
x86_64-pc-linux-gnu-g++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -march=native -O3 -mmmx -msse -msse2 -msse3 -m3dnow -ftree-vectorize -mfpmath=sse -pipe -rdynamic \                                                    
        -L..  -fPIC -Wl,-O1 -o octave \                                                                                                                      
        main.o  \                                                                                                                                            
        -L../liboctave -L../libcruft -L../src -Wl,-rpath -Wl,/usr/lib64/octave-3.2.3 \                                                                       
        -loctinterp -loctave  -lcruft   \                                                                                                                    
         -lumfpack -lamd -lcamd -lcolamd \                                                                                                                   
        -lcholmod -lccolamd -lcxsparse -llapack -lblas   -lblas   \                                                                                          
        -lfftw3 -lfftw3f  -larpack -lftgl -lfreetype -lz -L/usr/X11R6/lib -lGL -lGLU \                                                                       
        -L/usr/lib64 -lX11  -lreadline  -lncurses -ldl -lhdf5 -lz -lm  -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../.. -lhdf5 -lz -lgfortranbegin -lgfortran -lm                                                                                                
../src/liboctinterp.so: undefined reference to `ompi_mpi_cxx_op_intercept'                                                                                   
../src/liboctinterp.so: undefined reference to `MPI::Datatype::Free()'                                                                                       
../src/liboctinterp.so: undefined reference to `MPI::Comm::Comm()'                                                                                           
../src/liboctinterp.so: undefined reference to `MPI::Win::Free()'                                                                                            
collect2: ld returned 1 exit status                                                                                                                          
make[2]: *** [octave] Error 1                                                                                                                                
make[2]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.2.3/work/octave-3.2.3/src'                                                             
make[1]: *** [src] Error 2                                                                                                                                   
make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.2.3/work/octave-3.2.3'                                                                 
make: *** [all] Error 2
Comment 4 Lebedev Roman 2009-12-27 12:40:50 UTC
Fixed by re-emergeing sci-libs/hdf5 with USE="cxx -mpi"
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2010-01-07 03:55:33 UTC

*** This bug has been marked as a duplicate of bug 296518 ***