-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't build Crystal in release mode (LLVM >= 3.9) #3890
Comments
Thanks for the heads up Julien. @ggiraldez maybe you can contribute an additional pair of eyes to this? :) |
I reproduced and fixed one: missing a location on |
I found most of them. Only one left. |
@ysbaddaden I still get this problem with Crystal 0.21.1, is that normal? |
@soveran to build crystal? or do you hit this error in a project? We still have the error pop up. Can you try the latest master? If it doesn't pass, please reduce/report the issue. |
@ysbaddaden I compiled Crystal from master without issues, then tried to compile |
Can you report the issue, with a way to reproduce or (hopefully) a reduced example? |
Here's a somewhat reduced example: require "http/server"
module Example
abstract class Router
def self.call(context : HTTP::Server::Context)
context.response.content_type = "text/plain"
context.response.print "hello world"
end
def self.run(*args)
server = HTTP::Server.new(*args) do |context|
call(context)
end
Signal::INT.trap do
server.close
exit
end
puts "#{name} - Listening on port #{server.port}"
server.listen
end
end
end
class Demo < Example::Router
end
Demo.run(8080) It runs fine when passed
|
@asterite Excellent, it works with master :-) Thanks! |
Since #3831 we can't build Crystal in release mode with LLVM >= 3.9 (unless we pass
--no-debug
) because some calls are still missing a!dbg
location. For example:I'm trying to investigate, but this ain't easy to track.
The text was updated successfully, but these errors were encountered: