Igor Marnat wrote:
- When I include unit CRT in my program, GPC asks for libos-hack library
that I don't have on my machine. After some investigation I found that I can change file rts-config.inc (i.e. write there string #UNDEF HAVE_LIBOS_HACKS) to avoid this issue. Is it any bug in GPC configuration script?
Probably. If you want to investigate yourself, .../p/rts/configure.in is the autoconf source, and .../p/rts/configure the generated shell script that checks for (and apparently wrongly found) libos-hacks (among other things).
Is it just enough to change this string for system to work correctly?
Yes.
I didn't manage to find any notes about libos-hack in Google.
You might find something searching the mailing list archives on the GPC homepage. Anyway, there's nothing magic about it. It can be just any library with local amendments that is linked automatically when it exists at build time (e.g., to supply missing or override bogus library functions). You probably don't need any.
- After I have removed this issue about libos-hack, arm-elf-gpc asked for
libpanel library from ncurses but cannot find it. How should I correct this problem?
Well, ncurses includes this library. Maybe try reinstalling ncurses?
I read configuration scripts for ncurses and found that they use only usual gcc, there is nothing like $(target)-gcc in the scripts. Is it possible to build and install ncurses for ARM? I think I cannot use library /usr/lib/libpanel.a for ARM if it is compiled using usual gcc for Intel. Is it possible to install ncurses so that only source files will be used (i.e. without libraries)? Or is it possible to build ncurses for arm using arm-elf-gcc?
Ah, you don't have ncurses installed for ARM at all.
Well, I don't know ARM, so I don't know if ncurses supports it, but probably the docs will tell. If so: cross-compiling ncurses is not too well supported (last time I checked). I think you have to set CC to arm-elf-gcc and perhaps some other variables. I once did it for other platforms, but I don't remember exactly all the steps necessary. I suggest you try it step by step and take notes, or ask on the curses mailing list (bug-ncurses@gnu.org).
(Looking briefly, I seems ARM is supported since there were at least some error reports about it. :-) But I don't have the time to read it all, you might want to check the ncurses list archives.)
Frank