GCC Compiler can't seem to find linker

Mark Geisert mark@maxrnd.com
Thu Jul 6 05:50:00 GMT 2017

starz0rdesign wrote:
> Which package contains libink.a?
> This is the output for make V=1
> $ make V=1
> make  all-am
> make[1]: Entering directory '/home/nobodyimportant/libarchive-3.3.1'
> /bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -Wformat -Wformat-s
> ecurity -no-undefined -version-info 16:1:3  -o libarchive.la -rpath /usr/local/
> hive_write_set_passphrase.o libarchive/.libs/filter_fork_posix.o libarchive/.li
> bs/xxhash.o   -g -O2   `func_echo_all " -liconv" | /usr/bin/sed 's/ -lc$//'` -l
> ink -dll
> C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib
> /gcc/x86_64-w64-mingw32/7.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot
>   find -link
> collect2.exe: error: ld returned 1 exit status
> make[1]: *** [Makefile:3334: libarchive.la] Error 1
> make[1]: Leaving directory '/home/nobodyimportant/libarchive-3.3.1'
> make: *** [Makefile:2929: all] Error 2

It appears you're building libarchive from scratch rather than using Cygwin's 
libarchive package.  Since "libink" has no results in the Cygwin package search 
(at https://cygwin.com/cgi-bin2/package-grep.cgi for your future reference :-)) 
I would guess libarchive itself needs it and assumes it's already present on 
your system.  You may have to build libink.a yourself.

BTW are you following 
https://github.com/libarchive/libarchive/wiki/BuildInstructions or just winging 
it?  If the latter, try the former ;-)


Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list