public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* x86_64-w64-mingw32-ld lib dir configuration issue
@ 2016-08-29 11:43 Whek rin
  2016-08-29 13:06 ` JonY
  2016-08-29 14:20 ` cyg Simple
  0 siblings, 2 replies; 3+ messages in thread
From: Whek rin @ 2016-08-29 11:43 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

The utility x86_64-w64-mingw32-ld from package mingw-x86_64-binutils
cannot by default find libraries from the path
/usr/x86_64-w64-mingw32/sysroot/mingw/lib, where the package
mingw64-x86_64-runtime installs them. I believe this is a build
configuration issue. I've attached a zip file which contains a test
case which illustrates the issue. Inspect and run
build_hellotest_mingw.sh and it's output, in particular how it can't
find e.g. libkernel32 without a -L argument to the correct location.
I renamed the .zip to .z__ to get around the spam filters, you may
need to rename it to open it.
Thanks, Matt

[-- Attachment #2: mingw_testcase.z__ --]
[-- Type: application/octet-stream, Size: 1454 bytes --]

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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] 3+ messages in thread

* Re: x86_64-w64-mingw32-ld lib dir configuration issue
  2016-08-29 11:43 x86_64-w64-mingw32-ld lib dir configuration issue Whek rin
@ 2016-08-29 13:06 ` JonY
  2016-08-29 14:20 ` cyg Simple
  1 sibling, 0 replies; 3+ messages in thread
From: JonY @ 2016-08-29 13:06 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

On 8/29/2016 10:06, Whek rin wrote:
> The utility x86_64-w64-mingw32-ld from package mingw-x86_64-binutils
> cannot by default find libraries from the path
> /usr/x86_64-w64-mingw32/sysroot/mingw/lib, where the package
> mingw64-x86_64-runtime installs them. I believe this is a build
> configuration issue. I've attached a zip file which contains a test
> case which illustrates the issue. Inspect and run
> build_hellotest_mingw.sh and it's output, in particular how it can't
> find e.g. libkernel32 without a -L argument to the correct location.
> I renamed the .zip to .z__ to get around the spam filters, you may
> need to rename it to open it.
> Thanks, Matt
> 

Though I agree that this is a path search bug that should be fixed,
please do not abuse ld by using it directly. Use the frontend driver
instead.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: x86_64-w64-mingw32-ld lib dir configuration issue
  2016-08-29 11:43 x86_64-w64-mingw32-ld lib dir configuration issue Whek rin
  2016-08-29 13:06 ` JonY
@ 2016-08-29 14:20 ` cyg Simple
  1 sibling, 0 replies; 3+ messages in thread
From: cyg Simple @ 2016-08-29 14:20 UTC (permalink / raw)
  To: cygwin

On 8/28/2016 10:06 PM, Whek rin wrote:
> The utility x86_64-w64-mingw32-ld from package mingw-x86_64-binutils
> cannot by default find libraries from the path
> /usr/x86_64-w64-mingw32/sysroot/mingw/lib, where the package
> mingw64-x86_64-runtime installs them. I believe this is a build
> configuration issue. I've attached a zip file which contains a test
> case which illustrates the issue. Inspect and run

Maybe but...

> build_hellotest_mingw.sh and it's output, in particular how it can't
> find e.g. libkernel32 without a -L argument to the correct location.
> I renamed the .zip to .z__ to get around the spam filters, you may
> need to rename it to open it.

If you're going to use ld directly then you shouldn't depend on defaults
regardless of the type of the library.  You should be using the
appropriate front end to do the linking but that doesn't mean you can't
use ld directly; use just have to do a lot more working to do the linking.

-- 
cyg Simple

--
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] 3+ messages in thread

end of thread, other threads:[~2016-08-29 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29 11:43 x86_64-w64-mingw32-ld lib dir configuration issue Whek rin
2016-08-29 13:06 ` JonY
2016-08-29 14:20 ` cyg Simple

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