47. 47
distcc 常見問題
• 當遠端機器上面的 gcc 與本地端版本不
符的時候 ...
– 不同機器編譯出來的 Output 則可能會
不一樣
•編譯結果變得無法預期並且每次可能不同
Using different versions of gcc can cause confusing build problems
because the header files and binary interfaces have changed over time, and
some distributors have included incompatible patches without changing the
version number. distcc does not protect against using incompatible versions.
Compiler errors about link problems or declarations in system header files
are usually due to mismatched or incorrectly installed compilers.
摘錄自 distcc man page
49. 49
Cross Compilation for distcc
• ㄎㄎㄎ
The recommended convention for the gcc name is TARGET-gcc-VERSION such
as i686-linux-gcc-3.2. GCC 3.3 will install itself under this name, in
addition to TARGET-gcc and, if it's native, gcc-VERSION and gcc.
The compiler must be installed under the same name on the client and on
every volunteer machine.
摘錄自 distcc man page
50. 50
Cross Compilation for distcc
• ㄎㄎㄎ
• 簡單說就是要使用者自己在每台機器上裝
好 Cross Compiler 啦~
The recommended convention for the gcc name is TARGET-gcc-VERSION such
as i686-linux-gcc-3.2. GCC 3.3 will install itself under this name, in
addition to TARGET-gcc and, if it's native, gcc-VERSION and gcc.
The compiler must be installed under the same name on the client and on
every volunteer machine.
摘錄自 distcc man page
51. 51
Merge back to distcc?
• distcc maintainer 跑到 icecc 那邊問
要不要 Merge 回來阿~?
https://github.com/icecc/icecream/issues/138