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
Compile fails on src/economy.cpp:702:20: error: expected expression #6880
Comments
selected ./configure output (LordAro asked for just flags)
|
$ clang -v |
$ clang -v | head -n1 | sed s@[^0-9]@@g | cut -c 1-2 |
clang -v 2>&1 | head -n1 | sed s@[^0-9]@@g | cut -c 1-2 |
Workaround / fix, thanks to lethosor and michicc CC=clang CXX=clang++ LDFLAGS="-liconv" ./configure Then the build works. My mac OS is 10.13.6. lethosor has 10.13 also, and can build clean from OpenTTD master around 27c4f55 |
I'm building exactly 27c4f55. For reference, here is andythenorth's linker command (without the LDFLAGS above) and here is mine. The only notable difference is the -liconv near the end of mine. It's worth noting that I did not modify LDFLAGS myself at all (just ran ./configure and make), so something odd is causing -liconv not to be added properly on some machines. |
maybe you should compare the output of your ./configure runs |
New fun. Apple upgraded clang. Apple LLVM version 10.0.0 (clang-1000.11.45.2) This now fails again, same error as originally posted in the issue. Also fails on LordAro's fixed branch. nielsm suggested adding 'CXXFLAGS=-std=c++11' to configure flags, which works. Currently I'm not sure all of the following flags are needed, but it compiles, and I need to sleep :P |
The text was updated successfully, but these errors were encountered: