Skip to content

[BUG] Failed to compile app #1135

Answered by lidongze0629
fresher1chen asked this question in Q&A
Discussion options

You must be logged in to vote

看起来是编译时出了错误。报错里应该有一个本地的路径是app的临时编译目录,没有的话你可以找一下 /tmp/gs/ 下面应该有随机字符串的目录,你找到时间是最近修改的目录,然后进到 session_xxx/yyyyy 这种类型的目录,这里面是有makefile的,手动make一下然后将报错贴上来。

请问一下是这个路径下的Makefile吗?make 结果错误如图所示。

这个问题是由于 folly 在低版本gcc(5.4)下不兼容造成的,升级gcc (>=7.1.0) 可以解决这个问题 (ubuntu16 + python3.9 + gcc 7.10)

ubuntu16 下升级 gcc可以参考如下链接:

https://askubuntu.com/questions/859256/how-to-install-gcc-7-or-clang-4-0
https://phoenixnap.com/kb/add-apt-repository-command-not-found-ubuntu
https://tuxamito.com/wiki/index.php/Installing_newer_GCC_versions_in_Ubuntu

sudo apt install software-properties-common

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-7 g++-7
gcc-7 --version

su…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lidongze0629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #1063 on December 09, 2021 03:11.