Code Monkey home page Code Monkey logo

dcfurs-badge-dc28's People

Contributors

alofoxx avatar loialotter avatar oskirby avatar tjhorner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dcfurs-badge-dc28's Issues

'nano.specs': No such file or directory

Getting the following error when I try to compile with ./make.py:

BIOS [bios.bin] building...
   Compiling [bios_printf.c]
riscv64-unknown-elf-gcc: fatal error: cannot read spec file 'nano.specs': No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "./make.py", line 522, in <module>
    main()
  File "./make.py", line 494, in main
    buildrom('bios')
  File "./make.py", line 285, in buildrom
    compile(objfile, srcfile)
  File "./make.py", line 163, in compile
    subprocess.check_call([gcc] + CFLAGS + ['-c', '-o', target, source], stderr=subprocess.STDOUT)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['riscv64-unknown-elf-gcc', '-Os', '-march=rv32i', '-mabi=ilp32', '-I', '/opt/dcfurs-badge-dc28', '-ffunction-sections', '-fdata-sections', '--specs=nano.specs', '-D', '_POSIX_TIMERS', '-D', '_POSIX_MONOTONIC_CLOCK=200112L', '-c', '-o', '/opt/dcfurs-badge-dc28/bios/bios_printf.o', '/opt/dcfurs-badge-dc28/bios/bios_printf.c']' returned non-zero exit status 1.

Using Ubuntu 20.04 LTS with the gcc-riscv64-unknown-elf and dfu-util from the standard ubuntu repo

No such file or directory: 'riscv64-unknown-elf-gcc'

I've tried everything and can't get the code to compile:

dotornot@Elwood:~/Downloads/dcfurs-badge-dc28$ sudo ./make.py build
[sudo] password for dotornot: 
BIOS [bios.bin] building...
   Compiling [trap.c]
Traceback (most recent call last):
  File "./make.py", line 522, in <module>
    main()
  File "./make.py", line 494, in main
    buildrom('bios')
  File "./make.py", line 285, in buildrom
    compile(objfile, srcfile)
  File "./make.py", line 163, in compile
    subprocess.check_call([gcc] + CFLAGS + ['-c', '-o', target, source], stderr=subprocess.STDOUT)
  File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'riscv64-unknown-elf-gcc'

Brand new install of Ubuntu.
riscv-gnu-toolchain fully installed with multilib. I'm genuinely stuck.

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.