Hi all:

I am automating the build process for some OpenRISC components, and the same script that builds GDB 7.2 successfully under Linux fails under Cygwin. That's the GDB from the OpenCores' gnu-src repository. The error log is:

make -s
Making info in doc
Making info in po
Making all in doc
Making all in po
Making all in .
Making all in po
/cygdrive/c/Ruben/fpga/orbuild/Builds/build-2012-03-01/OR1KSIM-bin/lib/libsim.a(sim-cmd.o): In function `initialize_readline': /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:796: undefined reference to `_rl_readline_name' /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:799: undefined reference to `_rl_attempted_completion_function' /cygdrive/c/Ruben/fpga/orbuild/Builds/build-2012-03-01/OR1KSIM-bin/lib/libsim.a(sim-cmd.o): In function `handle_sim_command': /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:671: undefined reference to `_readline' /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:704: undefined reference to `_add_history' /cygdrive/c/Ruben/fpga/orbuild/Builds/build-2012-03-01/OR1KSIM-bin/lib/libsim.a(sim-cmd.o): In function `repeat_last_command': /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:860: undefined reference to `_where_history' /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:863: undefined reference to `_history_get' /cygdrive/c/Ruben/fpga/orbuild/Builds/build-2012-03-01/OR1KSIM-bin/lib/libsim.a(sim-cmd.o): In function `sim_completion': /cygdrive/c/Ruben/fpga/orbuild/Repositories/OR1KSIM/sim-cmd.c:820: undefined reference to `_rl_completion_matches'
collect2: ld gab 1 als Ende-Status zurück
Makefile:269: recipe for target `run.exe' failed
make[4]: *** [run.exe] Error 1
Makefile:133: recipe for target `all' failed
make[3]: *** [all] Error 1
Makefile:10025: recipe for target `all-sim' failed
make[2]: *** [all-sim] Error 2
Makefile:858: recipe for target `all' failed
make[1]: *** [all] Error 2

I wonder if, under Cygwin, the readline library does not get pulled automatically by some other component and needs to be manually listed in the linker command line, somewhere in the makefile.

By the way, most other stuff builds fine under Cygwin.

Thanks,
  R. Diez
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to