Skip to content

Conversation

@gugavaro
Copy link
Contributor

@gugavaro gugavaro commented Nov 8, 2019

We recently changed the build options to enable fPIC on Linux builds (see 10ba45a), but there was a couple of places still missing.

The src/java-interop build fails on Linux Ubuntu 19.10:

gcc -g -shared -m64 -o bin/TestDebug/libNativeTiming.so tests/NativeTiming/timing.c -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux
/usr/bin/ld: /tmp/ccmuRrxZ.o: relocation R_X86_64_PC32 against symbol `foo_void_timing' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

Update the Linux build to use gcc -fPIC so that src/java-interop can be linked successfully.

@jonpryor jonpryor merged commit 8602581 into master Nov 8, 2019
@jonpryor jonpryor deleted the gugavaro_fpic branch November 8, 2019 20:56
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants