You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to compile PhoenixCouchDB on Linux results in the following linking error:
swift build -Xcc -fblocks -Xlinker -L./.build/debug -Xlinker -ldispatch
Linking Executable: .build/debug/CouchDBSample
/root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function _TFC3net13ClientRequest11writeStringfSST_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:93: undefined reference to_TMaC3sys11StringUtils'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:93: undefined reference to _TZFC3sys11StringUtils12toUtf8StringfSSGSqC10Foundation6NSData_' /root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function TFC3net13ClientRequest3endfT_T':
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:113: undefined reference to_TMaC3sys8SysUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:115: undefined reference to TZFC3sys8SysUtils6doOncefTGSpSi_5blockFT_T__T'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:118: undefined reference to _TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:118: undefined reference toTZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData'
/root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function _TFC3net13ClientRequestP33_F30D492D4F6C86365606967E4040E2E69setMethodfT_T_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:173: undefined reference to_TMaC3sys11StringUtils'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:173: undefined reference to _TZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData_' /root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function TFC3net13ClientRequestP33_F30D492D4F6C86365606967E4040E2E612setupHeadersfT_T':
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:180: undefined reference to_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:180: undefined reference to TZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData'
/root/PhoenixCouchDB/.build/debug/net.a(IncomingMessage.swift.o): In function _TFC3net15IncomingMessage10readStringfzT_GSqSS_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:158: undefined reference to_TMaC3sys11StringUtils'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:158: undefined reference to _TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS_' /root/PhoenixCouchDB/.build/debug/net.a(IncomingMessage.swift.o): In function TFC3net15IncomingMessageP33_0DB69186BA427901C78960ECC6DA484B9addHeaderfT_T':
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:192: undefined reference to_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:192: undefined reference to TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:193: undefined reference to _TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS_' /root/PhoenixCouchDB/.build/debug/net.a(UrlParser.swift.o): In functionTFC3net9UrlParserP33_6D2B43A65DE2E776F0AC33CA5C19922C15getValueFromUrlfTC10Foundation6NSData8fieldSetVs6UInt1610fieldIndexS3_9fieldDataVSC26http_parser_url_field_data_GSqSS':
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpParser/UrlParser.swift:104: undefined reference to _TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpParser/UrlParser.swift:104: undefined reference toTZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS'
/root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function globalinit_33_3BDBC4FBD761A43AA84E114F605CA0A9_func0': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:14: undefined reference to_TMaC3sys5Queue'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:14: undefined reference to _TFC3sys5QueueCfT4typeOS_9QueueType5labelGSqSS__S0_' /root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function globalinit_33_3BDBC4FBD761A43AA84E114F605CA0A9_func1':
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:15: undefined reference to_TMaC3sys5Queue' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:15: undefined reference to TFC3sys5QueueCfT4typeOS_9QueueType5labelGSqSS__S0'
/root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function _TFC3net10HttpServer6listenfTSi14notOnMainQueueSb_T_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:53: undefined reference to_TMaC3sys5Queue'
/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:53: undefined reference to `TZFC3sys5Queue18queueIfFirstOnMainfTS0_5blockFT_T__T'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:0: error: link command failed with exit code 1 (use -v to see invocation)
:0: error: build had 1 command failures
error: exit(1): ["/root/swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a-ubuntu15.10/usr/bin/swift-build-tool", "-f", "/root/PhoenixCouchDB/.build/debug/PhoenixCouchDB.o/llbuild.yaml"]
Issue by ricardo-olivieri
Wednesday Feb 03, 2016 at 00:55 GMT
Originally opened as https://github.ibm.com/ibmswift/Phoenix/issues/87
Trying to compile PhoenixCouchDB on Linux results in the following linking error:
swift build -Xcc -fblocks -Xlinker -L./.build/debug -Xlinker -ldispatch
Linking Executable: .build/debug/CouchDBSample
/root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function
_TFC3net13ClientRequest11writeStringfSST_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:93: undefined reference to
_TMaC3sys11StringUtils'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:93: undefined reference to
_TZFC3sys11StringUtils12toUtf8StringfSSGSqC10Foundation6NSData_' /root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function
TFC3net13ClientRequest3endfT_T':/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:113: undefined reference to
_TMaC3sys8SysUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:115: undefined reference to
TZFC3sys8SysUtils6doOncefTGSpSi_5blockFT_T__T'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:118: undefined reference to
_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:118: undefined reference to
TZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData'/root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function
_TFC3net13ClientRequestP33_F30D492D4F6C86365606967E4040E2E69setMethodfT_T_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:173: undefined reference to
_TMaC3sys11StringUtils'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:173: undefined reference to
_TZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData_' /root/PhoenixCouchDB/.build/debug/net.a(ClientRequest.swift.o): In function
TFC3net13ClientRequestP33_F30D492D4F6C86365606967E4040E2E612setupHeadersfT_T':/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:180: undefined reference to
_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/ClientRequest.swift:180: undefined reference to
TZFC3sys11StringUtils26toNullTerminatedUtf8StringfSSGSqC10Foundation6NSData'/root/PhoenixCouchDB/.build/debug/net.a(IncomingMessage.swift.o): In function
_TFC3net15IncomingMessage10readStringfzT_GSqSS_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:158: undefined reference to
_TMaC3sys11StringUtils'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:158: undefined reference to
_TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS_' /root/PhoenixCouchDB/.build/debug/net.a(IncomingMessage.swift.o): In function
TFC3net15IncomingMessageP33_0DB69186BA427901C78960ECC6DA484B9addHeaderfT_T':/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:192: undefined reference to
_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:192: undefined reference to
TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/IncomingMessage.swift:193: undefined reference to
_TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS_' /root/PhoenixCouchDB/.build/debug/net.a(UrlParser.swift.o): In function
TFC3net9UrlParserP33_6D2B43A65DE2E776F0AC33CA5C19922C15getValueFromUrlfTC10Foundation6NSData8fieldSetVs6UInt1610fieldIndexS3_9fieldDataVSC26http_parser_url_field_data_GSqSS':/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpParser/UrlParser.swift:104: undefined reference to
_TMaC3sys11StringUtils' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpParser/UrlParser.swift:104: undefined reference to
TZFC3sys11StringUtils14fromUtf8StringfC10Foundation6NSDataGSqSS'/root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function
globalinit_33_3BDBC4FBD761A43AA84E114F605CA0A9_func0': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:14: undefined reference to
_TMaC3sys5Queue'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:14: undefined reference to
_TFC3sys5QueueCfT4typeOS_9QueueType5labelGSqSS__S0_' /root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function
globalinit_33_3BDBC4FBD761A43AA84E114F605CA0A9_func1':/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:15: undefined reference to
_TMaC3sys5Queue' /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:15: undefined reference to
TFC3sys5QueueCfT4typeOS_9QueueType5labelGSqSS__S0'/root/PhoenixCouchDB/.build/debug/net.a(HttpServer.swift.o): In function
_TFC3net10HttpServer6listenfTSi14notOnMainQueueSb_T_': /root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:53: undefined reference to
_TMaC3sys5Queue'/root/PhoenixCouchDB/Packages/Phoenix-0.1.23/Sources/net/HttpServer.swift:53: undefined reference to `TZFC3sys5Queue18queueIfFirstOnMainfTS0_5blockFT_T__T'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:0: error: link command failed with exit code 1 (use -v to see invocation)
:0: error: build had 1 command failures
error: exit(1): ["/root/swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a-ubuntu15.10/usr/bin/swift-build-tool", "-f", "/root/PhoenixCouchDB/.build/debug/PhoenixCouchDB.o/llbuild.yaml"]
Packages/Phoenix-0.1.23/Makefile:30: recipe for target 'phoenix' failed
make[1]: *** [phoenix] Error 1
make[1]: Leaving directory '/root/PhoenixCouchDB'
Makefile:8: recipe for target 'make' failed
make: *** [make] Error 2
root@a53a8b04758d:~/PhoenixCouchDB#
The text was updated successfully, but these errors were encountered: