Git Product home page Git Product logo

Comments (6)

0x804d8000 avatar 0x804d8000 commented on May 28, 2024

IIRC if CROSS_COMPILE is specified, make invokes whatever compiler pointed by this argument, rather than the plain GCC. So I suspect in your build process yadcc is not invoked at all.

Besides, due to the way yadcc works and how fast C code compiles, using yadcc to speed up Linux kernel building process may not see a huge speed up. Last time I try this it gives me about 2x speed up, but that’s it - It was far from what I’d expect from a linear boost.

from yadcc.

mathslimin avatar mathslimin commented on May 28, 2024

icecream support Cross-Compiling, https://github.com/icecc/icecream
Do we have plans to support arm64 cross-compilation? Or provide related documents.

from yadcc.

mathslimin avatar mathslimin commented on May 28, 2024

ADBCC_LOG_LEVEL=0 ADBCC_COMPILE_ON_CLOUD_SIZE_THRESHOLD=0 /opt/buildtools/adbcc_client/bin/adbcc-cxx aarch64-none-linux-gnu-gcc helloworld.c -c
task_dispatcher.cc:327] Unrecognized compilation environment [] is requested by .

from yadcc.

0x804d8000 avatar 0x804d8000 commented on May 28, 2024

I couldn’t see much difference between cross compilation and a native one regarding distributed compilation.

However, from the log you provided, the compile cluster seemed fail to recognize the compiler. This may have something to do with how compiler is found on compile server.

Because cross-compiler’s executable is usually prefixed with a target triplet, it’s unlikely to be recognized by what’s currently implemented.

Try adding your compiler executable name there and see if that makes any difference.

We may need to reimplement compiler-scanning by enumerating executables and check their suffix, instead of hardcoding executable names.

from yadcc.

mathslimin avatar mathslimin commented on May 28, 2024

fix it by compiler_registry.cc
static constexpr auto kCompilerExecutables = {"gcc",
"g++",
"aarch64-none-linux-gnu-gcc",
"aarch64-none-linux-gnu-g++",
"arm-none-linux-gnueabihf-gcc",
"arm-none-linux-gnueabihf-g++",
// I'm not sure if we support Clang, TBH.
"clang",
"clang++"};

from yadcc.

0x804d8000 avatar 0x804d8000 commented on May 28, 2024

reopening as this needs improvement in the future.

from yadcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.