Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Linux Build #31

Open
samdeane opened this issue Feb 21, 2020 · 1 comment
Open

Fix Linux Build #31

samdeane opened this issue Feb 21, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@samdeane
Copy link
Member

Tests are failing for the Linux build with my standard Tests.yml setup.

Need to look into this...

@samdeane samdeane added the bug Something isn't working label Feb 21, 2020
@xanderdunn
Copy link

xanderdunn commented Sep 22, 2020

I am hitting this issue.

Using Swift for Tensorflow 0.10, which is a Swift 5.3 dev branch:

$ which swift
/home/xander/swift-tensorflow-RELEASE-0.10-cuda10.2-cudnn7-ubuntu18.04/usr/bin/swift
$ swift --version
Swift version 5.3-dev (LLVM 55d27a5828, Swift 6a5d84ec08)
Target: x86_64-unknown-linux-gnu

On Ubuntu 18.04, DictionaryCoding 1.0.9:

.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:955:27: error
: cannot find 'kCFBooleanTrue' in scope
            if number === kCFBooleanTrue as NSNumber {
                          ^~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:957:34: error
: cannot find 'kCFBooleanFalse' in scope
            } else if number === kCFBooleanFalse as NSNumber {
                                 ^~~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:976:59: error
: cannot find 'kCFBooleanTrue' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                          ^~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:976:86: error
: cannot find 'kCFBooleanFalse' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                                                     ^~~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:991:59: error
: cannot find 'kCFBooleanTrue' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                          ^~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:991:86: error
: cannot find 'kCFBooleanFalse' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                                                     ^~~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:1006:59: erro
r: cannot find 'kCFBooleanTrue' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                          ^~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:1006:86: erro
r: cannot find 'kCFBooleanFalse' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                                                     ^~~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:1021:59: erro
r: cannot find 'kCFBooleanTrue' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                          ^~~~~~~~~~~~~~
.build/checkouts/DictionaryCoding/Sources/DictionaryCoding/DictionaryDecoder.swift:1021:86: erro
r: cannot find 'kCFBooleanFalse' in scope
        guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
                                                                                     ^~~~~~~~~~~~~~~

I tired older versions back to 1.0.0, same errors.

This appears related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants