The line: +-include_lib("wings/e3d/e3d_image.hrl"). shall be something like: +-include_lib("../e3d/e3d_image.hrl").
1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info' output in a comment.