You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
armArchitecture: any ARMarmv7Architecture: ARMv7bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software
I ran the compilation of that specific file from gdb, and it fails somewhere on an assertion. Any clues on why this happens, and what I might be able to do about it?
$sudogdb --args /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/bin/swift
-frontend -c /home/pi/swift-source/swift/stdlib/public/SwiftOnoneSupport/SwiftOnoneSupport.swift -disable-objc-attr-requires-foundation-module -targetarmv7-unknown-linux-gnueabihf -
disable-objc-interop -sdk / -I /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./lib/swift/linux/armv7 -module-cache-path /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./module-cache -module-link-nameswiftSwiftOnoneSupport -parse-stdlib -resource-dir /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./lib/swift -DINTERNAL_CHECKS_ENABLED -sil-serialize-all -color-diagnostics -O -parse-as-library -module-nameSwiftOnoneSupport -o /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/stdlib/public/SwiftOnoneSupport/linux/armv7/SwiftOnoneSupport.oGNUgdb (Raspbian7.7.1+dfsg-5+rpi1) 7.7.1Copyright (C) 2014FreeSoftwareFoundation, Inc.
LicenseGPLv3+: GNUGPLversion3orlater <http://gnu.org/licenses/gpl.html>Thisisfreesoftware: youarefreetochangeandredistributeit.
ThereisNOWARRANTY, totheextentpermittedbylaw. Type"show copying"and"show warranty"fordetails.
ThisGDBwasconfiguredas"arm-linux-gnueabihf".
Type"show configuration"forconfigurationdetails.
Forbugreportinginstructions, pleasesee:
<http://www.gnu.org/software/gdb/bugs/>.FindtheGDBmanualandotherdocumentationresourcesonlineat:
<http://www.gnu.org/software/gdb/documentation/>.Forhelp, type"help".
Type"apropos word"tosearchforcommandsrelatedto "word"...Reading symbols from /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/bin/swift...(no debugging symbols found)...done.(gdb) runStarting program: /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/bin/swift -frontend -c /home/pi/swift-source/swift/stdlib/public/SwiftOnoneSupport/SwiftOnoneSupport.swift -disable-objc-attr-requires-foundation-module -target armv7-unknown-linux-gnueabihf -disable-objc-interop -sdk / -I /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./lib/swift/linux/armv7 -module-cache-path /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./module-cache -module-link-name swiftSwiftOnoneSupport -parse-stdlib -resource-dir /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/./lib/swift -D INTERNAL_CHECKS_ENABLED -sil-serialize-all -color-diagnostics -O -parse-as-library -module-name SwiftOnoneSupport -o /home/pi/swift-source/build/buildbot_linux/swift-linux-armv7/stdlib/public/SwiftOnoneSupport/linux/armv7/SwiftOnoneSupport.o[Thread debugging using libthread_db enabled]Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".[New Thread 0x75615410 (LWP 2545)]swift: /home/pi/swift-source/swift/include/swift/SIL/SILValue.h:139: swift::ValueBase::~ValueBase(): Assertion `use_empty() && "Cannotdestroyavaluethatstillhasuses!"' failed.Program received signal SIGABRT, Aborted.[Switching to Thread 0x75615410 (LWP 2545)]0x76c5df70 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:5656 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.(gdb) bt#​0 0x76c5df70 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56#​1 0x76c5f324 in __GI_abort () at abort.c:89#​2 0x76c56d98 in __assert_fail_base (fmt=0x0, assertion=0x3b44b61 "use_empty() && \"Cannot destroy a value that still has uses!\"", assertion@entry=0x0, file=0x1 <error: Cannotaccessmemoryataddress0x1>,
file@entry=0x75615410"\001", line=139, line@entry=1993793684,
function=function@entry=0x3b44b9e "swift::ValueBase::~ValueBase()")
atassert.c:92
#​30x76c56e74in__GI___assert_fail (assertion=0x0, file=0x75615410"\001",
line=1993793684, function=0x3b44b9e"swift::ValueBase::~ValueBase()")
atassert.c:101
#​40x00c31854inswift::SILVisitor<(anonymousnamespace)::InstructionDestroyer, void>::visit(swift::ValueBase*) ()
#​50x00c2e6e4inswift::SILInstruction::destroy(swift::SILInstruction*) ()
#​60x00c1768cinswift::SILFunction::~SILFunction() ()
#​70x00c4867cinswift::SILModule::~SILModule() ()
#​80x000a3e4cinstd::thread::_Impl<std::_Bind_simple<performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, llvm::GlobalVariable**, unsignedint)::$_5 ()> >::_M_run() ()
#​90x76e43348in ?? () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6Backtracestopped: previousframeidenticaltothisframe (corruptstack?)
(gdb)
The text was updated successfully, but these errors were encountered:
Just to add more info, on the same board (RaspberryPi 2 or 3, ARMv7 boards) but with Ubuntu 16.04 the build completes correctly and that file is being compiled.
Since the trace is referring to SIL, I've verified that in both cases (swift compiled on ubuntu and jessie) the canonical SIL generated with -emit-sil is the same: supp_working.txt, but as explained above the full compilation of swift/stdlib/public/SwiftOnoneSupport/SwiftOnoneSupport.swift fails on Jessie.
armArchitecture: any ARMarmv7Architecture: ARMv7bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software
Attachment: Download
Additional Detail from JIRA
md5: 3c12dd6ff752f2642cec661d6b8b7c61
Issue Description:
I'm trying to build Swift 3.1 on Raspberry Pi 3 / Raspbian Jessie. I'm building from "swift-3.1-branch" using https://github.com/uraimo/buildSwiftOnARM.
When compiling I got stuck on the following point:
I ran the compilation of that specific file from gdb, and it fails somewhere on an assertion. Any clues on why this happens, and what I might be able to do about it?
The text was updated successfully, but these errors were encountered: