--- Log opened Sat Nov 04 00:00:59 2017 | ||
rohitksingh | Hi everyone! I was trying to build or1k toolchain using the steps described in this page: https://openrisc.io/newlib/building.html Compilation upto GCC Stage 1 went fine, but I'm getting errors in compiling newlib https://hastebin.com/alijuhusay.vbs Can any give any pointers to fix this? | 02:24 |
---|---|---|
wbx | haven't seen this. what version of newlib is this? | 03:58 |
rohitksingh | wbx: Thanks for the reply. It is the latest upstream repo: https://sourceware.org/git/?p=newlib-cygwin.git Let me try with openrisc downstream repo and I'll report the results | 04:06 |
wbx | rohitksingh: maybe a change in latest newlib. newlib release works for me creating bare-metal toolchain with OpenADK. | 04:08 |
rohitksingh | Update: newlib repo from openrisc compiled fine! Thanks wbx! | 05:46 |
rohitksingh | okay but I got a new error when doing "make install" about "or1k-elf-ranlib: command not found" | 05:50 |
rohitksingh | https://hastebin.com/igixejesoh.sql | 05:50 |
rohitksingh | Update: Fixed it. For some reason bash wasn't able to find it when run with sudo | 05:59 |
shorne | rohitksingh: why not use the binaries from https://github.com/openrisc/or1k-gcc/releases/tag/or1k-5.4.0-20170218 | 08:17 |
shorne | rohitksingh: looks like you got it working | 08:18 |
rohitksingh | shorne: yeah got it working for now it seems. Thanks! Next time I would use the binaries and save myself :) | 08:24 |
rohitksingh | shorne: But, now running sim using "fusesoc sim mor1kx-generic --elf-load hello.elf" gives this error -> https://hastebin.com/oluwujamov.vbs | 08:29 |
rohitksingh | any idea what could be wrong? | 08:31 |
shorne | rohitksingh: I am not sure | 09:37 |
shorne | looking at ../src/mor1kx_5.0/rtl/verilog/mor1kx_cpu_cappuccino.v:1132: error: A hierarchical reference (`mor1kx_rf_cappuccino.RF_ADDR_WIDTH') is not allowed in a constant expression. | 09:38 |
shorne | looks like a recent change wallento did? | 09:39 |
shorne | - input [4:0] gpr_num; | 09:39 |
shorne | + input [mor1kx_rf_cappuccino.RF_ADDR_WIDTH-1:0] gpr_num; | 09:39 |
shorne | well... this year | 09:39 |
shorne | maybe not compatible with iverlog? | 09:40 |
shorne | or whatever that simulator is | 09:40 |
shorne | maybe you can try qemu? or fpga | 09:40 |
shorne | wbx: do you have your openadk config for openrisc/uclibc-ng saved somewhere? | 09:42 |
shorne | wbx: I have been playing with the options, but not getting something stable | 09:43 |
shorne | meaning, my kernel doesnt even boot | 09:43 |
shorne | it I use my own kernel + the openadk root I am missing /dev files (tried udev and static /dev files) , I use my own .devnodes and I can get it booting | 09:44 |
shorne | wbx: I got it working just uwing defconfig it seems | 10:33 |
rohitksingh | shorne: Thanks! I'll try the earlier versions of mor1kx. The simulator is indeed iverilog tag V10.2 released in August | 11:01 |
--- Log closed Sun Nov 05 00:00:01 2017 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!