icecc / icecream

Distributed compiler with a central scheduler to share build load
GNU General Public License v2.0
1.58k stars 248 forks source link

i.mx8mp yocto build with icecc(icecream) #621

Open IvanLee-1 opened 1 year ago

IvanLee-1 commented 1 year ago

Hello,

regarding the build imx-yocto project with icecc(icecream),

I configured the environment as below for building yocto with icecc.

[Compiler PC]

  1. install icecc : apt install icecc
  2. added the icecc path on user account : export PATH="/usr/lib/icecc/bin:$PATH"
  3. run iceccd : iceccd -m 2 -vv -d

[Scheduler PC]

  1. install icecc : apt install icecc
  2. start icecc-scheduler : sudo service icecc-scheduler start
  3. added the icecc path on user account : export PATH="/usr/lib/icecc/bin:$PATH" 3-1. run iceccd : iceccd -m 2 -vv -d
  4. download i.mx8mp source code as below     repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml     repo sync -jnproc     EULA=1 MACHINE=imx8mpevk DISTRO=fsl-imx-xwayland source imx-setup-release.sh -b build_fsl-imx-xwayland
  5. added the icecc related env in local.conf     INHERIT += "icecc"     ICECC_PARALLEL_MAKE = "-j 32"     PARALLEL_MAKE = "-j 32"     ICECC_PATH = "/usr/bin/icecc"
  6. run bitbake : bitbake core-image-minimal

but, there is an error as below.

ERROR: /home/ivan/work4/sources/poky/meta/recipes-graphics/xorg-proto/xorgproto_2021.5.bb: /usr/lib/icecc/bin/gcc is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working ERROR: /home/ivan/work4/sources/meta-freescale/recipes-devtools/utp-com/utp-com_git.bb: /usr/lib/icecc/bin/gcc is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working ERROR: /home/ivan/work4/sources/meta-openembedded/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb: /usr/lib/icecc/bin/gcc is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working ERROR: /home/ivan/work4/sources/meta-openembedded/meta-oe/recipes-support/poco/poco_1.11.2.bb: /usr/lib/icecc/bin/gcc is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working ERROR: /home/ivan/work4/sources/poky/meta/recipes-graphics/xorg-proto/xorgproto_2021.5.bb: /usr/lib/icecc/bin/g++ is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working ERROR: /home/ivan/work4/sources/meta-freescale/recipes-devtools/utp-com/utp-com_git.bb: /usr/lib/icecc/bin/g++ is a symlink to /usr/bin/icecc in PATH and this prevents icecc from working


I'm a beginner at building with icecc. is there anyone who help me?

regards, Ivan