Solved
My project is building successfull but cannot upload it to STM32Discovery board and the stm32cube ide is showing libncurses related error on Manjaro Linux.
Below error is throwing in Manjaro Linux when I try to upload the program to the board. The project is building successful. Installed libncurses from AUR as well as the offiicial repository, but no use.

