Search found 1 match

by brep
Sat Feb 15, 2020 5:26 am
Forum: Install / Compile
Topic: [SOLVED] Failed to build on mips64el arch
Replies: 5
Views: 584

[SOLVED] Failed to build on mips64el arch

While tring to build FreeCAD on a mips64el-arch machine (Loongson 3A4000 for specific), I got many build errors like this:

Code: Select all

relocation truncated to fit: R_MIPS_CALL16
Add this line to CMakeLists.txt solved the problem:

Code: Select all

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" -mxgot")