Running into error building core

Ran into these errors. Can anyone help me?

[ 4%] Built target g3dlib
[ 4%] Built target Detour
[ 5%] Built target Recast
[ 6%] Built target fmt
[ 9%] Built target jemalloc
[ 9%] Built target gsoap
[ 10%] Built target mpq
[ 10%] Built target revision_data.h
[ 14%] Built target common
[ 16%] Built target database
[ 17%] Built target shared
[ 39%] Built target game
[ 39%] Linking CXX executable authserver
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(jemalloc.c.o): relocation R_X86_64_32S against symbol sz_size2index_tab' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(large.c.o): relocation R_X86_64_32S against symbol sz_size2index_tab’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(log.c.o): relocation R_X86_64_32 against undefined symbol log_var_names' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(malloc_io.c.o): relocation R_X86_64_32S against .rodata’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(mutex.c.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(pages.c.o): relocation R_X86_64_32 against .rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(prof.c.o): relocation R_X86_64_32 against .bss' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(rtree.c.o): relocation R_X86_64_32 against .rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(stats.c.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(tcache.c.o): relocation R_X86_64_32S against symbol sz_index2size_tab’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(tsd.c.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(witness.c.o): relocation R_X86_64_32 against .rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(arena.c.o): relocation R_X86_64_32S against symbol je_dss_prec_names' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(background_thread.c.o): relocation R_X86_64_32 against .rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(base.c.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(bin.c.o): relocation R_X86_64_32 against .rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(ckh.c.o): relocation R_X86_64_32S against symbol sz_size2index_tab' can not be used when making a PIE object; recompile with -fPIC /usr/bin/x86_64-linux-gnu-ld: ../../../dep/jemalloc/libjemalloc.a(ctl.c.o): relocation R_X86_64_32 against .bss’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: …/…/…/dep/jemalloc/libjemalloc.a(extent.c.o): relocation R_X86_64_32S against undefined symbol `je_arenas’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
src/server/authserver/CMakeFiles/authserver.dir/build.make:207: recipe for target ‘src/server/authserver/authserver’ failed
make[2]: *** [src/server/authserver/authserver] Error 1
CMakeFiles/Makefile2:1405: recipe for target ‘src/server/authserver/CMakeFiles/authserver.dir/all’ failed
make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

Have you tried deleting your build directory and recompiling everything? If your compiler has changed at some point, the defaults regarding PIC and PIE may have changed, so part of the code is compiling one way and part another.