title: Arch Linux. AUR package mysql cannot be built with makepkg. ERROR: A failure occurred in build()
body: <p>I tried to compile the package mysql from source. When I run <code>makepkg -s</code> inside the directory where <code>PKGBUILD</code> is located the building process fails and I have this output:</p>
  <pre><code>[ 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
  ==&gt; ERROR: A failure occurred in build().
      Aborting...
  </code></pre>
  <p>Before building the package I upgraded all the packages on the system using pacman and I have the <code>base-devel</code> group installed.
  Any idea what could cause this issue? How can I fix it? Thank you!</p>