--- Log opened Wed Apr 29 00:00:27 2015 | ||
latif | olofk: I am so sory but my reinsttaled toolchain returns an error again, but a different error!! When I try to compile a very easy c++ code (just helloworld) it gives this error | 07:47 |
---|---|---|
latif | undefined reference to std::ios::Inıt:Inıt | 07:50 |
olofk | latif: Don't have a clue where to start looking this time unfortunately :/ | 07:52 |
olofk | Can you give me the code you're trying to run | 07:52 |
latif | olofk: this my code... #include <iostream> int main() { std::cout << "test\n"; return 0; } | 08:09 |
latif | olofk: Please try this code on your system... I hope It works on your system.. | 08:10 |
olofk | Yep. That works fine here | 08:28 |
olofk | (with the additions to the toolchain I showed you yesterday | 08:28 |
olofk | ) | 08:28 |
latif | Aaa..So?? I did something wrong?!! Can you please tell me the additions again.. | 08:38 |
latif | first..I wrote _open_r (for _open)...then I added const for definition..(const char).. in newlib/libgloss/or1k/ syscalls.c... Anythng else?? | 08:40 |
olofk | latif: That should do it | 09:24 |
olofk | hmmm.. did you say that you were using or1k-src btw? | 09:24 |
olofk | Or are you using the instructions here http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29 ? | 09:24 |
latif | olofk: I am using the instrunctions.. http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Newlib_toolchain_.28or1k-elf.29 | 09:32 |
latif | but as you know or1k-src also exist in the instructions on the website..so what do you mean by or1k-src btw??. | 09:34 |
latif | by the way I did not change anything on config.host.. is it rightt?? | 09:35 |
olofk | Yes, that correct. It turned out no changes to configure.host was needed | 09:40 |
olofk | latif: Ah right. We still point to or1k-src for the uClibc toolchain and for GDB | 09:41 |
olofk | or1k-src contains binutils, newlib and gdb bundled together, and until last year we used that to build most parts of the toolchain. But it's not updated anymore, so I just wanted to rule out that you were using old code | 09:42 |
latif | olofk: my _open_r function is defined like: int _open_r(struct _reent *reent,const char *file, int flags, int mode) { reent->_errno = ENOSYS; return -1; } is it the same with yours?? | 10:18 |
latif | and it is the all we should change right?? By the way can you please try my code (easy c++ code) in simulator.. I wonder if it works correctly?? | 10:20 |
hesham | bandvig: Did you get Linux running on your Atlys board? | 13:09 |
bandvig | hesham: I’ve got one. However, I use uClibc, configured with my original configuration file (to overcome some issues I had with compiling uClibc). And I use old version of linux sources downloaded from OpenRISC.net (with already precompiled busybox and configured file system). | 13:23 |
hesham | bandvig: I don't know if this is can be done on OpenRISC, please tell me. I want to be able to get Linux running (even on or1ksim) and be able to compile some POSIX programs over there, and run it, and do some timing analysis. | 13:27 |
hesham | That would need gcc, running on Linux/OpenRISC, and a c library. | 13:29 |
hesham | Is glibc upstreamed (yet) and working with linux? I saw this e-mail https://sourceware.org/ml/libc-alpha/2014-07/msg00425.html | 13:29 |
bandvig | hesham: In fact, I’m not linux guru. I’m afraid I couldn’t help you. I just followed the http://www.rte.se/blog/blogg-modesty-corex/openrisc-1200-soft-processor blog. | 13:53 |
bandvig | I have never compiled any application separately from linux kernel. I just compiled kernel+busybox, saw that it works, executed several trivial commands like “ls” and stopped playing with linux. | 13:53 |
bandvig | I just know, that it is possible to compile a linux application on PC with appropriate tool chain (uClibc or musl based) than upload it into linux file system (by tftp? by uart?) and execute it on target board. | 13:53 |
bandvig | However, I’ve never done that. You should asked somebody (stekern, for example) who have got much more linux experience. | 13:54 |
hesham | bandvig: Me neither, that's why I am asking. Thanks anyway. Hope someone would see question this and reply. | 13:58 |
latif | olofk: no problem.. now I can compile std::cout on my system... you are realy awesome thank you so muchh :) | 16:56 |
olofk | latif: Great to hear that it's working. I'll make sure the patch is applied to newlib | 21:11 |
--- Log closed Thu Apr 30 00:00:29 2015 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!