On Thu, Dec 18, 2014 at 2:14 PM, Rich Felker <dalias@libc.org> wrote:
On Thu, Dec 18, 2014 at 01:47:49PM -0500, stephen Turner wrote:
> im using PCC as my compiler. it was initially built with gcc but since has
> recompiled itself several times. 2 at least in the chroot musl only
> environment alone. would this advice still apply? If i understood the pcc
> group correctly it should not be responsible for this but i cant help but
> think it is. regardless i will look into any advice/leads provided.

PCC probably just has /lib/ld-linux.so.2 hard-coded for the "linux"

this was my assumption as well. I only found ref of the ld-linux.so.2 in a header however and correcting the header code (adding a relevant entry for musl) didn't seem to change the outcome. 

target. You just need to change this when building it for a musl-based
system or pass -Wl,-dynamic-linker,/lib/ld-musl-i386.so.1 (or whatever
your arch is) on the command line.

Rich

Thanks again rich, im going to give this a run and if it resolves the issue, see what the PCC community says is responsible linker-vs-pcc.

thanks
stephen