public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Failing build when using binutils 2.34-1 on Cygwin 32/64-bit
@ 2020-03-04 14:44 Joachim Metz
  2020-03-04 14:58 ` JonY
  0 siblings, 1 reply; 2+ messages in thread
From: Joachim Metz @ 2020-03-04 14:44 UTC (permalink / raw)
  To: cygwin

I maintain numerous projects, as part of that I've set up CI tests that use
current Cygwin 32-bit and 64-bit. Recently I've noticed that builds were
failing with errors like:

https://ci.appveyor.com/project/libyal/libfwsi/build/job/7b822r4j4ghfs2m5#L953

/usr/lib/gcc/i686-pc-cygwin/9.2.0/../../../../i686-pc-cygwin/bin/ld:
fwsi_test_error.o: in function `fwsi_test_error_sprint':
/home/appveyor/libfwsi/tests/fwsi_test_error.c:72: undefined reference to
`_imp__libfwsi_error_sprint'

https://ci.appveyor.com/project/libyal/libfwsi/build/job/3qnu5pk3lm4u12pe#L960

/home/appveyor/libfwsi/tests/fwsi_test_error.c:72: undefined reference to
`__imp_libfwsi_error_sprint'
/home/appveyor/libfwsi/tests/fwsi_test_error.c:72:(.text.startup+0x24):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`__imp_libfwsi_error_sprint'

Since I did not make significant changes to the project sources I started
analyzing the build environment. I was able to reproduce the issues
with binutils 2.34-1 on Cygwin 64-bit on a separate Windows 10
installation.

When I reverted to binutils 2.31-1 the build issues do NOT surface. I
suspect a change or issue with binutils 2.34-1 is causing the build issues.
Happy to provide additional details / help troubleshooting where possible.

Kind regards,
Joachim

P.S. I tried searching for duplicate issues on
https://sourceware.org/cgi-bin/search.cgi?form=extended&qprev= unfortunately
it returns a lot of results and starts with the oldest results first. Small
request for the future, consider adding an option to return results in
reverse order.

Tracking this for the libyal projects in
https://github.com/libyal/libyal/issues/83

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

* Re: Failing build when using binutils 2.34-1 on Cygwin 32/64-bit
  2020-03-04 14:44 Failing build when using binutils 2.34-1 on Cygwin 32/64-bit Joachim Metz
@ 2020-03-04 14:58 ` JonY
  0 siblings, 0 replies; 2+ messages in thread
From: JonY @ 2020-03-04 14:58 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 1705 bytes --]

On 3/4/20 8:59 AM, Joachim Metz wrote:
> I maintain numerous projects, as part of that I've set up CI tests that use
> current Cygwin 32-bit and 64-bit. Recently I've noticed that builds were
> failing with errors like:
> 
> https://ci.appveyor.com/project/libyal/libfwsi/build/job/7b822r4j4ghfs2m5#L953
> 
> /usr/lib/gcc/i686-pc-cygwin/9.2.0/../../../../i686-pc-cygwin/bin/ld:
> fwsi_test_error.o: in function `fwsi_test_error_sprint':
> /home/appveyor/libfwsi/tests/fwsi_test_error.c:72: undefined reference to
> `_imp__libfwsi_error_sprint'
> 
> https://ci.appveyor.com/project/libyal/libfwsi/build/job/3qnu5pk3lm4u12pe#L960
> 
> /home/appveyor/libfwsi/tests/fwsi_test_error.c:72: undefined reference to
> `__imp_libfwsi_error_sprint'
> /home/appveyor/libfwsi/tests/fwsi_test_error.c:72:(.text.startup+0x24):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `__imp_libfwsi_error_sprint'
> 
> Since I did not make significant changes to the project sources I started
> analyzing the build environment. I was able to reproduce the issues
> with binutils 2.34-1 on Cygwin 64-bit on a separate Windows 10
> installation.
> 
> When I reverted to binutils 2.31-1 the build issues do NOT surface. I
> suspect a change or issue with binutils 2.34-1 is causing the build issues.
> Happy to provide additional details / help troubleshooting where possible.
> 
> Kind regards,
> Joachim
> 

Can you compare the objects where that symbol is supposed to be defined
and the objects where it is supposed to be referenced between the 2
binutils versions?

Can you make a minimalist test case?

Might be a good idea to file a ticket with binutils too.



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

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

end of thread, other threads:[~2020-03-04 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04 14:44 Failing build when using binutils 2.34-1 on Cygwin 32/64-bit Joachim Metz
2020-03-04 14:58 ` JonY

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