Re: New BLCR snapshot posted (for 2.6.14 through 2.6.17)

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Fri Sep 08 2006 - 14:50:49 PDT

  • Next message: wchao_at_ncsu_dot_edu: "[Fwd: Re: New BLCR snapshot posted (for 2.6.14 through 2.6.17)]"
    Chao,
    
    The error appears to be caused by code in a system library, 
    /usr/lib64/libpthread_nonshared.a, which (as the name implies) has not 
    been built for use in a shared object.  This problem doesn't occur for 
    any platform I have access to currently, though FC5 is not among them.
    
    I suspect that in FC5 something has changed (relative to the systems 
    I've been using) in how glibc is built.  However, without access to an 
    FC5 x86-64 system, I am not sure how much I can do.
    
    Please send the output of the folloing two commands, as they will help 
    (a little) in determining what is resolved where:
    
    nm /lib64/libpthread.so.0 | grep atfork
    nm /usr/lib64/libpthread_nonshared.a | grep atfork
    
    -Paul
    
    wchao_at_ncsu_dot_edu wrote:
    > Hi Paul,
    > 
    > We still failed with the new snapshot on x86_64 fc5/2.6.16:
    > 
    > gcc -shared  .libs/libcr_la-cr_async.o .libs/libcr_la-cr_core.o
    > .libs/libcr_la-cr_cs.o .libs/libcr_la-cr_pthread.o
    > .libs/libcr_la-cr_sig_sync.o .libs/libcr_la-cr_syscall.o
    > .libs/libcr_la-cr_trace.o .libs/libcr_la-cr_strerror.o  -ldl -lpthread 
    > -nostdlib -Wl,-soname -Wl,libcr.so.0 -o .libs/libcr.so.0.1.3
    > /usr/bin/ld: /usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):
    > relocation R_X86_64_PC32 against `__dso_handle' can not be used when
    > making a shared object; recompile with -fPIC
    > /usr/bin/ld: final link failed: Bad value
    > 
    > and -fPIC doesn't fix the error:
    > 
    >  gcc -fPIC -shared  .libs/libcr_la-cr_async.o .libs/libcr_la-cr_core.o
    > .libs/libcr_la-cr_cs.o .libs/libcr_la-cr_pthread.o
    > .libs/libcr_la-cr_sig_sync.o .libs/libcr_la-cr_syscall.o
    > .libs/libcr_la-cr_trace.o .libs/libcr_la-cr_strerror.o  -ldl -lpthread 
    > -nostdlib -Wl,-soname -Wl,libcr.so.0 -o .libs/libcr.so.0.1.3
    > /usr/bin/ld: /usr/lib64/libpthread_nonshared.a(pthread_atfork.oS):
    > relocation R_X86_64_PC32 against `__dso_handle' can not be used when
    > making a shared object; recompile with -fPIC
    > /usr/bin/ld: final link failed: Bad value
    > 
    > Our gcc and binutils are:
    > gcc-4.1.0-3
    > binutils-2.16.91.0.6-5
    > 
    > Which gcc do you use for your compilation on x86-64?
    > 
    > Any suggestions are welcome!
    > Thanks!
    > Chao
    > 
    >> I've posted BLCR_0_4_pre3_snapshot_2006_09_06 to
    >> http://mantis.lbl.gov/blcr-dist
    >> If anybody still sees compilation or runtime failures on kernels
    >> 2.6.14-2.6.17, please let me know.
    >>
    >> -Paul
    >>
    
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
    

  • Next message: wchao_at_ncsu_dot_edu: "[Fwd: Re: New BLCR snapshot posted (for 2.6.14 through 2.6.17)]"