[solved] CMake Error when building Firmware

Hello, I configured development environment on Ubuntu, and when I was compiling the Firmware code, I met errors. I’m really confused, I don’t know which caused this problem.
Is the problem of assembler or some other causes?
Any help would be appreciated.

CMake Error at CMakeLists.txt:306 (STRING):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.


-- C compiler: 
CMake Error at CMakeLists.txt:314 (STRING):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.

update:
I have found the reason for my problem.
After I executed this command:
arm-none-eabi-gcc --version
I got:
arm-none-eabi-gcc: No such file or directory
Because my ubuntu is 64 bit, so I installed lsb-core
sudo apt-get install lsb-core
then the problem was solved.