The problem is that "-march" is setted to "switch". This should contain the CPU type, but it does not. I don't know why I could build mineserver before without this problem, but I could.

You must execute the "cmake ." command, and then, replace "-march=switch" with "-march=x86-64" * in these files:"mineserverdirectory/CMakeFiles/mineserver.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/binlog.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/commands.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/crapmops.dir/flags.make" (Even if we could delete this one, sadly)"mineserverdirectory/plugins/CMakeFiles/curseui.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/filelog.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/flatpermissions.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/nBreak.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/nether.dir/flags.make""mineserverdirectory/plugins/CMakeFiles/passiveMobs.dir/flags.make"

Okay. After that, you can run the "make all install" command without problems (hopefully )

-- thegk01

* I have an Intel Core 2 Duo 1,83 GHz Processor... Maybe it is not the right text in the "-march=" variable for you, but go try it

It is not the lighting.cpp which causes the error. The problem are the incorrect CMake-Files... I think if lighting.cpp is removed, "make all install" stops with the same error at the next file.It seems that cmake does'nt set the CPU type correctly and puts a wrong value into the flags.