Page 1 of 1

puzzled by gcc and cc1

Posted: Sun May 23, 2021 2:15 pm
by jack
I am puzzled, how did Fred alter the gcc search path for cc1?
the search path is "hard-wired" when the toolchain is built, gcc is in the bin folder and cc1 is in libexec/gcc/some-mingw/gcc-version
I tried a file compare but it found no difference between the gcc in the pbcompiler directory and the one in the mingw distribution
how can the versions be identical and yet behave differently?

Re: puzzled by gcc and cc1

Posted: Sun May 23, 2021 6:35 pm
by firace
Found this:

Code: Select all

Directories searched by the compiler driver for executables (cc1, as, ...): 



GCC directories 
 
$(libexecdir)/gcc/$(target)/$(version) 
 

$(libexecdir)/gcc/$(target) 
 

$(libdir)/gcc/$(target)/$(version) 
 

$(libdir)/gcc/$(target) 
 

Toolchain directories 
 
$(tooldir)/bin/$(target)/$(version) 
 

$(tooldir)/bin 
 

https://wiki.debian.org/Multiarch/Libra ... tory_paths

Re: puzzled by gcc and cc1

Posted: Sun May 23, 2021 11:38 pm
by jack
thank you firace, good reference however the mystery remains