rodata can not be used when making a PIE object

Dear all,
Any one built Slicer with gcc/g++ 7.3 before. I am hitting errors like
/usr/bin/ld: CMakeFiles/vtkParseJava.dir/vtkParseJava.c.o: relocation R_X86_64_32 against .rodata' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../../lib/libvtkWrappingTools-8.2.a(vtkParseMain.c.o): relocation R_X86_64_32 against.rodata’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: …/…/lib/libvtkWrappingTools-8.2.a(vtkParseString.c.o): relocation R_X86_64_32S against symbol parse_charbits' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../../lib/libvtkWrappingTools-8.2.a(vtkParseHierarchy.c.o): relocation R_X86_64_32 against.text’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: …/…/lib/libvtkWrappingTools-8.2.a(vtkParsePreprocess.c.o): relocation R_X86_64_32S against symbol parse_charbits' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../../lib/libvtkWrappingTools-8.2.a(vtkWrap.c.o): relocation R_X86_64_32 against.rodata’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: …/…/lib/libvtkWrappingTools-8.2.a(vtkParseMerge.c.o): relocation R_X86_64_32 against `.rodata’ can not be used when making a PIE object; recompile with -fPIC

I am suspecting it’s caused by compilers version.