The latest version of sys-devel/flex in prefix-tree is sys-devel/flex-2.5.39, but there are ebuilds in gx86 that depend on >=sys-devel/flex-2.5.39-r1, causing installation of those packages to break unless the offending package versions are manually masked.