gfortran unresolvable R_X86_64_PC32 relocation against symbol
I compile my own code, which suffers the last step compiling. Error message.
gfortran -fno-automatic -O3 -std=c++11 -I ../mod/ -I ./inc -fPIC -o f06a.x f06a.o -L alib/ -l4min -l4ite -l4fit -l3dis -l3vbp -l3vpt -l3jet -l3hhk -l3wtt -l2prz -l2fnlo -l2appl -l2qnm -l2hoppet -l2lha -l2evl -l2ewk -l2qcd -l2cub -l1utl -L/home/
/usr/bin/ld: alib//lib2qnm.
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 1
The variable 'epsval' is defined by my own header file.
I tried the flag '-fPIC', both with and without it. But either works.
My gfortran version is
GNU Fortran (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
And I work on the latest Ubuntu 18.04 LTS.
I switch it gfortran-4.8, 5, 6, 7, but it the problem is not solved for any of them.
Best regards,
KP
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: