Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IvanLee-1 opened this issue Jul 21, 2023 · 1 comment
Open

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

IvanLee-1 opened this issue Jul 21, 2023 · 1 comment

Comments

@IvanLee-1
Copy link

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

@mischief
Copy link

your problem is that you added the icecc compiler wrapper to your path with `added the icecc path on user account : export PATH="/usr/lib/icecc/bin:$PATH". under yocto the bitbake class manages this for you and you shouldn't do it before invoking bitbake. this issue is a user error and should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants