[LLVMbugs] [Bug 7334] New: clang/llvm generates undefined symbol

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 9 10:40:15 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7334

           Summary: clang/llvm generates undefined symbol
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stuart at apple.com
                CC: llvmbugs at cs.uiuc.edu


LLVM 2.0 generates undef symbol in .s file - assembler complains

Script to replicate bug.

#!/bin/sh

set -x

# "/Xcode4/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -E -disable-free
-disable-llvm-verifier -main-file-name GameEntity.mm -pic-level 1
-mdisable-fp-elim -masm-v\
erbose -target-cpu yonah -v -g -resource-dir /Xcode4/usr/lib/clang/2.0
-isysroot
/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
-iquote /\
Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/Ga\
ndoEngine-generated-files.hmap -iquote
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/De\
bug-iphonesimulator/GandoEngine.build/GandoEngine-project-headers.hmap -iquote.
-iquoteClasses -iquoteShaders -iquoteClasses/Box2D
-iquoteClasses/Box2D/Collision -iquoteCl\
asses/Box2D/Common -iquoteClasses/Box2D/Dynamics
-iquoteClasses/Box2D/Collision/Shapes -iquoteClasses/Box2D/Dynamics/Contacts
-iquoteClasses/Box2D/Dynamics/Joints -include\
-pth
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/PrecompiledHeaders/GandoEngine_Prefix-dkqiebwueekpweflhiwtyxlkhxdw/G\
andoEngine_Prefix.pch.pth -DDEBUG -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200
-DTARGET_OS_IPHONE
-I/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcuk\
kgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/GandoEngine-own-target-headers.hmap
-I/Users/mrgando/Library/Developer/Xcode\
/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/GandoEngine-all-target-headers.hmap
-F/\
Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Products/Debug-iphonesimulator
-I/Users/mrgando/Library/Developer/Xcode/De\
rivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Products/Debug-iphonesimulator/include
-I. -IClasses -IShaders -IClasses/Box2D -IClasses/Box2D/Collision -IClasses\
/Box2D/Common -IClasses/Box2D/Dynamics -IClasses/Box2D/Collision/Shapes
-IClasses/Box2D/Dynamics/Contacts -IClasses/Box2D/Dynamics/Joints
-I/usr/include/my_boost -I/Users/\
mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/DerivedS\
ources/i386
-I/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/Gando\
Engine.build/DerivedSources -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fdiagnostics-print-source-range-inf\
o -stack-protector 1 -fblocks -fexceptions -fobjc-nonfragile-abi
-fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-category id -o
GameEntity.mii -x objective-c\
++ /Users/mrgando/Programming/iPhone/Prototypes/Gengine/Classes/GameEntity.mm

 "/Xcode4/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -S -disable-free
-disable-llvm-verifier -main-file-name GameEntity.mm -pic-level 1
-mdisable-fp-elim -masm-ve\
rbose -target-cpu yonah -v -g -resource-dir /Xcode4/usr/lib/clang/2.0 -O0
-Wno-trigraphs -Wreturn-type -Wunused-variable -ferror-limit 19
-fmessage-length 0 -fvisibility h\
idden -fdiagnostics-print-source-range-info -stack-protector 1 -fblocks
-fexceptions -fobjc-nonfragile-abi -fpascal-strings -fdiagnostics-show-option
-fdiagnostics-show-ca\
tegory id -o GameEntity.s -x objective-c++-cpp-output GameEntity.mii


 "/Xcode4/usr/bin/clang" -cc1as -triple i386-apple-darwin10.0.0 -filetype obj
-relax-all -o
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcb\
biifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/Objects-normal/i386/GameEntity.o
GameEntity.s


#clang -cc1as: fatal error: error in backend: symbol
'__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_' can not be
undefined in a subtraction expression

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list