mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] tryiing to compile Octave


From: Alois Schloegl
Subject: Re: [Mingw-cross-env-list] tryiing to compile Octave
Date: Fri, 19 Apr 2013 15:19:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121215 Iceowl/1.0b1 Icedove/3.0.11

On 03/19/2013 08:52 AM, Tony Theodore wrote:
> 
> On 19/03/2013, at 5:06 PM, Tony Theodore <address@hidden> wrote:
> 
>>
>> On 19/03/2013, at 6:21 AM, Alois Schlögl <address@hidden> wrote:
>>
>>> I'm trying to compile Octave [1] with mxe, and the following issues:
>>
>> but the same guy appears to be working on a modified mxe build that also 
>> builds a cross-compiled gcc to run under msys (impressive!):
>>
>> https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2013-January/031526.html
> 
> There's a configure option "gl_cv_func_gettimeofday_clobber=no" in the forked 
> repo:


Tony, thanks for this hint.

> 
> http://hg.octave.org/mxe-octave
> 
> that lets the build progress for another half hour so, but then there are 
> other errors that look like static vs shared issues. You may want to check if 
> static building is supported.


Yes, it is possible. It seems compilation works fine, but there is a
huge number of "undefined references" when trying to link (the log file
has 356493 lines, only the first 7283 lines are related to configuration
and compilation, the remaining lines concern "undefined references").
The start and end of that section is shown below. The full log is
available here : http://pub.ist.ac.at/~schloegl/download/octave.log.txt.gz

Sometimes the order of the linked libraries is important. Do you think
that might be the case here, too?




/bin/bash ../libtool --tag=CC   --mode=link i686-pc-mingw32-gcc -g -O2
-pthread -fopenmp  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings
-Wcast-align -Wcast-qual -g -O2 -pthread -fopenmp -pthread -g -O2
-pthread -fopenmp -no-undefined   -o octave.exe main.o liboctinterp.la
../liboctave/liboctave.la ../libcruft/libcruft.la  -liberty -lm
-lgdi32 -lws2_32 -luser32 -lkernel32 -lgdi32 -lws2_32 -luser32 -lkernel32
libtool: link: i686-pc-mingw32-gcc -g -O2 -pthread -fopenmp
-DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -Wpointer-arith
-Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align
-Wcast-qual -g -O2 -pthread -fopenmp -pthread -g -O2 -pthread -fopenmp
-o octave.exe main.o  ./.libs/liboctinterp.a
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/liboctave/.libs/liboctave.a
-L/home/schloegl/src/mxe.github.schloegl/tmp-gcc/gcc-4.7.2.build/i686-pc-mingw32/winsup/mingw
-L/home/schloegl/src/mxe.github.schloegl/tmp-gcc/gcc-4.7.2.build/i686-pc-mingw32/winsup/w32api/lib
-L/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib
-lfltk_gl -lfltk -lole32 -luuid -lcomctl32
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libhdf5.a
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libfontconfig.a
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libexpat.a 
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libfreetype.a
-lz -lbz2 -lopengl32 -lglu32 ../liboctave/.libs/liboctave.a
/home/schloegl/src/mxe.gith
ub.schloegl/tmp-octave/octave-3.6.4/.build/libcruft/.libs/libcruft.a
-lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -larpack
-lqrupdate -lfftw3 -lfftw3f -lreadline -ltermcap
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libpcre.a
../libcruft/.libs/libcruft.a -llapack -lblas
/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/libgfortran.a
/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/libquadmath.a
-liberty -lgdi32 -lws2_32 -luser32 -lkernel32 -fopenmp -pthread
./.libs/liboctinterp.a(liboctinterp_la-octave.o): In function
`safe_source_file':
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:312:
undefined reference to `__cxa_begin_catch'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:315:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(char const*, std::allocator<char>
const&)'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:315:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string()'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:312:
undefined reference to `__cxa_end_catch'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:305:
undefined reference to `__cxa_begin_catch'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src/../../src/octave.cc:308:
undefined reference to `std::basic_ostream<char, std::char_traits<char>
>& std::operator<< <std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'


<snip>



/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/include/c++/iostream:75:
undefined reference to `std::ios_base::Init::~Init()'
/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/libcruft/.libs/libcruft.a(libcruft_la-quit.o):
In function `_static_initialization_and_destruction_0':
/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/include/c++/iostream:75:
undefined reference to `std::ios_base::Init::Init()'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0xde7):
undefined reference to `SuiteSparse_time'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0xea9):
undefined reference to `SuiteSparse_time'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0xedc):
undefined reference to `SuiteSparse_time'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0xfce):
undefined reference to `SuiteSparse_time'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x124f):
undefined reference to `SuiteSparse_time'
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x12c6):
more undefined references to `SuiteSparse_time' follow
/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/../../../../i686-pc-mingw32/bin/ld:
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/lib/libcholmod.a(cholmod_super_numeric.o):
bad reloc address 0x20 in section `.eh_frame'
/home/schloegl/src/mxe.github.schloegl/usr/lib/gcc/i686-pc-mingw32/4.7.2/../../../../i686-pc-mingw32/bin/ld:
final link failed: Invalid operation
collect2: error: ld returned 1 exit status
make[5]: *** [octave.exe] Error 1
make[5]: Leaving directory
`/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src'
make[4]: *** [install] Error 2
make[4]: Leaving directory
`/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build/src'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build'
make[2]: *** [install] Error 2
make[2]: Leaving directory
`/home/schloegl/src/mxe.github.schloegl/tmp-octave/octave-3.6.4/.build'
make[1]: *** [build-only-octave_i686-pc-mingw32] Error 2
make[1]: Leaving directory `/home/schloegl/src/mxe.github.schloegl'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]