Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang/llvm generates undefined symbol #7778

Closed Quuxplusone closed 14 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR7334
Status RESOLVED DUPLICATE of bug 7353
Importance P normal
Reported by Stuart Hastings (stuart@apple.com)
Reported on 2010-06-09 12:40:14 -0700
Last modified on 2010-06-14 15:14:24 -0700
Version unspecified
Hardware PC All
CC anton@korobeynikov.info, llvm-bugs@lists.llvm.org, nicolas@gandogames.com
Fixed by commit(s)
Attachments GameEntity.mii.zip (224475 bytes, application/zip)
Blocks
Blocked by
See also
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
Quuxplusone commented 14 years ago

Bug Filed by Nicolas Goles Domic, using Stuart account.

Quuxplusone commented 14 years ago

Sorry, but it seems there is no "/Users/mrgando" directory on this PC. Please provide a preprocessed source at least.

Also, LLVM 2.0 is pretty old and I doubt it contained clang at that time...

Quuxplusone commented 14 years ago

Attached GameEntity.mii.zip (224475 bytes, application/zip): Preprocessed output

Quuxplusone commented 14 years ago

_This bug has been marked as a duplicate of bug 7353_