nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lib file format not recognized, with or without libc-musl


From: Badli
Subject: lib file format not recognized, with or without libc-musl
Date: Wed, 5 May 2021 23:21:26 +0800

Hi,

I got the following error message when compiling nano with or without lib-musl.

gcc  -march=silvermont -mtune=silvermont -O2 -pipe -Wall   -o nano browser.o 
chars.o color.o cut.o files.o global.o help.o history.o move.o nano.o prompt.o 
rcfile.o search.o text.o utils.o winio.o ../lib/libgnu.a   
-L/usr/local/musl/lib /usr/local/musl/lib -lncursesw -ltinfo
/usr/bin/ld: cannot find /usr/local/musl/lib: file format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1724: nano] Error 1
make[2]: Leaving directory '/home/b/t/nano-5.7/src'
make[1]: *** [Makefile:1716: all-recursive] Error 1
make[1]: Leaving directory '/home/b/t/nano-5.7'
make: *** [Makefile:1657: all] Error 2

i had double check the Makefile it contains the CPPFLAGS and CURSES_LIB 
CPPFLAGS = -I/usr/local/musl/include/ncursesw -I/usr/local/musl/include
CURSES_LIB = -L/usr/local/musl/lib /usr/local/musl/lib -lncursesw -ltinfo

I had remove the above musl and use glibc but it still gives the "ld: cannot 
find
/usr/lib: file format not recognized".

I am using nano 5.7 tarball, previously i can compile the 5.6.1 glibc and musl.

Reagrds,
Badli



reply via email to

[Prev in Thread] Current Thread [Next in Thread]