Re: [swift-users] Sporadically undefined symbols during linking

2016-04-02 Thread Daniel Dunbar via swift-users
Are you saying that it fails about 75% of the time even when building from 
clean, or it fails overall 75% of the time and you have to build from clean to 
fix? In my experiments it always fails when building just ostrichframework. My 
guess is that if you build in the IDE you are seeing it sometimes stop based on 
one failure and other times stop based on another failure.

Can you open a bug on bugreporter.apple.com about this (and let me know the #), 
I do see some surprising behavior on your project.

 - Daniel

> On Apr 1, 2016, at 7:19 PM, Ryan Conway via swift-users 
>  wrote:
> 
> Hey swift-users,
> 
> I'm experiencing a linking issue that causes builds to sometimes complete and 
> sometimes fail, without code changes. I'm not sure if the problem is with 
> Swift, Xcode, or my usage of either.
> 
> My Xcode 7.3 project target is a Swift framework with no dependencies other 
> than Foundation. Compiling always succeeds, but linking fails about 75% of 
> the time with errors like the following:
> 
> Undefined symbols for architecture x86_64: 
> "__TWPuRx16ostrichframework11OperandTypexS_8ReadablexS_9WriteablewxPS1_8ReadTypezVs6UInt16wxPS2_9WriteTypezS4_ERRzS4_ERRzS4_ERRzSiERRzSiERRzSiERRzSirGVS_5DEC16x_S_11InstructionS_",
>  referenced from:
>   ostrichframework.Z80.getInstruction () -> ostrichframework.Instruction? 
> in Z80.o
> ld: symbol(s) not found for architecture x86_64
> 
> The other 25% of the time, the framework will be built fine, with its user 
> application working as expected.
> 
> Has anyone experienced issues like this, or does anyone have advice on 
> troubleshooting it? I've tried cleaning, deleting DerivedData, and building 
> on a different machine, to no avail.
> 
> If it helps, the failing project is "ostrichframework" found in the Xcode 
> workspace here: https://github.com/PumpMagic/ostrich 
> 
> 
> Any help is greatly appreciated.
> 
> Ryan
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


[swift-users] Sporadically undefined symbols during linking

2016-04-01 Thread Ryan Conway via swift-users
Hey swift-users,

I'm experiencing a linking issue that causes builds to sometimes complete
and sometimes fail, without code changes. I'm not sure if the problem is
with Swift, Xcode, or my usage of either.

My Xcode 7.3 project target is a Swift framework with no dependencies other
than Foundation. Compiling always succeeds, but linking fails about 75% of
the time with errors like the following:

Undefined symbols for architecture x86_64:
"__TWPuRx16ostrichframework11OperandTypexS_8ReadablexS_9WriteablewxPS1_8ReadTypezVs6UInt16wxPS2_9WriteTypezS4_ERRzS4_ERRzS4_ERRzSiERRzSiERRzSiERRzSirGVS_5DEC16x_S_11InstructionS_",
referenced from:
  ostrichframework.Z80.getInstruction () ->
ostrichframework.Instruction? in Z80.o
ld: symbol(s) not found for architecture x86_64

The other 25% of the time, the framework will be built fine, with its user
application working as expected.

Has anyone experienced issues like this, or does anyone have advice on
troubleshooting it? I've tried cleaning, deleting DerivedData, and building
on a different machine, to no avail.

If it helps, the failing project is "ostrichframework" found in the Xcode
workspace here: https://github.com/PumpMagic/ostrich

Any help is greatly appreciated.

Ryan
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users