public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: GCC Compiler can't seem to find linker
@ 2017-07-06  4:13 starz0rdesign
  2017-07-06  5:50 ` Mark Geisert
  0 siblings, 1 reply; 5+ messages in thread
From: starz0rdesign @ 2017-07-06  4:13 UTC (permalink / raw)
  To: cygwin

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/
lib libarchive/archive_acl.lo libarchive/archive_check_magic.lo 
libarchive/arch
ive_cmdline.lo libarchive/archive_cryptor.lo 
libarchive/archive_digest.lo libar
chive/archive_entry.lo libarchive/archive_entry_copy_stat.lo 
libarchive/archive
_entry_link_resolver.lo libarchive/archive_entry_sparse.lo 
libarchive/archive_e
ntry_stat.lo libarchive/archive_entry_strmode.lo 
libarchive/archive_entry_xattr
.lo libarchive/archive_getdate.lo libarchive/archive_hmac.lo 
libarchive/archive
_match.lo libarchive/archive_options.lo libarchive/archive_pack_dev.lo 
libarchi
ve/archive_pathmatch.lo libarchive/archive_ppmd7.lo 
libarchive/archive_random.l
o libarchive/archive_rb.lo libarchive/archive_read.lo 
libarchive/archive_read_a
dd_passphrase.lo libarchive/archive_read_append_filter.lo 
libarchive/archive_re
ad_data_into_fd.lo libarchive/archive_read_disk_entry_from_file.lo 
libarchive/a
rchive_read_disk_posix.lo 
libarchive/archive_read_disk_set_standard_lookup.lo l
ibarchive/archive_read_extract.lo libarchive/archive_read_extract2.lo 
libarchiv
e/archive_read_open_fd.lo libarchive/archive_read_open_file.lo 
libarchive/archi
ve_read_open_filename.lo libarchive/archive_read_open_memory.lo 
libarchive/arch
ive_read_set_format.lo libarchive/archive_read_set_options.lo 
libarchive/archiv
e_read_support_filter_all.lo 
libarchive/archive_read_support_filter_bzip2.lo li
barchive/archive_read_support_filter_compress.lo 
libarchive/archive_read_suppor
t_filter_grzip.lo libarchive/archive_read_support_filter_gzip.lo 
libarchive/arc
hive_read_support_filter_lrzip.lo 
libarchive/archive_read_support_filter_lz4.lo
  libarchive/archive_read_support_filter_lzop.lo 
libarchive/archive_read_support
_filter_none.lo libarchive/archive_read_support_filter_program.lo 
libarchive/ar
chive_read_support_filter_rpm.lo 
libarchive/archive_read_support_filter_uu.lo l
ibarchive/archive_read_support_filter_xz.lo 
libarchive/archive_read_support_for
mat_7zip.lo libarchive/archive_read_support_format_all.lo 
libarchive/archive_re
ad_support_format_ar.lo 
libarchive/archive_read_support_format_by_code.lo libar
chive/archive_read_support_format_cab.lo 
libarchive/archive_read_support_format
_cpio.lo libarchive/archive_read_support_format_empty.lo 
libarchive/archive_rea
d_support_format_iso9660.lo 
libarchive/archive_read_support_format_lha.lo libar
chive/archive_read_support_format_mtree.lo 
libarchive/archive_read_support_form
at_rar.lo libarchive/archive_read_support_format_raw.lo 
libarchive/archive_read
_support_format_tar.lo libarchive/archive_read_support_format_warc.lo 
libarchiv
e/archive_read_support_format_xar.lo 
libarchive/archive_read_support_format_zip
.lo libarchive/archive_string.lo libarchive/archive_string_sprintf.lo 
libarchiv
e/archive_util.lo libarchive/archive_virtual.lo 
libarchive/archive_write.lo lib
archive/archive_write_disk_acl.lo libarchive/archive_write_disk_posix.lo 
libarc
hive/archive_write_disk_set_standard_lookup.lo 
libarchive/archive_write_open_fd
.lo libarchive/archive_write_open_file.lo 
libarchive/archive_write_open_filenam
e.lo libarchive/archive_write_open_memory.lo 
libarchive/archive_write_add_filte
r.lo libarchive/archive_write_add_filter_b64encode.lo 
libarchive/archive_write_
add_filter_by_name.lo libarchive/archive_write_add_filter_bzip2.lo 
libarchive/a
rchive_write_add_filter_compress.lo 
libarchive/archive_write_add_filter_grzip.l
o libarchive/archive_write_add_filter_gzip.lo 
libarchive/archive_write_add_filt
er_lrzip.lo libarchive/archive_write_add_filter_lz4.lo 
libarchive/archive_write
_add_filter_lzop.lo libarchive/archive_write_add_filter_none.lo 
libarchive/arch
ive_write_add_filter_program.lo 
libarchive/archive_write_add_filter_uuencode.lo
  libarchive/archive_write_add_filter_xz.lo 
libarchive/archive_write_set_format.
lo libarchive/archive_write_set_format_7zip.lo 
libarchive/archive_write_set_for
mat_ar.lo libarchive/archive_write_set_format_by_name.lo 
libarchive/archive_wri
te_set_format_cpio.lo libarchive/archive_write_set_format_cpio_newc.lo 
libarchi
ve/archive_write_set_format_filter_by_ext.lo 
libarchive/archive_write_set_forma
t_iso9660.lo libarchive/archive_write_set_format_mtree.lo 
libarchive/archive_wr
ite_set_format_pax.lo libarchive/archive_write_set_format_raw.lo 
libarchive/arc
hive_write_set_format_shar.lo 
libarchive/archive_write_set_format_ustar.lo liba
rchive/archive_write_set_format_v7tar.lo 
libarchive/archive_write_set_format_gn
utar.lo libarchive/archive_write_set_format_warc.lo 
libarchive/archive_write_se
t_format_xar.lo libarchive/archive_write_set_format_zip.lo 
libarchive/archive_w
rite_set_options.lo libarchive/archive_write_set_passphrase.lo 
libarchive/filte
r_fork_posix.lo libarchive/xxhash.lo  -liconv
libtool: link: gcc -o .libs/libarchive.dll.a  
libarchive/.libs/archive_acl.o li
barchive/.libs/archive_check_magic.o libarchive/.libs/archive_cmdline.o 
libarch
ive/.libs/archive_cryptor.o libarchive/.libs/archive_digest.o 
libarchive/.libs/
archive_entry.o libarchive/.libs/archive_entry_copy_stat.o 
libarchive/.libs/arc
hive_entry_link_resolver.o libarchive/.libs/archive_entry_sparse.o 
libarchive/.
libs/archive_entry_stat.o libarchive/.libs/archive_entry_strmode.o 
libarchive/.
libs/archive_entry_xattr.o libarchive/.libs/archive_getdate.o 
libarchive/.libs/
archive_hmac.o libarchive/.libs/archive_match.o 
libarchive/.libs/archive_option
s.o libarchive/.libs/archive_pack_dev.o 
libarchive/.libs/archive_pathmatch.o li
barchive/.libs/archive_ppmd7.o libarchive/.libs/archive_random.o 
libarchive/.li
bs/archive_rb.o libarchive/.libs/archive_read.o 
libarchive/.libs/archive_read_a
dd_passphrase.o libarchive/.libs/archive_read_append_filter.o 
libarchive/.libs/
archive_read_data_into_fd.o 
libarchive/.libs/archive_read_disk_entry_from_file.
o libarchive/.libs/archive_read_disk_posix.o 
libarchive/.libs/archive_read_disk
_set_standard_lookup.o libarchive/.libs/archive_read_extract.o 
libarchive/.libs
/archive_read_extract2.o libarchive/.libs/archive_read_open_fd.o 
libarchive/.li
bs/archive_read_open_file.o 
libarchive/.libs/archive_read_open_filename.o libar
chive/.libs/archive_read_open_memory.o 
libarchive/.libs/archive_read_set_format
.o libarchive/.libs/archive_read_set_options.o 
libarchive/.libs/archive_read_su
pport_filter_all.o libarchive/.libs/archive_read_support_filter_bzip2.o 
libarch
ive/.libs/archive_read_support_filter_compress.o 
libarchive/.libs/archive_read_
support_filter_grzip.o 
libarchive/.libs/archive_read_support_filter_gzip.o liba
rchive/.libs/archive_read_support_filter_lrzip.o 
libarchive/.libs/archive_read_
support_filter_lz4.o libarchive/.libs/archive_read_support_filter_lzop.o 
libarc
hive/.libs/archive_read_support_filter_none.o 
libarchive/.libs/archive_read_sup
port_filter_program.o libarchive/.libs/archive_read_support_filter_rpm.o 
libarc
hive/.libs/archive_read_support_filter_uu.o 
libarchive/.libs/archive_read_suppo
rt_filter_xz.o libarchive/.libs/archive_read_support_format_7zip.o 
libarchive/.
libs/archive_read_support_format_all.o 
libarchive/.libs/archive_read_support_fo
rmat_ar.o libarchive/.libs/archive_read_support_format_by_code.o 
libarchive/.li
bs/archive_read_support_format_cab.o 
libarchive/.libs/archive_read_support_form
at_cpio.o libarchive/.libs/archive_read_support_format_empty.o 
libarchive/.libs
/archive_read_support_format_iso9660.o 
libarchive/.libs/archive_read_support_fo
rmat_lha.o libarchive/.libs/archive_read_support_format_mtree.o 
libarchive/.lib
s/archive_read_support_format_rar.o 
libarchive/.libs/archive_read_support_forma
t_raw.o libarchive/.libs/archive_read_support_format_tar.o 
libarchive/.libs/arc
hive_read_support_format_warc.o 
libarchive/.libs/archive_read_support_format_xa
r.o libarchive/.libs/archive_read_support_format_zip.o 
libarchive/.libs/archive
_string.o libarchive/.libs/archive_string_sprintf.o 
libarchive/.libs/archive_ut
il.o libarchive/.libs/archive_virtual.o libarchive/.libs/archive_write.o 
libarc
hive/.libs/archive_write_disk_acl.o 
libarchive/.libs/archive_write_disk_posix.o
  libarchive/.libs/archive_write_disk_set_standard_lookup.o 
libarchive/.libs/arc
hive_write_open_fd.o libarchive/.libs/archive_write_open_file.o 
libarchive/.lib
s/archive_write_open_filename.o 
libarchive/.libs/archive_write_open_memory.o li
barchive/.libs/archive_write_add_filter.o 
libarchive/.libs/archive_write_add_fi
lter_b64encode.o libarchive/.libs/archive_write_add_filter_by_name.o 
libarchive
/.libs/archive_write_add_filter_bzip2.o 
libarchive/.libs/archive_write_add_filt
er_compress.o libarchive/.libs/archive_write_add_filter_grzip.o 
libarchive/.lib
s/archive_write_add_filter_gzip.o 
libarchive/.libs/archive_write_add_filter_lrz
ip.o libarchive/.libs/archive_write_add_filter_lz4.o 
libarchive/.libs/archive_w
rite_add_filter_lzop.o libarchive/.libs/archive_write_add_filter_none.o 
libarch
ive/.libs/archive_write_add_filter_program.o 
libarchive/.libs/archive_write_add
_filter_uuencode.o libarchive/.libs/archive_write_add_filter_xz.o 
libarchive/.l
ibs/archive_write_set_format.o 
libarchive/.libs/archive_write_set_format_7zip.o
  libarchive/.libs/archive_write_set_format_ar.o 
libarchive/.libs/archive_write_
set_format_by_name.o libarchive/.libs/archive_write_set_format_cpio.o 
libarchiv
e/.libs/archive_write_set_format_cpio_newc.o 
libarchive/.libs/archive_write_set
_format_filter_by_ext.o 
libarchive/.libs/archive_write_set_format_iso9660.o lib
archive/.libs/archive_write_set_format_mtree.o 
libarchive/.libs/archive_write_s
et_format_pax.o libarchive/.libs/archive_write_set_format_raw.o 
libarchive/.lib
s/archive_write_set_format_shar.o 
libarchive/.libs/archive_write_set_format_ust
ar.o libarchive/.libs/archive_write_set_format_v7tar.o 
libarchive/.libs/archive
_write_set_format_gnutar.o 
libarchive/.libs/archive_write_set_format_warc.o lib
archive/.libs/archive_write_set_format_xar.o 
libarchive/.libs/archive_write_set
_format_zip.o libarchive/.libs/archive_write_set_options.o 
libarchive/.libs/arc
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

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GCC Compiler can't seem to find linker
  2017-07-06  4:13 GCC Compiler can't seem to find linker starz0rdesign
@ 2017-07-06  5:50 ` Mark Geisert
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Geisert @ 2017-07-06  5:50 UTC (permalink / raw)
  To: cygwin

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 ;-)
HTH,

..mark


--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GCC Compiler can't seem to find linker
@ 2017-07-06  6:50 starz0rdesign
  0 siblings, 0 replies; 5+ messages in thread
From: starz0rdesign @ 2017-07-06  6:50 UTC (permalink / raw)
  To: cygwin

Interesting that the package name isn't "libarchive" in the repos, but 
it's "libarchive13". Since I'm using a apt-get bash script to get the 
packages for me anyway. Since it seems I already had "libarchive13" 
installed, I tried installing the mingw64 package to see if it would fix 
my issue building another package, but it didn't seem to find it still, 
even after restarting the shell, so I'm not exactly sure how to get this 
to detect libarchive.

This output from the last 4 lines of ./configure of the msys2-pacman 
package.

...
checking pkg-config is at least version 0.9.0... yes
checking for LIBARCHIVE... no
configure: error: *** libarchive >= 2.8.0 is needed to compile pacman!
configure: WARNING: cache variable lt_cv_path_LD contains a newline

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GCC Compiler can't seem to find linker
  2017-07-03 21:52 starz0rdesign
@ 2017-07-04  6:35 ` Csaba Raduly
  0 siblings, 0 replies; 5+ messages in thread
From: Csaba Raduly @ 2017-07-04  6:35 UTC (permalink / raw)
  To: cygwin list

Hi,

On Mon, Jul 3, 2017 at 11:52 PM,  starz0rdesign wrote:
> Hello.
>
> I'm having a bit of an issue trying to compile LibArchive 3.3.1 for Windows.
> I have Mingw64 with GCC7.1 installed to prevent the Cygwin installer from
> linking it's DLL.

Maybe you should ask on the Mingw mailing list.

> At the end of the make process I seem to get this error:
> make  all-am
> make[1]: Entering directory '/home/nobodyimportant/libarchive-3.3.1'
>   CCLD     libarchive.la

It would be helpful to show the full command line. Add V=1 to the make
invocation:

make V=1 (other make parameters, if any)

> 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

This doesn't mean that the compiler didn't find the linker. This error
message means that the linker (ld.exe) didn't find a library, namely
libink.a



Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* GCC Compiler can't seem to find linker
@ 2017-07-03 21:52 starz0rdesign
  2017-07-04  6:35 ` Csaba Raduly
  0 siblings, 1 reply; 5+ messages in thread
From: starz0rdesign @ 2017-07-03 21:52 UTC (permalink / raw)
  To: cygwin

Hello.

I'm having a bit of an issue trying to compile LibArchive 3.3.1 for 
Windows. I have Mingw64 with GCC7.1 installed to prevent the Cygwin 
installer from linking it's DLL. At the end of the make process I seem 
to get this error:

make  all-am
make[1]: Entering directory '/home/nobodyimportant/libarchive-3.3.1'
   CCLD     libarchive.la
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

I can't tell what it's caused by, or what it wants because the error is 
so vague, is there something I can do to get this to compile?

--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-06  6:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-06  4:13 GCC Compiler can't seem to find linker starz0rdesign
2017-07-06  5:50 ` Mark Geisert
  -- strict thread matches above, loose matches on Subject: below --
2017-07-06  6:50 starz0rdesign
2017-07-03 21:52 starz0rdesign
2017-07-04  6:35 ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).