I'm not sure the Xcode assembler support s the .weak directive. I think if clang is targeting darwin it will not generate this directive, but since we are targeting -ccc-host-triple x86_64-pc-win32-macho it may be getting generated.
Not sure if it is possible to turn o __weak_alias when you build with Xcode? Andrew Fish On Nov 29, 2012, at 2:45 PM, e...@ragequ.it wrote: > Hi, > > I'm having problems building the AppPkg with current Xcode/Clang on Mac OS X > 10.8.2. Something seems to be broken with Clang's __weak_alias(). Does > anybody have any suggestions? > > egon > > ---- > > $ build -p AppPkg/AppPkg.dsc > Build environment: Darwin-12.2.0-x86_64-i386-64bit > Build start time: 01:01:05, Nov.30 2012 > > WORKSPACE = /Users/x/edk2new > ECP_SOURCE = /Users/x/edk2new/EdkCompatibilityPkg > EDK_SOURCE = /Users/x/edk2new/EdkCompatibilityPkg > EFI_SOURCE = /Users/x/edk2new/EdkCompatibilityPkg > EDK_TOOLS_PATH = /Users/x/edk2new/BaseTools > > > Architecture(s) = X64 > Build target = DEBUG > Toolchain = XCLANG > > Active Platform = /Users/x/edk2new/AppPkg/AppPkg.dsc > > Processing meta-data .. done! > Building ... /Users/x/edk2new/MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... /Users/x/edk2new/MdePkg/Library/BaseLib/BaseLib.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... /Users/x/edk2new/MdePkg/Library/BasePrintLib/BasePrintLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... /Users/x/edk2new/MdePkg/Library/UefiLib/UefiLib.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... > /Users/x/edk2new/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf > [X64] > make: Nothing to be done for `tbuild'. > Building ... /Users/x/edk2new/AppPkg/Applications/Hello/Hello.inf [X64] > make: Nothing to be done for `tbuild'. > Building ... /Users/x/edk2new/StdLib/LibC/gdtoa/gdtoa.inf [X64] > "/usr/bin/clang" -ccc-host-triple x86_64-pc-win32-macho -c -g -O0 -Wall > -Werror -include AutoGen.h -fno-stack-protector -fno-builtin -fshort-wchar > -mdynamic-no-pic -Wno-empty-body -Wno-pointer-sign -Wno-unused-function > -Wno-unused-value -Wno-missing-braces -Wno-tautological-compare -Wreturn-type > -Wno-unused-variable > -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -nostdinc > -nostdlib -DUEFI_C_SOURCE -o > /Users/x/edk2new/Build/AppPkg/DEBUG_XCLANG/X64/StdLib/LibC/gdtoa/gdtoa/OUTPUT/./strtof.obj > -I/Users/x/edk2new/StdLib/LibC/gdtoa > -I/Users/x/edk2new/Build/AppPkg/DEBUG_XCLANG/X64/StdLib/LibC/gdtoa/gdtoa/DEBUG > -I/Users/x/edk2new/StdLib -I/Users/x/edk2new/StdLib/Include > -I/Users/x/edk2new/StdLib/Include/X64 > -I/Users/x/edk2new/StdLibPrivateInternalFiles > -I/Users/x/edk2new/StdLibPrivateInternalFiles/Include > -I/Users/x/edk2new/StdLibPrivateInternalFiles/Include/X64 > -I/Users/x/edk2new/MdePkg -I/Users/x/edk2new/MdePkg/Include > -I/Users/x/edk2new/MdePkg/Include/X64 /Users/x/edk > <inline asm>:1:1: error: unknown directive > .weak alias > ^ > 1 error generated. > make: *** > [/Users/x/edk2new/Build/AppPkg/DEBUG_XCLANG/X64/StdLib/LibC/gdtoa/gdtoa/OUTPUT/strtof.obj] > Error 1 > > > build.py... > : error 7000: Failed to execute command > make tbuild > [/Users/x/edk2new/Build/AppPkg/DEBUG_XCLANG/X64/StdLib/LibC/gdtoa/gdtoa] > > > build.py... > : error F002: Failed to build module > /Users/x/edk2new/StdLib/LibC/gdtoa/gdtoa.inf [X64, XCLANG, DEBUG] > > - Failed - > Build end time: 01:01:08, Nov.30 2012 > Build total time: 00:00:03 > > $ clang --version > Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) > Target: x86_64-apple-darwin12.2.0 > Thread model: posix > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > VERIFY Test and improve your parallel project with help from experts > and peers. http://goparallel.sourceforge.net > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel