Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cross compile for Windows (cannot find -lsynchronization) #1463

Open
4 of 11 tasks
FrancisRussell opened this issue Apr 1, 2024 · 2 comments
Open
4 of 11 tasks

Comments

@FrancisRussell
Copy link

FrancisRussell commented Apr 1, 2024

Checklist

Describe your issue

While this looks pretty similar to #1453, I've not been able to fix it based on the work-around mentioned in the issue, which is why I've created a separate one.

While attempting to cross compile in Github CI on the ubuntu-latest image for x64_64-pc-windows-gnu and i686-pc-windows-gnu, I hit a linking error due to an inability to link against synchronization.

I have tried pinning my cross version to 085092c and the rust toolchain version was nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.79.0-nightly (8df7e723e 2024-03-30).

error: could not compile `zoog` (bin "zoogcomment") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `i686-w64-mingw32-gcc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin" VSLANG="1033" "i686-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-Wl,--large-address-aware" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsbegin.o" "/tmp/rustcY9nVKw/symbols.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.10trylrgrxc27nj5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.11r74i07q4l6evyr.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.11ragcfrz5lrjblw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.128d9jtcbgemikt5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.12n3bj4bqgim4p6u.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.139whp4aok6sstf7.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.13afpbmncypcrxm7.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.13o57hoi4505okoo.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.14bhoonnez3o53xp.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.14icfnqurc0tq9ky.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.14mn042f2glq7vm3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.151o56ue0vccafow.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.175sbfe6k6got8e5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.18dxsq7rn2xawk93.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.19ekb7vwbsrv7axl.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1anio6v7d216bf1w.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1bc2ga3l44ip5tt2.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1bx4j6twpkp3om7p.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1c36ed9ztgopfp2v.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1dcx2kufge4hqmiw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1dflpdkbbk4rwo1m.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1ffqvehmm2qpynge.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1g6rplii7n2rpcr.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1gew0mx02epakrvu.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1i572lzt7sxbrvkz.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1k9dielp2v0ing7u.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1kfevwif9kr4j0pp.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1l834oh8h9x3igi5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1lnp548fixwjecuh.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1mqc6tbpnaayl0dk.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1n1b5vs4rs5rps1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1o44yki0o1dcy2o1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1otef0eumqfuajoy.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1pmt3d4kilgbdsc3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1qnpcuqoo4x9sh5p.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1smk448g0geb9bb1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1sunpybyu8k0i140.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1sxusmziqhst0nhp.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1tiyl6nrt3dk5nfq.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1u5yqdwmwnr1hm39.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1uo7f7vem07fpesx.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1vge9xs9evdzy3q.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1vqpmh83stplkvma.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1xzq27d33iu21zbv.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1y5kb3e5cuqaitz5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1zq85slc3u2p298x.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.1zsnx2lkmnxtzmw5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.20kwnn8gt0qidp7.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.21ew09jtxeeizkl3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.222mkk6drk8p77hs.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.246wwkf8nx23eoiw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.24y5j89qd67pot0q.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.29jk1z288zjyp47h.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.29m1ov4xqfgx2ilr.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2by56ocmrb5xifwd.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2egumnohtyzhqjsj.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2esxldce3yjm32ce.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2hc5pu48nc73oo3n.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2ho3lt3ofs3wykry.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2i5dy1994w2y6ckk.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2iiv04srijlsusk7.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2jje9kkd6w9g2iyl.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2jw3uzv6q5mnfsde.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2l3ywcsw8ng2xhrn.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2mx7dzznlxioqe5e.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2nn9x1imhnty9jdh.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2nowc53uxth9u7e6.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2tga0nwdha8wg3d0.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2u1ecsdthqqimtdq.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2umtcxomz84kywvu.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2wj6s21lfrbr7fl9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2x1x0rparsxl2m6v.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2xilgnwmjbkf1eke.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2yy85f99rdlhwb08.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.2zhavpwl7kworjvz.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.30ctqf1tvc1u51se.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.30ic7pdzedjm37i5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.30tn81jrdmfd9qxt.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.32voe7cqskfe48ys.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.335c8kz6tf0j3cgf.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.340u3ve0vsqhajai.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.35aopsw4qwjfmw4f.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3851qzgwunbxyqri.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.39nkl7z5uhsuroyr.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3ba0p1l1rcrnsnc3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3bal3h54e0p0bk2r.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3ddlb2c7aem6abao.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3df5gwms0i4lfc58.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3fa64rix4cfgl5ni.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3iv8jlp8v1lsikgu.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3jb98rryqp932ygj.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3jr2rn0q4s8coq6f.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3jscy6yjwz2hdv5d.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3kdomvjg14txdsxe.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3kfisi2dd5dyjc1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3lia57vuqdxe6azc.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3mc920rodrlfzad9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3nl9k5l7opefhe9q.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3nq5i7l2scbi5lhs.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3qrbl08140a9xtun.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3sjmejt3rp72zohw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3uca89s99jbq25rf.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3v98z0yzdfjqhxca.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3wbekduorjxjy9b8.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3xzib4oishih4iwp.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.3y1bfoe781f9rjlo.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.40lnmmmv5igmt3h.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.40r53n1n073i0pxk.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.40sj8jr6a1o2d9hm.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.41jcl7x6tz4enj9l.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.41sq5vjguvqmxf44.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.42vznopul3lc2g1y.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.43xxdck7c6tenvgn.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.45ih553h8ipc6a7a.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.46lte92woosvgbaw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.47chkenu5efpecnn.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.483jozjhxcsg4nws.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.49ju18ioyeidw1mu.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.49ktvt0syzbn4b6s.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4a7j1y5k3j1lk53h.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4axwny7azygxx9qe.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4b3083d9t13mnfyx.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4b7kgfb4w9yljld3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4btenyfexhr882on.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4c1x0yt4x95rkazr.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4c8e1dlixyri2z0c.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4cyixbs4adf2xc4d.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4cz5ljbbdhwa0f4c.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4e9utmw069i378gj.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4ecu0shh64gbsf6v.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4gvxgz99u16jvqvb.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4jn94mxfjrfuoi5t.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4k4l0gaon78pl205.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4kokbbcq1qwqokyd.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4lf0jrb41gqe3p3j.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4lfw24oazdfyxkg9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4ny4zlvgrxj44td1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4o7lrpo3aq33a4ex.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4qsoxumn1pjyk7sg.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4rze7ui1u8jx8gzx.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4t5zgz93fdzij5e1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4tk6958x4n1kdlei.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4toc65tt89r3139g.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4tqsz5ice0ahwtex.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4u8ewuja8ix6wxz5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4wogut6pgagkm5kz.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4ww1afm9s2ccesqf.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4x8h44wwkqcaeily.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4xajqdcuerhg77mv.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4yrle3qmms11i2na.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.4zlsdvuuvyi3ftb9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.50yk1qc19seq9wes.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5176kotmmel6j5qw.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.51u1pbvyai6sz26p.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.55tzoap05t96ngqd.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.567nvhiwsj5bvglc.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.572xau8gtgzbh7x5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.592ed59uoexvchle.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5b2kfpwn3yf2rkvx.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5bbimrx3kv53nkj1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5bpzxq74dt475m99.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5c709g0pdcpanj8e.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5d3n2b8fgujr8vmp.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5dqi1z3xun15pvda.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5ejxh657pbgdfz29.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5g3vftqax00epc15.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5gjklftawcy1wshv.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.5j6ljth0sqj2f0l.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.6dxasp53mjzgz8j.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.6syroh8is4zfcgj.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.9h1em3ak3d3jx22.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.ccobjpe029rhqx9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.d9qpel2v4olauah.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.e7e4oi4dz1feqv0.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.f0qwby6hk4l0mp5.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.fug1d5flscufroh.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.g60huwc6j3038w3.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.gh2nqfo8xar35ez.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.gqst1tkcltf8b5w.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.ibs4agmxo9yxu20.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.iiwou0pekas02nk.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.iumbgj45ut2n19y.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.nd3gq6ikipcqiqz.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.o21x4zde3zazxky.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.o7egs408e9n7149.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.rp42w4zehf4ye36.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.s5hcp3aj7ve4t8m.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.s7qqx2i4ntpt1h1.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.tpal5348thvcmg6.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.xcs028sjdeccs1h.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.xeuu2mm1utsdkfk.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.yvbyobu5nifsd4b.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.yvfwsu1pemtx1a9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.zrd7in311ugcxg9.rcgu.o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.53jeknxsodnv9lh9.rcgu.o" "-L" "/target/i686-pc-windows-gnu/debug/deps" "-L" "/target/debug/deps" "-L" "/target/i686-pc-windows-gnu/debug/build/audiopus_sys-6188bac88b988c7b/out/lib" "-L" "/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/windows_i686_gnu-0.48.5/lib" "-L" "/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/windows_i686_gnu-0.52.4/lib" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-Wl,-Bstatic" "/target/i686-pc-windows-gnu/debug/deps/libwild-f9d95cf47aa1db43.rlib" "/target/i686-pc-windows-gnu/debug/deps/libglob-7698c9c7eb3a5750.rlib" "/target/i686-pc-windows-gnu/debug/deps/libnum_cpus-df8b6f459e2b2c87.rlib" "/target/i686-pc-windows-gnu/debug/deps/libctrlc-76e85a77de5bec8c.rlib" "/target/i686-pc-windows-gnu/debug/deps/librayon-3d6ca5f564dcc976.rlib" "/target/i686-pc-windows-gnu/debug/deps/librayon_core-f9b98a7f76288379.rlib" "/target/i686-pc-windows-gnu/debug/deps/libcrossbeam_deque-6847ba7b50a805d6.rlib" "/target/i686-pc-windows-gnu/debug/deps/libcrossbeam_epoch-d1f7164c1bf79a33.rlib" "/target/i686-pc-windows-gnu/debug/deps/libcrossbeam_utils-c517f6f4985f8ed1.rlib" "/target/i686-pc-windows-gnu/debug/deps/libeither-9490d05b49621c5a.rlib" "/target/i686-pc-windows-gnu/debug/deps/libzoog-04631c5cc59db5f9.rlib" "/target/i686-pc-windows-gnu/debug/deps/libopus-154d053bd7eddfeb.rlib" "/target/i686-pc-windows-gnu/debug/deps/liblibc-0f55aa5e7687ace0.rlib" "/target/i686-pc-windows-gnu/debug/deps/libaudiopus_sys-b255a1eaab39900d.rlib" "/target/i686-pc-windows-gnu/debug/deps/libbs1770-408f4da2fe52addc.rlib" "/target/i686-pc-windows-gnu/debug/deps/libclap-a1e0ff575303997d.rlib" "/target/i686-pc-windows-gnu/debug/deps/libclap_builder-929d7765a1703257.rlib" "/target/i686-pc-windows-gnu/debug/deps/libterminal_size-47748cabd6e16dcf.rlib" "/target/i686-pc-windows-gnu/debug/deps/libwindows_sys-64ffde03680d9976.rlib" "/target/i686-pc-windows-gnu/debug/deps/libstrsim-17e382964fb35bc8.rlib" "/target/i686-pc-windows-gnu/debug/deps/libclap_lex-f8d1fb8b3e8d5eaa.rlib" "/target/i686-pc-windows-gnu/debug/deps/libanstyle-3a6d4cfb83176a3a.rlib" "/target/i686-pc-windows-gnu/debug/deps/libthiserror-4fae6615bd84b16d.rlib" "/target/i686-pc-windows-gnu/debug/deps/libtempfile-224229aa7e5b41d2.rlib" "/target/i686-pc-windows-gnu/debug/deps/libfastrand-d2a0b26e1118c652.rlib" "/target/i686-pc-windows-gnu/debug/deps/libwindows_sys-d61b4a480f5b2102.rlib" "/target/i686-pc-windows-gnu/debug/deps/libwindows_targets-ff0cb3fe049a1813.rlib" "/target/i686-pc-windows-gnu/debug/deps/libogg-eb1f3416a949deb3.rlib" "/target/i686-pc-windows-gnu/debug/deps/libbyteorder-f579077e8df97f92.rlib" "/target/i686-pc-windows-gnu/debug/deps/libparking_lot-3f153846c0ab7720.rlib" "/target/i686-pc-windows-gnu/debug/deps/libparking_lot_core-f82fa67a21ff562d.rlib" "/target/i686-pc-windows-gnu/debug/deps/libwindows_targets-8fae78bc1dc8ccde.rlib" "/target/i686-pc-windows-gnu/debug/deps/libcfg_if-94ba46cff5a0f437.rlib" "/target/i686-pc-windows-gnu/debug/deps/libsmallvec-63b2ffa2cb3f8fa9.rlib" "/target/i686-pc-windows-gnu/debug/deps/liblock_api-42bc5121c830ad06.rlib" "/target/i686-pc-windows-gnu/debug/deps/libscopeguard-63b6be2a54b3084d.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd-462702c34b1f9f38.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-0e2bb2879e4f6181.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-61598ef59dee1992.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libmemchr-c25f4e9fc8749405.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libaddr2line-b1f54da64b2b65b2.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-afd66e0[127](https://github.com/FrancisRussell/zoog/actions/runs/8501756220/job/23285004152?pr=117#step:6:128)23a479.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_demangle-bce2a1f1b7d656fa.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd_detect-2cdb1e5b5e516af2.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libhashbrown-857b063b333eaf12.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_alloc-32568f2b992d187e.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libminiz_oxide-6442cde4aadae0ad.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libadler-d92a0b7cff841f86.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libunwind-3ba73bfa105105a5.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcfg_if-0eac3bf9524543a8.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liblibc-619b9806b88b7b77.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liballoc-508bfa289d42c2d4.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_core-0f8fcf92da908fb7.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcore-0c9c859078217efe.rlib" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcompiler_builtins-fd098b9a65c7ad07.rlib" "-Wl,-Bdynamic" "-lwindows.0.48.5" "-lwindows.0.52.0" "-lwindows.0.48.5" "-lkernel32" "-ladvapi32" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-lsynchronization" "-lkernel32" "-lws2_32" "-lkernel32" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-o" "/target/i686-pc-windows-gnu/debug/deps/opusgain-9511bf64cc4910ea.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "-lssp" "/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsend.o"
  = note: /usr/bin/i686-w64-mingw32-ld: cannot find -lsynchronization
          collect2: error: ld returned 1 exit status
          

error: could not compile `zoog` (bin "opusgain") due to 1 previous error
Error: Process completed with exit code 101.

What target(s) are you cross-compiling for?

i686-pc-windows-gnu, x86_64-unknown-linux-gnu

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5 (085092c 2024-03-08)

Example

No response

Additional information / notes

No response

FrancisRussell added a commit to FrancisRussell/zoog that referenced this issue Apr 1, 2024
It's unclear what's happening here besides a linking error.  The
relevant issues are: cross-rs/cross#1463 and
cross-rs/cross#1453.

Pinning to cross 0.2.5 and swtching to the Rust stable toolchain seems
to fix things for now.
@Emilgardis
Copy link
Member

Does cross from main + stable rust work?

@FrancisRussell
Copy link
Author

I've run four tests:

Rust stable: rustc 1.77.1 (7cf61ebde 2024-03-27)
Rust nightly: rustc 1.79.0-nightly (805813650 2024-03-31)

Rust stable + cross v0.2.5:

  • x86_64-pc-windows-gnu build succeeds.
  • i686-pc-windows-gnu build succeeds.

Rust stable + cross 0.2.5 (085092c 2024-03-08):

  • x86_64-pc-windows-gnu build succeeds.
  • i686-pc-windows-gnu build succeeds.

Rust nightly + cross v0.2.5:

  • x86_64-pc-windows-gnu build succeeds.
  • i686-pc-windows-gnu builds fails with cannot find -lsynchronization.

Rust nightly + cross 0.2.5 (085092c 2024-03-08):

  • x86_64-pc-windows-gnu build succeeds.
  • i686-pc-windows-gnu builds fails with cannot find -lsynchronization.

So in summary, it seems the build failures are specific to using Rust nightly, and to targeting i686-pc-windows-gnu. I had thought I also saw them for x86_64-pc-windows-gnu, but I guess I got confused between the Windows builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants