sys-devel/dev86 fails to build with clang-3.4/3.5 because of a non-void function not returning values (clang errors out on this). Reproducible: Always Steps to Reproduce: 1. CC="clang" CXX="clang++" emerge -1 sys-devel/dev86 2. 3. Actual Results: The build fails. Expected Results: The build should succeed. I have attached a patch that fixes the issue by converting the function to void (rather than int). I inspected the code and that function is only used in the same file that declares it (unproto/tok_io.c), which makes no use of the returned value. So, rather than fix 3 returns, fix the function declaration. The compilation now succeeds, unfortunately there is no test suite available.
Created attachment 384988 [details, diff] Fix build with clang (non-void function does not return a value) The patch applies cleanly to all available versions in portage.
Please post the error message.
Sorry, I forgot to add it. Will remember it for the next bugs ;-)
Thanks for the patch Fabio! commit 0a4ee8dccd9422cdc4a507c5bdd360be4802f8fd Author: David Seifert <soap@gentoo.org> Date: Sat Feb 6 11:27:11 2016 +0100 sys-devel/dev86: Include patch for building with clang Gentoo-Bug: 523096 * EAPI=6 * Amend patches for -p1 * Thanks Fabio Scaccabarozzi for the patch