The version of torsocks in Gentoo is very outdated. In the version included, there is a bug affecting the setuid/setgid error message. Expected result: $ torsocks ping google.com ERROR: ping is setuid. torsocks will not work on a setuid executable. Observed result: $ torsocks ping google.com ERROR: ping setgoogle.comid. torsocks will not work on a setgoogle.comid executable. This is because of line 109 in /usr/bin/torsocks: echo "ERROR: $1 is set${2}id. torsocks will not work on a set${2}id executable." >&2 ${2} is set to the second argument of torsocks. This is fixed in the newest version of torsocks, v2.1.0.
please test torsocks-2.1.0 which i just added to the tree.