Recipe for target '../lib/libncurses.so' failed

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

sector
Posts: 12
Joined: Wed Mar 23, 2016 1:29 pm

Recipe for target '../lib/libncurses.so' failed

Thu Mar 31, 2016 10:48 am

Dear all,

I am trying to build the kernel for my sama5d3_xplained which includes video utilities like ffmpeg or gstreamer but in the building process I get this error:

Code: Select all

In file included from ../ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_25917.c:835:15: error: expected ‘)’ before ‘int’
../include/curses.h:1594:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:795: recipe for target '../obj_s/lib_gen.o' failed
make[2]: *** [../obj_s/lib_gen.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/ncurses'
Makefile:307: recipe for target '../lib/libncurses.so' failed
make[1]: *** [../lib/libncurses.so] Error 2
make[1]: Leaving directory '/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/progs'
package/pkg-generic.mk:121: recipe for target '/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/.stamp_built' failed
make: *** [/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/.stamp_built] Error 2
Somebody knows how to solve it?

Thank you.
sector
Posts: 12
Joined: Wed Mar 23, 2016 1:29 pm

Re: Recipe for target '../lib/libncurses.so' failed

Tue Apr 05, 2016 9:34 am

Hi everybody,

I could fix the previous error, adding the file libncurses.so to the right path manually.

But, now I get a similar error:

Code: Select all

../obj_s/tic.o: In function `check_ansi_cursor':
tic.c:(.text+0xbc): undefined reference to `_nc_tic_expand'
tic.c:(.text+0x204): undefined reference to `_nc_tic_expand'
tic.c:(.text+0x27c): undefined reference to `_nc_tic_expand'
tic.c:(.text+0x29e): undefined reference to `_nc_tic_expand'
../obj_s/tic.o: In function `check_sgr.isra.7':
tic.c:(.text+0x587): undefined reference to `_nc_capcmp'
../obj_s/tic.o: In function `check_termtype':
tic.c:(.text+0x7ea): undefined reference to `_nc_syntax'
tic.c:(.text+0x904): undefined reference to `_nc_capcmp'
tic.c:(.text+0x16ab): undefined reference to `_nc_capcmp'
tic.c:(.text+0x1a5b): undefined reference to `_nc_syntax'
tic.c:(.text+0x1e41): undefined reference to `_nc_capcmp'
tic.c:(.text+0x1e64): undefined reference to `_nc_capcmp'
../obj_s/tic.o: In function `main':
tic.c:(.text.startup+0x1a1): undefined reference to `_nc_disable_period'
tic.c:(.text.startup+0x312): undefined reference to `_nc_disable_period'
tic.c:(.text.startup+0x361): undefined reference to `_nc_check_termtype2'
tic.c:(.text.startup+0x415): undefined reference to `_nc_read_entry_source'
tic.c:(.text.startup+0x43e): undefined reference to `_nc_resolve_uses2'
tic.c:(.text.startup+0x90e): undefined reference to `_nc_read_entry_source'
tic.c:(.text.startup+0x91b): undefined reference to `_nc_resolve_uses2'
tic.c:(.text.startup+0xa8d): undefined reference to `_nc_read_entry_source'
tic.c:(.text.startup+0xbec): undefined reference to `_nc_set_writedir'
tic.c:(.text.startup+0xd45): undefined reference to `_nc_write_entry'
tic.c:(.text.startup+0xdfd): undefined reference to `_nc_tic_written'
../obj_s/dump_entry.o: In function `fmt_entry':
dump_entry.c:(.text+0x12ab): undefined reference to `_nc_tic_expand'
dump_entry.c:(.text+0x1507): undefined reference to `_nc_tic_expand'
dump_entry.c:(.text+0x151d): undefined reference to `_nc_infotocap'
dump_entry.c:(.text+0x1aa1): undefined reference to `_nc_tic_expand'
collect2: error: ld returned 1 exit status
Makefile:233: recipe for target 'tic' failed
make[1]: *** [tic] Error 1
make[1]: Leaving directory '/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/progs'
package/pkg-generic.mk:121: recipe for target '/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/.stamp_built' failed
make: *** [/home/miguel/buildroot-at91/output/build/host-ncurses-5.9/.stamp_built] Error 2
I don't know how to fix it since I think that 'tic' is a file created during the building process and I cannot add it to the corresponding folder like I did with the previous error.
Any help is appreciated.

Thank you very much.
nferre
Site Admin
Posts: 167
Joined: Wed Feb 14, 2007 11:17 am

Re: Recipe for target '../lib/libncurses.so' failed

Tue Apr 19, 2016 2:36 pm

Hi,

Please move to mainline buildroot instead of the one you are using:
https://buildroot.org/
https://buildroot.org/download.html

It is more up-to-date and stable. The one you use will be removed from linux4SAM and replaced by the one hosted on the official project repository.

Bye,
dhseo
Posts: 1
Joined: Wed Jul 27, 2016 12:40 pm

Re: Recipe for target '../lib/libncurses.so' failed

Wed Jul 27, 2016 12:44 pm

please use os : "ubuntu-14.04.4-desktop-i386"
It is issue about gcc version.

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests