Code Monkey home page Code Monkey logo

Comments (6)

sorear avatar sorear commented on August 19, 2024

Build output will be easier to read in a

```
verbatim block
```

from riscv-tools.

aswaterman avatar aswaterman commented on August 19, 2024

Doesn't seem like a RISC-V problem. Have you successfully built an x86 toolchain on this machine?

from riscv-tools.

AlexRast avatar AlexRast commented on August 19, 2024

I need to understand some terminology here. When you say 'built an x86 toolchain' in this context, do you mean building a compiler targetting any platform, to operate on x86 (i.e. a cross-compiler such as e.g. one that compiles ARM-native applications on an x86 machine), or a native compiler to build applications for the machine also doing the compilation (x86 target on Ubuntu)?

I've built several cross-compiler without problems. I also have a working toolchain for native x86 compilation in Ubuntu, although I believe this would not use the 'unknown' target.

However I should note that my level of knowledge about the gcc build is not nearly at the level that would enable me to speculate on what the problem related to in any direct way. So regardless of where the problem may lie I am going to need more concrete direction if I am to have any chance of fixing it in meaningful time.

from riscv-tools.

aswaterman avatar aswaterman commented on August 19, 2024

I should've more generically asked "have you built any GCC on this machine".

To isolate RISC-V-specific stuff, I'd try building a native gcc with this exact version of gcc. You can try something like mkdir test-native && cd test-native && ../riscv-gcc/configure --disable-multilib --prefix=/tmp && make from within riscv-gnu-toolchain. Whether that succeeds or fails will give us more information.

from riscv-tools.

AlexRast avatar AlexRast commented on August 19, 2024

Yes, the build succeeded without problems. Making a guess, I suspect this may be related to the fact that the makefile produced gives: host=x86_64-pc-linux-gnu and likewise for target. So it's not trying to build x86_64-unknown-linux-gnu targets. However this is speculation on my part.

from riscv-tools.

jim-wilson avatar jim-wilson commented on August 19, 2024

An error like this can occur if you run configure or make in the riscv-gcc/gcc subdir instead of in the riscv-gcc dir. However, this should not have happened if using the build scripts.

It isn't clear how to reproduce. The provided info only contains the stderr from the build. Most of the info is in the riscv-gnu-toolchain/build/build.log file which was not provided.

Given the length of time this has been open, and the fact that there have been so many source and script file changes since then, I don't think it serves any purpose to keep this open any longer.

from riscv-tools.

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.