AArch64をターゲットとしたgcc4.9.2ビルド

configureの階層にbuildディレクトリを作らないとエラーになった。

$ mkdir build
$ cd build
$ ../configure --target=aarch64-linux-gnu --disable-nls --disable-shared --disable-multilib --disable-libgomp --disable-threads --enable-languages=c,c++ --disable-libstdcxx-pch --disable-bootstrap

makeを実行するとエラーになるのでソースを修正する。

contrib/texi2pod.pl L.319 のbrace"{", "}"をエスケープする。

315     /^\@item\s+(.*\S)\s*$/ and $endw eq "multitable" and do {
316        @columns = ();
317        for $column (split (/\s*\@tab\s*/, $1)) {
318            # @strong{...} is used a @headitem work-alike
319            $column =~ s/^\@strong\{(.*)\}$/$1/;
320            push @columns, $column;
321        }
322        $_ = "\n=item ".join (" : ", @columns)."\n";
323     };

gcc/cp/cfns.gperf L.25〜27を追加

 23 #ifdef __GNUC__
 24 __inline
 25 #ifdef __GNUC_STDC_INLINE__
 26 __attribute__ ((__gnu_inline__))
 27 #endif
 28 #endif
 29 const char * libc_name_p (const char *, unsigned int);

gcc/cp/cfns.h L.56〜58を追加

 54 #ifdef __GNUC__
 55 __inline
 56 #ifdef __GNUC_STDC_INLINE__
 57 __attribute__ ((__gnu_inline__))
 58 #endif
 59 #endif
 60 const char * libc_name_p (const char *, unsigned int);

ビルド、インストールする

$ make
$ sudo make install