[英]Arch Linux. AUR package mysql cannot be built with makepkg. ERROR: A failure occurred in build()
我尝试从源代码编译 package mysql。 当我在PKGBUILD
所在的目录中运行makepkg -s
时,构建过程失败,我有这个 output:
[ 89%] Building CXX object sql/CMakeFiles/mysqld.dir/main.cc.o
[ 90%] Linking CXX executable ../runtime_output_directory/mysqld
/home/natalya/Downloads/mysql/src/build/sql/sql_yacc.cc:2047: warning: type ‘yysymbol_kind_t’ violates the C++ One Definition Rule [-Wodr]
2047 | enum yysymbol_kind_t
|
/home/natalya/Downloads/mysql/src/build/sql/sql_hints.yy.cc:252: note: an enum with different value name is defined in another translation unit
252 | enum yysymbol_kind_t
|
/home/natalya/Downloads/mysql/src/mysql-8.0.20/sql/parser_yystype.h:239:7: warning: type ‘union YYSTYPE’ violates the C++ One Definition Rule [-Wodr]
239 | union YYSTYPE {
| ^
/home/natalya/Downloads/mysql/src/mysql-8.0.20/storage/innobase/include/fts0pars.h:50: note: a different type is defined in another translation unit
50 | typedef union YYSTYPE
|
/home/natalya/Downloads/mysql/src/mysql-8.0.20/sql/parser_yystype.h:240:17: note: the first difference of corresponding definitions is field ‘lexer’
240 | Lexer_yystype lexer; // terminal values from the lexical scanner
| ^
fts0pars.y:62: note: a field with different name is defined in another translation unit
lto-wrapper: fatal error: write: No space left on device
compilation terminated.
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [sql/CMakeFiles/mysqld.dir/build.make:168: runtime_output_directory/mysqld] Error 1
make[1]: *** [CMakeFiles/Makefile2:8100: sql/CMakeFiles/mysqld.dir/all] Error 2
make: *** [Makefile:172: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
在构建 package 之前,我使用 pacman 升级了系统上的所有软件包,并安装了base-devel
组。 知道什么可能导致这个问题吗? 我该如何解决? 谢谢!
这对我有用。 我在 /home mkdir ~/tmp
tmp 中创建了目录 /tmp,然后将 TMPDIR 环境设置为该目录: export TMPDIR=~/tmp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.