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-4166] Error compiling stdlib's Stubs.cpp for ARM #46749

Closed
gonzalolarralde opened this issue Mar 6, 2017 · 1 comment
Closed

[SR-4166] Error compiling stdlib's Stubs.cpp for ARM #46749

gonzalolarralde opened this issue Mar 6, 2017 · 1 comment

Comments

@gonzalolarralde
Copy link
Contributor

@gonzalolarralde gonzalolarralde commented Mar 6, 2017

Previous ID SR-4166
Radar None
Original Reporter @gonzalolarralde
Type Bug
Status Closed
Resolution Done
Environment

Ubuntu 16.04
Compiling master with android options.

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, Android, Linux, arm
Assignee None
Priority Medium

md5: a53e2a85618c433b254459fa067c02a0

Issue Description:

This error is showing up when trying to compile stdlib for Android (ARM).

For what I understand, __has_attribute would expect for __mode__ to be checked instead of __mode__(DI).

FAILED: /root/swift-source/build/Ninja-ReleaseAssert/llvm-linux-x86_64/./bin/clang++   -DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Istdlib/public/stubs -I/root/swift-source/swift/stdlib/public/stubs -Iinclude -I/root/swift-source/swift/include -I/root/swift-source/llvm/include -I/root/swift-source/build/Ninja-ReleaseAssert/llvm-linux-x86_64/include -I/root/swift-source/build/Ninja-ReleaseAssert/llvm-linux-x86_64/tools/clang/include -I/root/swift-source/llvm/tools/clang/include -I/root/swift-source/cmark/src -I/root/swift-source/build/Ninja-ReleaseAssert/cmark-linux-x86_64/src -isystem /root/libiconv-libicu-android/armeabi-v7a/icu/source/common -isystem /root/libiconv-libicu-android/armeabi-v7a/icu/source/i18n -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -fno-sanitize=all -O3    -UNDEBUG  -fno-exceptions -fno-rtti -Wglobal-constructors -Wexit-time-destructors -fvisibility=hidden -DswiftCore_EXPORTS -target armv7-none-linux-androideabi --sysroot=/root/ndk/android-ndk-r13b/platforms/android-21/arch-arm --sysroot=/root/ndk/android-ndk-r13b/platforms/android-21/arch-arm -B /root/ndk/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/bin/ -O2 -g0 -UNDEBUG -I/root/ndk/android-ndk-r13b/sources/cxx-stl/llvm-libc++/include -I/root/ndk/android-ndk-r13b/sources/cxx-stl/llvm-libc++abi/include -I/root/ndk/android-ndk-r13b/sources/android/support/include -MMD -MT stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-android-armv7.dir/Stubs.cpp.o -MF stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-android-armv7.dir/Stubs.cpp.o.d -o stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-android-armv7.dir/Stubs.cpp.o -c /root/swift-source/swift/stdlib/public/stubs/Stubs.cpp
/root/swift-source/swift/stdlib/public/stubs/Stubs.cpp:399:29: error: missing ')' after '__mode__'
#if __has_attribute(__mode__(DI))
                    ~~~~~~~~^
/root/swift-source/swift/stdlib/public/stubs/Stubs.cpp:399:20: note: to match this '('
#if __has_attribute(__mode__(DI))
                   ^
1 error generated.
@swift-ci
Copy link
Collaborator

@swift-ci swift-ci commented Mar 6, 2017

Comment by Hugh Bellamy (JIRA)

#7923

@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
Projects
None yet
Development

No branches or pull requests

2 participants