Mac iOS ld linker issue?

Yesterday, I did several successful iOS builds, but a some point, the packager started showing a ton of warnings like the ones below. I’ve tried a full rebuild, rolling back to an older changelist and deleting intermediate files, but it seems to make no difference. I’ve also tried deleting the libOpus.a file to have Setup.command refetch it, but it still has the same issue. Other libs like libPhysX3Common.a show the same type of warning, but I’ve only included a portion of the log. The packager (“Packaging project for iOS …”) hangs forever after these lines. XCode 13 was rolled out to my Mac this week and has already caused me other headaches. Could there be braking changes in the ld linker?

% ld -v
@(#)PROGRAM:ld  PROJECT:ld64-711
BUILD 14:59:24 Aug 21 2021
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 13.0.0, (clang-1300.0.29.3) (static support for 27, runtime is 27)
TAPI support using: Apple TAPI version 13.0.0 (tapi-1300.0.6.5)
UATHelper: Packaging (iOS):   ld: warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(LP_variable_cutoff.o)
UATHelper: Packaging (iOS):   !dbg attachment points at wrong subprogram for function
UATHelper: Packaging (iOS):   !33 = distinct !DISubprogram(name: "silk_solve_LDL_FLP", scope: !34, file: !34, line: 73, type: !35, scopeLine: 79, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !42)
UATHelper: Packaging (iOS):   void (float*, i32, float*, float*)* @silk_solve_LDL_FLP
UATHelper: Packaging (iOS):     br i1 %55, label %56, label %42, !dbg !148, !llvm.loop !159
UATHelper: Packaging (iOS):   !160 = !DILocation(line: 176, column: 13, scope: !147)
UATHelper: Packaging (iOS):   !147 = distinct !DILexicalBlock(scope: !139, file: !34, line: 176, column: 13)
UATHelper: Packaging (iOS):   !57 = distinct !DISubprogram(name: "silk_LDL_FLP", scope: !34, file: !34, line: 156, type: !58, scopeLine: 162, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !60)
UATHelper: Packaging (iOS):   ld: warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(solve_LS_FLP.o)
PackagingResults: Warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(LP_variable_cutoff.o)
PackagingResults: Warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(solve_LS_FLP.o)
UATHelper: Packaging (iOS):   !dbg attachment points at wrong subprogram for function
UATHelper: Packaging (iOS):   !50 = distinct !DISubprogram(name: "silk_pitch_analysis_core_FLP", scope: !51, file: !51, line: 67, type: !52, scopeLine: 81, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !61)
UATHelper: Packaging (iOS):   i32 (float*, i32*, i16*, i8*, float*, i32, float, float, i32, i32, i32, i32)* @silk_pitch_analysis_core_FLP
UATHelper: Packaging (iOS):     br i1 %72, label %57, label %73, !dbg !320, !llvm.loop !332
UATHelper: Packaging (iOS):   !333 = !DILocation(line: 176, column: 5, scope: !319)
UATHelper: Packaging (iOS):   !319 = distinct !DILexicalBlock(scope: !304, file: !305, line: 176, column: 5)
UATHelper: Packaging (iOS):   !304 = distinct !DISubprogram(name: "silk_float2short_array", scope: !305, file: !305, line: 169, type: !306, scopeLine: 174, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !308)
UATHelper: Packaging (iOS):   ld: warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(pitch_analysis_core_FLP.o)
PackagingResults: Warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(pitch_analysis_core_FLP.o)
UATHelper: Packaging (iOS):   !dbg attachment points at wrong subprogram for function
UATHelper: Packaging (iOS):   !136 = distinct !DISubprogram(name: "silk_VAD_GetSA_Q8", scope: !46, file: !46, line: 80, type: !137, scopeLine: 84, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !337)
UATHelper: Packaging (iOS):   i32 (%struct.silk_encoder_state*, i16*)* @silk_VAD_GetSA_Q8
UATHelper: Packaging (iOS):     br i1 %182, label %183, label %127, !dbg !512, !llvm.loop !549
UATHelper: Packaging (iOS):   !550 = !DILocation(line: 315, column: 5, scope: !513)
UATHelper: Packaging (iOS):   !513 = distinct !DILexicalBlock(scope: !486, file: !46, line: 315, column: 5)
UATHelper: Packaging (iOS):   !486 = distinct !DISubprogram(name: "silk_VAD_GetNoiseLevels", scope: !46, file: !46, line: 299, type: !487, scopeLine: 303, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !490)
UATHelper: Packaging (iOS):   ld: warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(VAD.o)
PackagingResults: Warning: ignoring invalid debug info in /xxxxxxxxxxxxx/UnrealEngine/Engine/Source/ThirdParty/libOpus/opus-1.1//IOS/libOpus.a(VAD.o)
1 Like

Did you find out what the issue was? Did you solve it?

Bumping this, was this ever solved? Getting the same issue in Jan 2023.

Hi! Did you find a solution? Currently have the same issue