This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling GSL on IRIX 6.5 with gcc


Brian Gough wrote:
> 
> Mr. Roman Putanowicz writes:
>  > It compiles but make check crashes in block/:
>  >
>  > Program received signal SIGSEGV, Segmentation fault.
>  > 0x1000c3a4 in gsl_block_complex_long_double_fscanf (stream=0xfb525d8,
>  >     b=0x100300ce) at fprintf_source.c:85
>  > 85                data [MULTIPLICITY * i + k] = tmp;
>  >
> 
> After running configure try editing config.h to comment out or delete
> the line,
> 
>  #define HAVE_PRINTF_LONGDOUBLE 1
> 
> and see if that makes any difference. 

Thanks, that helped,  except for one small case:

make check in cblas/ fails in linking stage:

gcc -g -O2 -o .libs/test test.o test_amax.o test_asum.o test_axpy.o test_copy.o 
test_dot.o test_gbmv.o test_gemm.o test_gemv.o test_ger.o test_hbmv.o test_hemm.
o test_hemv.o test_her.o test_her2.o test_her2k.o test_herk.o test_hpmv.o test_h
pr.o test_hpr2.o test_nrm2.o test_rot.o test_rotg.o test_rotm.o test_rotmg.o tes
t_sbmv.o test_scal.o test_spmv.o test_spr.o test_spr2.o test_swap.o test_symm.o 
test_symv.o test_syr.o test_syr2.o test_syr2k.o test_syrk.o test_tbmv.o test_tbs
v.o test_tpmv.o test_tpsv.o test_trmm.o test_trmv.o test_trsm.o test_trsv.o  ./.
libs/libgslcblas.so ../ieee-utils/.libs/libgslieeeutils.al ../err/.libs/libgsler
r.al ../test/.libs/libgsltest.al ../sys/.libs/libgslsys.al -lm -Wl,-rpath -Wl,/u
sr/local/lib
ld32: WARNING 84 : ../sys/.libs/libgslsys.al is not used for resolving any symbo
l.
ld32: ERROR   33 : Unresolved text symbol ".LC109" -- 1st referenced by test_rot
g.o.
        Use linker option -v to see when and which objects, archives and dsos ar
e loaded.  
ld32: ERROR   33 : Unresolved text symbol ".LC115" -- 1st referenced by test_rot
g.o.
        Use linker option -v to see when and which objects, archives and dsos ar
e loaded.  
ld32: ERROR   33 : Unresolved text symbol ".LC13" -- 1st referenced by test_rotg
.o.
        Use linker option -v to see when and which objects, archives and dsos ar
e loaded.  
ld32: INFO    152: Output file removed because of error.


The compilation flagas were -g -O2.

I recompiled the file test_rotg.c with different flags:
 a) only -g   --  works fine
 b) only -O2  --  works fine


Using nm -u I have got:

Undefined symbols from test_rotg.o:

[9]     |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |.LC115
[10]    |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |gsl_test_rel
[13]    |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |.LC109
[16]    |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |cblas_drotg
[17]    |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |cblas_srotg
[26]    |         0|       0|FUNC |GLOB |DEFAULT  |UNDEF  |.LC13

Have no idea what those LC115, etc. symbols are but it looks again as a compiler
problem.
 
Regards 
Romek Putanowicz <romek@sect.mce.hw.ac.uk>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]