2019年11月23日 星期六

the journal building toolchain

5.notes on building progress:
bryan@waltz:/media/bryan/Hitachi/poky/yocto_build/valleyisland$ bitbake meta-toolchain

5.1.building automake-1.15:
| help2man: can't get `--help' info from automake-1.15
| Try `--no-discard-stderr' if option outputs to stderr
solution:
1.downgrade perl or upgrade automake
(@see https://tinyurl.com/ygndxvr7 )
2.modify make file ( solved by patching )
(@see https://tinyurl.com/yzbqjhqx )
( automake is less likey changed, and less impact, comparing
to perl )

5.2.configuring libtool: ( solved by patching )
Unescaped left brace in regex is illegal here in regex; marked by <-- 3936.="" at="" automake="" bin="" br="" bryan="" here="" in="" itachi="" line="" m="" media="" poky="" sysroots="" t=":+{}]+)}/" tmp="" usr="" valleyisland="" x86_64-linux="" yocto_build="">WARNING: exit code 255 from a shell command.
ERROR: Function failed: do_configure (log file is located at /media/bryan/Hitachi/poky/yocto_build/valleyisland/tmp/work/x86_64-linux/libtool-native/2.4.6-r0/temp/log.do_configure.25667)
search:
@see https://tinyurl.com/yx686ae9
solution:
@see https://tinyurl.com/vmy7dsg

5.3.compiling pkgconfig: ( solved by patching )
| ERROR: Function failed: do_compile (log file is located at /media/bryan/Hitachi/poky/yocto_build/valleyisland/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/temp/log.do_compile.4840)
/media/bryan/Hitachi/poky/yocto_build/valleyisland/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
This will be resolved by the upgrade to Yocto 2.2
We're at Yocto 2.4 now and i haven't seen any such issues. Closing
As a nasty hack I did this:
Patches are provided in the linked bug as a work-around.
( @see https://tinyurl.com/yx3mm24w )
gdate: Suppress string format literal warning
( @see https://tinyurl.com/rrd8bck )

5.4.configuring openssl ( solved by patching host file )
Can't locate find.pl in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at perlpath.pl line 7.
(  @see https://tinyurl.com/qn7zk2m )