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

[SR-4880] Compiler-rt should not build i386 target on non-multilib Linux #47457

Closed
swift-ci opened this issue May 13, 2017 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. Linux Platform: Linux

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-4880
Radar None
Original Reporter Vladislav (JIRA User)
Type Bug
Status Closed
Resolution Invalid
Environment

Linux lfs-sdb6 4.10.14 #1 SMP Thu May 4 21:49:29 MSK 2017 x86_64 GNU/Linux

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, LLVM, Linux
Assignee None
Priority Medium

md5: a48f6fd3d3771982a1b089fb630dbf20

Issue Description:

I am trying to build fresh Swift on LFS and got unpleasant mistake during build step for 'compiler-rt'.
Performing build step for 'compiler-rt'
[1/749] Building CXX object lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.i386.dir/sanitizer_unwind_linux_libcdep.cc.o
FAILED: lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.i386.dir/sanitizer_unwind_linux_libcdep.cc.o
/mnt/swift/swift-source/build/buildbot_linux/llvm-linux-x86_64/./bin/clang++ -DHAVE_RPC_XDR_H=1 -DHAVE_TIRPC_RPC_XDR_H=0 -Wall -std=c+11 -Wno-unused-parameter -O3 -DNDEBUG -Wall -std=c+11 -Wno-unused-parameter -m32 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fvisibility-inlines-hidden -fno-function-sections -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -MD -MT lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.i386.dir/sanitizer_unwind_linux_libcdep.cc.o -MF lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.i386.dir/sanitizer_unwind_linux_libcdep.cc.o.d -o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.i386.dir/sanitizer_unwind_linux_libcdep.cc.o -c /mnt/swift/swift-source/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc
In file included from /mnt/swift/swift-source/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc:26:
In file included from /mnt/swift/swift-source/build/buildbot_linux/llvm-linux-x86_64/lib/clang/4.0.0/include/unwind.h:56:
In file included from /mnt/swift/swift-source/build/buildbot_linux/llvm-linux-x86_64/lib/clang/4.0.0/include/stdint.h:63:
In file included from /usr/include/stdint.h:26:
In file included from /usr/include/bits/libc-header-start.h:33:
In file included from /usr/include/features.h:434:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found

  1. include <gnu/stubs-32.h>
    ^~~~~~~~~~~~~~~~

My LFS system is x86_64 only and does not have any 32-bit libraries and headers. What is why shibs-32.h not found.

@swift-ci
Copy link
Collaborator Author

Comment by Vladislav Dembskiy (JIRA)

It was my mistake that I use the same sources between Gentoo and LFS. Gentoo is multilib and the error probably was inspired bey side effect.
After cleanning all builds and fresh clonning and checkout the error is disapeared.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. Linux Platform: Linux
Projects
None yet
Development

No branches or pull requests

1 participant