Re: [PATCH] Use bash for test.sh.

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Organization wh0rd.org
Message-ID <[email protected]>
On Monday 12 November 2012 06:03:37 Andrew Stubbs wrote:
> Running "sh -x test.sh" shows that the gcc command producing the error:
> 
> + CCACHE_DISABLE=1 gcc -c test1.c -o reference_test1.o -O -O
> gcc: error trying to exec 'cc1': execvp: No such file or directory
> 
> I don't understand what's wrong with that command. gcc isn't supposed to
> rely on the PATH to find cc1, but presumably it's something environmental.

it relies on argv[0] to locate its internal tools.  if you change that command 
to `env CCACHE_DISABLE=1 ...`, does it work better ?
-mike

_______________________________________________
ccache mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/ccache
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAABAgAGBQJQoTr9AAoJEEFjO5/oN/WBpigQAOPp+3uYIdS0NuRI9/RT6NBb
oV5TIgP4s7QM6DOjMTtpuRqkwKvQmm5xkKY/vhf8YpxB2AupQU1dlctdq2WHTq4U
jBAhvUT2eWuLxsji192ALIHNgh92Oi7RX2jV1JbW+h6EWDHlMTLX00IwlgvhRsQ7
dMrp4++vajzBzj8C3mNpRJBqUfyL31olMJPTKV9gufHMH1z5ylSKhPPyIcqWzaZv
98p1wSMEmESGWceiXk+3zAX6hyjqbrK4WjGD0ghMNmchfeVmKg4aUo4RKE3FMTji
9bH8VZBf0b7ySH1amwsoK4PtWu59B76Xb+zG9BmifQSktLFd6VxpjrCfbArjykPw
Dlias6ePVtEchhZZ+vfwCuIbaX/TGVpWNn6mxPwGc4xlTr28T+cepizJGVt4TRwq
KTtO9IdfuI2qQhm/Sm4688a0wpVMCajZYTwtiliRa/JGZosxk/SJwL3lKpF6StFS
h75TNymUTAarEAisRHzNqjf2O7was0AH5IMcYtGiPUMGIETHrUMHDXCrq92bfRxn
GDmxLQj6G+jBLaUWJJGGoc/GA2DglEkcW5ICY9ZliDrSwhcvyRiVmq/1f2p+jw3n
fBg/S5ZJzsrhMuiEF7Vr1f5BHo5Ukm6QuMXxXGg3c3JgHTLt2ICFo8EdgRErHiRf
YSf1XXtB5pyHeOZM8IWV
=1QlX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.