I tried to compile the package mysql from source. When I run makepkg -s
inside the directory where PKGBUILD
is located the building process fails and I have this 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...
Before building the package I upgraded all the packages on the system using pacman and I have the base-devel
group installed. Any idea what could cause this issue? How can I fix it? Thank you!
This worked for me. I created directory /tmp in my /home mkdir ~/tmp
and then I set the TMPDIR environment to this directory: export TMPDIR=~/tmp
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.