crystal-lang/crystal

Getting "object file <FILE.o> was built for newer OSX version (15.0) than being linked (10.11)"

Closed this issue · 9 comments

Mac OS X El Capitan 10.11 Beta (15A279b)
$ crystal -v
Crystal 0.7.7 [170f859] (Sat Sep  5 02:46:31 UTC 2015)

Running the http server sample:

require "http/server"

server = HTTP::Server.new(8080) do |request|
  HTTP::Response.ok "text/plain", "Hello world! The time is #{Time.now}"
end

puts "Listening on http://0.0.0.0:8080"
server.listen

Output:

$ crystal run server.cr
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/main.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/UInt64.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/StaticArray40Int8443225641.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Int841.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Array40Int3241.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/String5858Builder.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/String.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/GC.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Slice40T41.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Slice40UInt841.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Math.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Int32.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40UInt841.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IndexError.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/ArgumentError.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Array40String41.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40LibABI5858UnwindException41.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Exception.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/StaticArray40UInt844326541.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/DivisionByZero.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40String41.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Int3241.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Array40Pointer40Void4141.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Pointer40Void4141.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Fiber.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Void41.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Array40Fiber41.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Fiber41.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Event5858Base.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Int64.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Errno.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Scheduler.o) was built for newer OSX version (15.0) than being linked (10.11)


ld: warning: ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/FileDescriptorIO.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/LibEvent25858EventFlags.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Bool.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Event5858Event.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IO5858Timeout.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Signal.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IO5858Error.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/40Int3232456232Void41.o) was built for newer OSX version (15.0) than being linked (10.11)

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Event5858SignalHandler.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/AtExitHandlers.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Array404032456232Void4141.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer404032456232Void4141.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/StaticArray40UInt84432441.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/UInt8.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning: ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Exception43.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Base645858Error.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/SocketError.o) was built for newer OSX version (15.0) than being linked (10.11)


ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/ChannelClosed.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TimeFormat5858Error.o) was built for newer OSX version (15.0) than being linked (10.11)
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IO5858EOFError.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/GlobError.o) was built for newer OSX version (15.0) than being linked (10.11)


ld: warning: ld: warning: ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IO5858Error43.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/KeyError.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/DomainError.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/InvalidByteSequenceError.o) was built for newer OSX version (15.0) than being linked (10.11)



ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/EmptyEnumerable.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858Server.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning:
ld: warning:
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Time.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TimeFormat.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning:

object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TimeFormat5858Formatter.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/CharReader.o) was built for newer OSX version (15.0) than being linked (10.11)
ld: warning:
ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/UInt32.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Char.o) was built for newer OSX version (15.0) than being linked (10.11)
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Time5858Kind.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858Response.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858Headers.o) was built for newer OSX version (15.0) than being linked (10.11)
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Hash40String4432Array40String4141.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Pointer40Hash5858-4cdf82d86fa7f97438c39d7a7ec11f32.o) was built for newer OSX version (15.0) than being linked (10.11)


ld: warning: ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Hash5858Entry40String4432Array40String4141.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Hash5858StandardComparator.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TCPServer.o) was built for newer OSX version (15.0) than being linked (10.11)
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/IPSocket5858DnsRequestCbArg.o) was built for newer OSX version (15.0) than being linked (10.11)


ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/Nil.o) was built for newer OSX version (15.0) than being linked (10.11)ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TCPSocket43.o) was built for newer OSX version (15.0) than being linked (10.11)
object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858Request.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/String5858ToU64Info.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858FixedLengthContent.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning: ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858ChunkedContent.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP5858UnknownLengthContent.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/StaticArray40UInt84432204841.o) was built for newer OSX version (15.0) than being linked (10.11)

ld: warning:
ld: warning: ld: warning: object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/HTTP.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/LEBReader.o) was built for newer OSX version (15.0) than being linked (10.11)object file (./.crystal/Users/deverly/Documents/Dev/Crystal/server.cr/TCPSocket.o) was built for newer OSX version (15.0) than being linked (10.11)


Listening on http://0.0.0.0:8080
jhass commented

Looks like "just" warnings then? I'll mark this as enhancement until we can correlate faulty behaviour to it (see #994).

If anybody has any clues on how to get rid of the warning...

For now I've just been redirecting STDERR to /dev/null

crystal build test.cr 2>/dev/null

I suspect the warnings are related to having a beta Xcode 7 installed.

@jhass I would close #994 for now

This is just a harmless warning and eventually will be fixed with latest Xcode 7, I would not worry much about this for now.

jhass commented

Alright, closing, probably nothing we can do anything about. If anybody knows a way to avoid or suppress it, feel free to share it anyway.

I've just installed the latest xcode update and getting these errors now as well

ld: warning: ld: warning: object file (./.crystal/Users/benoist/.....GroupResult.o) was built for newer OSX version (14.5) than being linked (10.10)

Should it be about removing the old Xcode or something?