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

OpenTTD doesn't start when compiled with CLang #5984

Closed
DorpsGek opened this issue Apr 13, 2014 · 4 comments
Closed

OpenTTD doesn't start when compiled with CLang #5984

DorpsGek opened this issue Apr 13, 2014 · 4 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

NG opened the ticket and wrote:

clang 3.2, Ubuntu 13.10, OpenTTD r26462, build commands: CC=clang CXX=clang++ ./configure && make && sudo make install, all dependencies installed via "sudo apt-get build-dep openttd".
Running "openttd" afterwards has no apparent effect except fully loading one CPU core. Running "openttd -d 4" only produces the following output:
dbg: [misc] /home//trunk.hg/ added as search path
dbg: [misc] /home/
/.openttd/ added as search path
dbg: [misc] /usr/local/share/games/openttd/ added as search path
dbg: [misc] /home//.openttd/ found as config directory
dbg: [misc] /home/
/.openttd/ found as personal directory
dbg: [misc] Scanning for tars
dbg: [misc] Found tar '/home/***/.openttd/content_download/baseset/OpenGFX-0.5.0.tar' with 8 new files
dbg: [misc] Scan complete, found 1 files

"openttd -D -d 4" only adds "dbg: [net] Starting dedicated version h915d0f5d" to that.

Will do some bisection testing tomorrow.

Reported version: trunk
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/5984
@DorpsGek
Copy link
Member Author

Rubidium wrote:

I think this is a bug in clang 3.2: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709212
Try a later version of clang before trying to bisect it, since that will probably end up finding the moment the fgets got added. Alternatively you could try to build a high level debug build (./configure --enable-debug=3) to see whether it goes away.

A build made with clang 3.3 works just fine for me.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5984#comment13235

@DorpsGek
Copy link
Member Author

NG wrote:

--enable-debug=3 works. No luck on my end with clang 3.3 or 3.4.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5984#comment13237

@DorpsGek
Copy link
Member Author

LordAro wrote:

For reference, it's a bug with the debian version of clang - the standard (arch linux) version works fine


This comment was imported from FlySpray: https://bugs.openttd.org/task/5984#comment13239

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Won't fix

Bug in the compiler


This comment was imported from FlySpray: https://bugs.openttd.org/task/5984

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant