Dear Joaquin,

This would appear to be an issue with the way that blas is compiled: See these 
search results 
<http://www.google.com/search?q=libblas.a+relocation+R_X86_64_32S+against+`.rodata'>
 
for some more info. If this were installed by a system administrator then 
you should ask them to recompile this package (and maybe lapack as 
well) with the "-fPIC" flag as has been suggested. If you installed this 
yourself then this is how it might be done 
<http://stackoverflow.com/questions/18828730/lapack-linking-error-recompile-with-fpic>
 
for 64-bit lapack, and I presume that similar would apply to a stock blas 
<http://www.netlib.org/blas/> installation.

FORTRAN  = gfortran -m64 -fPIC
> OPTS     = -O2 -m64 -fPIC
> DRVOPTS  = $(OPTS)
> NOOPT    = -O0 -m64 -fPIC
> LOADER   = gfortran -m64 -fPIC
>
>
Best,
Jean-Paul

On Sunday, March 26, 2017 at 1:53:22 AM UTC+1, Joaquin wrote:
>
> Dear Timo,
> Thanks for your quick response. Sorry for the late answer. Another error 
> I got when I typed "make -j8 install, this is shown below:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Linking CXX shared library ../lib/libdeal_II.so/usr/bin/ld: 
> /cm/shared/apps/blas/open64/3.5.0/lib64/../lib64/libblas.a(cgbmv.o): 
> relocation R_X86_64_32S against `.rodata' can not be used when making a 
> shared object; recompile with 
> -fPIC/cm/shared/apps/blas/open64/3.5.0/lib64/../lib64/libblas.a: could not 
> read symbols: Bad valuecollect2: error: ld returned 1 exit statusmake[2]: 
> *** [lib/libdeal_II.so.8.4.1] Error 1make[1]: *** 
> [source/CMakeFiles/deal_II.dir/all] Error 2make[1]: *** Waiting for 
> unfinished jobs..../usr/bin/ld: 
> /cm/shared/apps/blas/open64/3.5.0/lib64/../lib64/libblas.a(cgbmv.o): 
> relocation R_X86_64_32S against `.rodata' can not be used when making a 
> shared object; recompile with 
> -fPIC/cm/shared/apps/blas/open64/3.5.0/lib64/../lib64/libblas.a: could not 
> read symbols: Bad valuecollect2: error: ld returned 1 exit statusmake[2]: 
> *** [lib/libdeal_II.g.so.8.4.1] Error 1make[1]: *** 
> [source/CMakeFiles/deal_II.g.dir/all] Error 2make: *** [all] Error 2*Can 
> anybody help me please?.
>
> Thanks,
> Joaquin
>
>
> On Sunday, February 12, 2017 at 7:52:42 PM UTC-4, Joaquin wrote:
>>
>> Dear all:
>>
>> I am trying to run the tutorial programs into a cluster. For example in 
>> the case of step-3, after typing make, it sent the following error:
>>
>> [fjust@boqueron step-3]$ make
>> Scanning dependencies of target step-3
>> [100%] Building CXX object CMakeFiles/step-3.dir/step-3.cc.o
>> cc1plus: error: invalid option argument ‘-Og’
>> cc1plus: error: unrecognized command line option "-std=c++11"
>> cc1plus: warning: unrecognized command line option 
>> "-Wno-unused-local-typedefs"
>> cc1plus: warning: unrecognized command line option "-Wno-literal-suffix"
>> make[2]: *** [CMakeFiles/step-3.dir/step-3.cc.o] Error 1
>> make[1]: *** [CMakeFiles/step-3.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Before these errors appeared, I typed the cmake command:
>>
>> [fjust@boqueron step-3]$ cmake 
>> -DDEAL_II_DIR=/work/fjust/fjust/jvalencia/cfem/dealii ./
>> -- The C compiler identification is GNU 4.4.7
>> -- The CXX compiler identification is GNU 4.4.7
>> -- Check for working C compiler: /usr/bin/cc
>> -- Check for working C compiler: /usr/bin/cc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- Autopilot invoked
>> ###
>> #
>> #  Project  step-3  set up with  deal.II-8.4.1  found at
>> #      /work/fjust/fjust/jvalencia/cfem/dealii
>> #
>> #  CMAKE_BUILD_TYPE:          Debug
>> #
>> #  You can now run
>> #       $ make                - to compile and link the program
>> #       $ make run            - to (compile, link and) run the program
>> #
>> #       $ make debug          - to switch the build type to 'Debug'
>> #       $ make release        - to switch the build type to 'Release'
>> #
>> #       $ make edit_cache     - to change (cached) configuration variables
>> #                               and rerun the configure and generate 
>> phases of CMake
>> #
>> #       $ make strip_comments - to strip the source files in this
>> #                               directory off the documentation comments
>> #       $ make clean          - to remove the generated executable as 
>> well as
>> #                               all intermediate compilation files
>> #       $ make runclean       - to remove all output generated by the 
>> program
>> #       $ make distclean      - to clean the directory from _all_ 
>> generated
>> #                               files (includes clean, runclean and the 
>> removal
>> #                               of the generated build system)
>> #       $ make info           - to view this message again
>> #
>> #  Have a nice day!
>> #
>> ###
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: 
>> /work/fjust/fjust/jvalencia/jvrun/dealii-8.4.1/examples/step-3
>>
>> Please, could you help me to solve this problem?
>>
>> Thanks,
>> Joaquín
>>
>>
>>  
>>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to