Bug 14818 - AB-INT: "cannot find -lz" while building rustc_driver
Summary: AB-INT: "cannot find -lz" while building rustc_driver
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-05-26 20:58 UTC by Luca Ceresoli
Modified: 2022-06-01 15:29 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Ceresoli 2022-05-26 20:58:31 UTC
Seen suring qemux86-64 on centos7-ty-4:

Compiling rustc_driver v0.0.0 (/home/pokybuild/yocto-worker/qemux86-64/build/build-st-52213/tmp/work/core2-64-poky-linux/rust-testsuite/1.60.0-r0/rustc-1.60.0-src/compiler/rustc_driver)
error: linking with `cc` failed: exit status: 1
[...]
  = note: /home/pokybuild/yocto-worker/qemux86-64/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: cannot find -lz
          collect2: error: ld returned 1 exit status
          
error: could not compile `rustc_driver` due to previous error
Build completed unsuccessfully in 0:05:36

https://autobuilder.yoctoproject.org/typhoon/#/builders/73/builds/5222/steps/19/logs/stdio

Rerun, it succeeded.
Comment 1 Luca Ceresoli 2022-05-30 20:52:02 UTC
qemux86-64 on fedora35-ty-1

https://autobuilder.yoctoproject.org/typhoon/#/builders/73/builds/5239/steps/18/logs/stdio
Comment 2 Luca Ceresoli 2022-05-31 09:15:50 UTC
qemux86 on fedora35-ty-2

https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/5254/steps/18/logs/stdio
Comment 3 Luca Ceresoli 2022-06-01 15:29:14 UTC
This bug was never happening on master, it happened on my testing branch with this patch under test:

https://lists.openembedded.org/g/openembedded-core/topic/91327291#166093

That patch never got merged to master, so this bug should just not have been opened.

Closing as invalid.