Coder Social home page Coder Social logo

Build using emcc failed about rv32emu HOT 6 CLOSED

ChinYikMing avatar ChinYikMing commented on August 25, 2024
Build using emcc failed

from rv32emu.

Comments (6)

jserv avatar jserv commented on August 25, 2024 1

I aimed to simplify the process by treating emcc as a cross-compiler, thereby tweaking the build rules. If you have any proposed changes, please don't hesitate to submit them.

from rv32emu.

ChinYikMing avatar ChinYikMing commented on August 25, 2024

May I know the concern of the way to check which compiler was used in mk/toolchain.mk of commit ? @jserv

from rv32emu.

jserv avatar jserv commented on August 25, 2024

The commit f484a4b was used as the workaround for Apple LLVM toolchain, and the above resulted from incorrect detection of toolchain built upon clang or gcc.

from rv32emu.

ChinYikMing avatar ChinYikMing commented on August 25, 2024

The commit f484a4b was used as the workaround for Apple LLVM toolchain, and the above resulted from incorrect detection of toolchain built upon clang or gcc.

The version of Apple LLVM toolchain of my machine is Homebrew clang version 17.0.6
(run clang --version | head -n 1) and I am able to detect clang and build rv32emu with it. May I know the Apple LLVM toolchain of your machine?

from rv32emu.

jserv avatar jserv commented on August 25, 2024

The version of Apple LLVM toolchain of my machine is Homebrew clang version 17.0.6 (run clang --version | head -n 1) and I am able to detect clang and build rv32emu with it. May I know the Apple LLVM toolchain of your machine?

The workaround was applied to Xcode 15.
See commit 618d4f1

from rv32emu.

ChinYikMing avatar ChinYikMing commented on August 25, 2024

I think we are referring to different things. Let me rephrase the question:

May I know the concern of changing from this

ifneq ($(shell $(CC) --version | head -n 1 | grep emcc),)
     CC_IS_EMCC := 1
else ifneq ($(shell $(CC) --version | head -n 1 | grep clang),)
     CC_IS_CLANG := 1
else
     ifneq ($(shell $(CC) --version | grep "Free Software Foundation"),)
         CC_IS_GCC := 1
     endif
endif

to this in this commit f484a4b?

ifneq ($(shell $(CC) --version | head -n 1 | grep emcc),)
     CC_IS_EMCC := 1
endif
ifneq ($(shell $(CC) --version | head -n 1 | grep clang),)
     CC_IS_CLANG := 1
endif
ifneq ($(shell $(CC) --version | grep "Free Software Foundation"),)
     CC_IS_GCC := 1
endif

Note that the former will successfully build with emcc.

from rv32emu.

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.