Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -fPIC flag using R config PIC variant #1368

Closed
wants to merge 1 commit into from

Conversation

lepennec
Copy link

The latest sf version does not compile under fedora: configure yields

checking GDAL: linking with --libs only... yes
checking GDAL: /usr/share/gdal/pcs.csv readable... yes
checking GDAL: checking whether PROJ is available for linking:... no
/usr/bin/ld: /tmp/ccJ892zj.o: relocation R_X86_64_32 against symbol `__gxx_personality_v0@@CXXABI_1.3' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
configure: Install failure: compilation and/or linkage problems.
configure: error: cannot link projection code

Using the PIC version of the FLAGS with R Config solves the issue.

@edzer
Copy link
Member

edzer commented Apr 15, 2020

Did you check here?

@rsbivand
Copy link
Member

No problem with fully updated Fedora 31, R 4.0.0 beta, and sf from CRAN.

@edzer
Copy link
Member

edzer commented Jul 8, 2020

I think this was resolved by adding CXXFLAGS to configure.ac in #1369; let me know if I am wrong.

@edzer edzer closed this Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants