Does distcc cross compile support clang?

Ask questions about Arch Linux ARM. Please search before making a new topic.

Does distcc cross compile support clang?

Postby vaar » Fri Dec 24, 2021 6:10 pm

I followed the wiki guide about distcc compiling. I installed distccd-alarm in the x86_64 machine and configured makepkg.conf in the raspberry pi and it works great for AUR gcc packages. However clang packages fail to distribute.

This is the output with a dummy foo.c file:

client: DISTCC_HOSTS=192.168.1.2:3635 distcc clang -c foo.c
server:
$this->bbcode_second_pass_code('', 'distccd[38760] (dcc_check_client) connection from 192.168.1.3:45802
distccd[38760] compile from foo.c to foo.o
distccd[38760] (dcc_r_file_timed) 173 bytes received in 0.000058s, rate 2913kB/s
distccd[38784] (dcc_execvp) ERROR: failed to exec clang: No such file or directory
distccd[38784] (dcc_exit) exit: code 110; self: 0.000231 user 0.000000 sys; children: 0.000000 user 0.000000 sys
distccd[38760] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[38760] clang foo.c on localhost failed with exit code 110
distccd[38760] job complete
distccd[38760] (dcc_job_summary) client: 192.168.1.3:45802 COMPILE_ERROR exit:110 sig:0 core:0 ret:0 time:73ms clang foo.c')

Am I right in assuming clang is not supported? Is there any way to speed up compilation of clang packages?

(edit) BTW, this is the log with gcc:

client: DISTCC_HOSTS=192.168.1.2:3635 distcc gcc -c foo.c
server:
$this->bbcode_second_pass_code('', 'distccd[38759] (dcc_check_client) connection from 192.168.1.3:45800
distccd[38759] compile from foo.c to foo.o
distccd[38759] (dcc_r_file_timed) 193 bytes received in 0.000053s, rate 3556kB/s
distccd[38759] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[38759] armv7l-unknown-linux-gnueabihf-gcc foo.c on localhost completed ok
distccd[38759] job complete
distccd[38759] (dcc_job_summary) client: 192.168.1.3:45800 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:50ms armv7l-unknown-linux-gnueabihf-gcc foo.c')
I see with clang it tries to run "clang", but with gcc it runs "armv7l-unknown-linux-gnueabihf-gcc"...
vaar
 
Posts: 7
Joined: Sat Nov 09, 2019 9:05 am

Re: Does distcc cross compile support clang?

Postby graysky » Wed Dec 29, 2021 2:42 am

Clang can be tricky... see our chromium package's _flags array as an example.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests