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

Fail to build Flatpak for openttd 1.11.0-beta1 #8612

Closed
ghisvail opened this issue Jan 26, 2021 · 3 comments
Closed

Fail to build Flatpak for openttd 1.11.0-beta1 #8612

ghisvail opened this issue Jan 26, 2021 · 3 comments

Comments

@ghisvail
Copy link
Contributor

@ghisvail ghisvail commented Jan 26, 2021

Version of OpenTTD

1.11.0-beta1

Steps to reproduce

I have tried to rebuild the Flatpak release of OpenTTD with the latest beta. Version 1.10.3 builds fine with ICU version 68.2. The same manifest fails to build with version 1.11.0-beta1 and the change to the new CMake-based build system.

Problems happen at the linking stage and point towards ICU:

[700/700] Linking CXX executable openttd
FAILED: openttd 
: && /usr/bin/c++ -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -rdynamic CMakeFiles/openttd.dir/generated/rev.cpp.o CMakeFiles/openttd.dir/src/script/api/script_accounting.cpp.o CMakeFiles/openttd.dir/src/script/api/script_admin.cpp.o CMakeFiles/openttd.dir/src/script/api/script_airport.cpp.o CMakeFiles/openttd.dir/src/script/api/script_base.cpp.o CMakeFiles/openttd.dir/src/script/api/script_basestation.cpp.o CMakeFiles/openttd.dir/src/script/api/script_bridge.cpp.o CMakeFiles/openttd.dir/src/script/api/script_bridgelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_cargo.cpp.o CMakeFiles/openttd.dir/src/script/api/script_cargolist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_cargomonitor.cpp.o CMakeFiles/openttd.dir/src/script/api/script_client.cpp.o CMakeFiles/openttd.dir/src/script/api/script_clientlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_company.cpp.o CMakeFiles/openttd.dir/src/script/api/script_companymode.cpp.o CMakeFiles/openttd.dir/src/script/api/script_controller.cpp.o CMakeFiles/openttd.dir/src/script/api/script_date.cpp.o CMakeFiles/openttd.dir/src/script/api/script_depotlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_engine.cpp.o CMakeFiles/openttd.dir/src/script/api/script_enginelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_error.cpp.o CMakeFiles/openttd.dir/src/script/api/script_event.cpp.o CMakeFiles/openttd.dir/src/script/api/script_event_types.cpp.o CMakeFiles/openttd.dir/src/script/api/script_execmode.cpp.o CMakeFiles/openttd.dir/src/script/api/script_game.cpp.o CMakeFiles/openttd.dir/src/script/api/script_gamesettings.cpp.o CMakeFiles/openttd.dir/src/script/api/script_goal.cpp.o CMakeFiles/openttd.dir/src/script/api/script_group.cpp.o CMakeFiles/openttd.dir/src/script/api/script_grouplist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_industry.cpp.o CMakeFiles/openttd.dir/src/script/api/script_industrylist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_industrytype.cpp.o CMakeFiles/openttd.dir/src/script/api/script_industrytypelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_infrastructure.cpp.o CMakeFiles/openttd.dir/src/script/api/script_list.cpp.o CMakeFiles/openttd.dir/src/script/api/script_log.cpp.o CMakeFiles/openttd.dir/src/script/api/script_map.cpp.o CMakeFiles/openttd.dir/src/script/api/script_marine.cpp.o CMakeFiles/openttd.dir/src/script/api/script_news.cpp.o CMakeFiles/openttd.dir/src/script/api/script_object.cpp.o CMakeFiles/openttd.dir/src/script/api/script_order.cpp.o CMakeFiles/openttd.dir/src/script/api/script_priorityqueue.cpp.o CMakeFiles/openttd.dir/src/script/api/script_rail.cpp.o CMakeFiles/openttd.dir/src/script/api/script_railtypelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_road.cpp.o CMakeFiles/openttd.dir/src/script/api/script_roadtypelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_sign.cpp.o CMakeFiles/openttd.dir/src/script/api/script_signlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_station.cpp.o CMakeFiles/openttd.dir/src/script/api/script_stationlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_story_page.cpp.o CMakeFiles/openttd.dir/src/script/api/script_storypagelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_storypageelementlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_subsidy.cpp.o CMakeFiles/openttd.dir/src/script/api/script_subsidylist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_testmode.cpp.o CMakeFiles/openttd.dir/src/script/api/script_text.cpp.o CMakeFiles/openttd.dir/src/script/api/script_tile.cpp.o CMakeFiles/openttd.dir/src/script/api/script_tilelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_town.cpp.o CMakeFiles/openttd.dir/src/script/api/script_townlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_tunnel.cpp.o CMakeFiles/openttd.dir/src/script/api/script_vehicle.cpp.o CMakeFiles/openttd.dir/src/script/api/script_vehiclelist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_viewport.cpp.o CMakeFiles/openttd.dir/src/script/api/script_waypoint.cpp.o CMakeFiles/openttd.dir/src/script/api/script_waypointlist.cpp.o CMakeFiles/openttd.dir/src/script/api/script_window.cpp.o CMakeFiles/openttd.dir/src/script/script_config.cpp.o CMakeFiles/openttd.dir/src/script/script_info.cpp.o CMakeFiles/openttd.dir/src/script/script_info_dummy.cpp.o CMakeFiles/openttd.dir/src/script/script_instance.cpp.o CMakeFiles/openttd.dir/src/script/script_scanner.cpp.o CMakeFiles/openttd.dir/src/script/squirrel.cpp.o CMakeFiles/openttd.dir/src/script/squirrel_std.cpp.o CMakeFiles/openttd.dir/src/strgen/strgen_base.cpp.o CMakeFiles/openttd.dir/src/3rdparty/md5/md5.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/sqstdlib/sqstdaux.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/sqstdlib/sqstdmath.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqapi.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqbaselib.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqclass.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqcompiler.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqdebug.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqlexer.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqmem.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqobject.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqstate.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqtable.cpp.o CMakeFiles/openttd.dir/src/3rdparty/squirrel/squirrel/sqvm.cpp.o CMakeFiles/openttd.dir/src/ai/ai_config.cpp.o CMakeFiles/openttd.dir/src/ai/ai_core.cpp.o CMakeFiles/openttd.dir/src/ai/ai_gui.cpp.o CMakeFiles/openttd.dir/src/ai/ai_info.cpp.o CMakeFiles/openttd.dir/src/ai/ai_instance.cpp.o CMakeFiles/openttd.dir/src/ai/ai_scanner.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_anim.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_base.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_optimized.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_simple.cpp.o CMakeFiles/openttd.dir/src/blitter/8bpp_base.cpp.o CMakeFiles/openttd.dir/src/blitter/8bpp_optimized.cpp.o CMakeFiles/openttd.dir/src/blitter/8bpp_simple.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_anim_sse2.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_anim_sse4.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_sse2.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_sse4.cpp.o CMakeFiles/openttd.dir/src/blitter/32bpp_ssse3.cpp.o CMakeFiles/openttd.dir/src/blitter/null.cpp.o CMakeFiles/openttd.dir/src/core/alloc_func.cpp.o CMakeFiles/openttd.dir/src/core/bitmath_func.cpp.o CMakeFiles/openttd.dir/src/core/geometry_func.cpp.o CMakeFiles/openttd.dir/src/core/math_func.cpp.o CMakeFiles/openttd.dir/src/core/pool_func.cpp.o CMakeFiles/openttd.dir/src/core/random_func.cpp.o CMakeFiles/openttd.dir/src/game/game_config.cpp.o CMakeFiles/openttd.dir/src/game/game_core.cpp.o CMakeFiles/openttd.dir/src/game/game_info.cpp.o CMakeFiles/openttd.dir/src/game/game_instance.cpp.o CMakeFiles/openttd.dir/src/game/game_scanner.cpp.o CMakeFiles/openttd.dir/src/game/game_text.cpp.o CMakeFiles/openttd.dir/src/linkgraph/demands.cpp.o CMakeFiles/openttd.dir/src/linkgraph/flowmapper.cpp.o CMakeFiles/openttd.dir/src/linkgraph/linkgraph.cpp.o CMakeFiles/openttd.dir/src/linkgraph/linkgraph_gui.cpp.o CMakeFiles/openttd.dir/src/linkgraph/linkgraphjob.cpp.o CMakeFiles/openttd.dir/src/linkgraph/linkgraphschedule.cpp.o CMakeFiles/openttd.dir/src/linkgraph/mcf.cpp.o CMakeFiles/openttd.dir/src/linkgraph/refresh.cpp.o CMakeFiles/openttd.dir/src/misc/countedobj.cpp.o CMakeFiles/openttd.dir/src/misc/dbg_helpers.cpp.o CMakeFiles/openttd.dir/src/misc/getoptdata.cpp.o CMakeFiles/openttd.dir/src/music/fluidsynth.cpp.o CMakeFiles/openttd.dir/src/music/extmidi.cpp.o CMakeFiles/openttd.dir/src/music/midifile.cpp.o CMakeFiles/openttd.dir/src/music/null_m.cpp.o CMakeFiles/openttd.dir/src/network/core/address.cpp.o CMakeFiles/openttd.dir/src/network/core/core.cpp.o CMakeFiles/openttd.dir/src/network/core/host.cpp.o CMakeFiles/openttd.dir/src/network/core/packet.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp_admin.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp_connect.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp_content.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp_game.cpp.o CMakeFiles/openttd.dir/src/network/core/tcp_http.cpp.o CMakeFiles/openttd.dir/src/network/core/udp.cpp.o CMakeFiles/openttd.dir/src/network/network.cpp.o CMakeFiles/openttd.dir/src/network/network_admin.cpp.o CMakeFiles/openttd.dir/src/network/network_chat_gui.cpp.o CMakeFiles/openttd.dir/src/network/network_client.cpp.o CMakeFiles/openttd.dir/src/network/network_command.cpp.o CMakeFiles/openttd.dir/src/network/network_content.cpp.o CMakeFiles/openttd.dir/src/network/network_content_gui.cpp.o CMakeFiles/openttd.dir/src/network/network_gamelist.cpp.o CMakeFiles/openttd.dir/src/network/network_gui.cpp.o CMakeFiles/openttd.dir/src/network/network_server.cpp.o CMakeFiles/openttd.dir/src/network/network_udp.cpp.o CMakeFiles/openttd.dir/src/os/unix/crashlog_unix.cpp.o CMakeFiles/openttd.dir/src/os/unix/unix.cpp.o CMakeFiles/openttd.dir/src/pathfinder/npf/aystar.cpp.o CMakeFiles/openttd.dir/src/pathfinder/npf/npf.cpp.o CMakeFiles/openttd.dir/src/pathfinder/npf/queue.cpp.o CMakeFiles/openttd.dir/src/pathfinder/yapf/yapf_rail.cpp.o CMakeFiles/openttd.dir/src/pathfinder/yapf/yapf_road.cpp.o CMakeFiles/openttd.dir/src/pathfinder/yapf/yapf_ship.cpp.o CMakeFiles/openttd.dir/src/saveload/afterload.cpp.o CMakeFiles/openttd.dir/src/saveload/ai_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/airport_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/animated_tile_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/autoreplace_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/cargomonitor_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/cargopacket_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/cheat_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/company_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/depot_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/economy_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/engine_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/game_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/gamelog_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/goal_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/group_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/industry_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/labelmaps_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/linkgraph_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/map_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/misc_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/newgrf_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/object_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/oldloader.cpp.o CMakeFiles/openttd.dir/src/saveload/oldloader_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/order_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/saveload.cpp.o CMakeFiles/openttd.dir/src/saveload/signs_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/station_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/storage_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/strings_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/story_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/subsidy_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/town_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/vehicle_sl.cpp.o CMakeFiles/openttd.dir/src/saveload/waypoint_sl.cpp.o CMakeFiles/openttd.dir/src/sound/sdl2_s.cpp.o CMakeFiles/openttd.dir/src/sound/null_s.cpp.o CMakeFiles/openttd.dir/src/spriteloader/grf.cpp.o CMakeFiles/openttd.dir/src/video/sdl2_v.cpp.o CMakeFiles/openttd.dir/src/video/dedicated_v.cpp.o CMakeFiles/openttd.dir/src/video/null_v.cpp.o CMakeFiles/openttd.dir/src/widgets/dropdown.cpp.o CMakeFiles/openttd.dir/src/viewport_sprite_sorter_sse4.cpp.o CMakeFiles/openttd.dir/src/aircraft_cmd.cpp.o CMakeFiles/openttd.dir/src/aircraft_gui.cpp.o CMakeFiles/openttd.dir/src/airport.cpp.o CMakeFiles/openttd.dir/src/airport_gui.cpp.o CMakeFiles/openttd.dir/src/animated_tile.cpp.o CMakeFiles/openttd.dir/src/articulated_vehicles.cpp.o CMakeFiles/openttd.dir/src/autoreplace.cpp.o CMakeFiles/openttd.dir/src/autoreplace_cmd.cpp.o CMakeFiles/openttd.dir/src/autoreplace_gui.cpp.o CMakeFiles/openttd.dir/src/base_consist.cpp.o CMakeFiles/openttd.dir/src/bmp.cpp.o CMakeFiles/openttd.dir/src/bootstrap_gui.cpp.o CMakeFiles/openttd.dir/src/bridge_gui.cpp.o CMakeFiles/openttd.dir/src/bridge_map.cpp.o CMakeFiles/openttd.dir/src/build_vehicle_gui.cpp.o CMakeFiles/openttd.dir/src/cargoaction.cpp.o CMakeFiles/openttd.dir/src/cargomonitor.cpp.o CMakeFiles/openttd.dir/src/cargopacket.cpp.o CMakeFiles/openttd.dir/src/cargotype.cpp.o CMakeFiles/openttd.dir/src/cheat.cpp.o CMakeFiles/openttd.dir/src/cheat_gui.cpp.o CMakeFiles/openttd.dir/src/clear_cmd.cpp.o CMakeFiles/openttd.dir/src/command.cpp.o CMakeFiles/openttd.dir/src/company_cmd.cpp.o CMakeFiles/openttd.dir/src/company_gui.cpp.o CMakeFiles/openttd.dir/src/console.cpp.o CMakeFiles/openttd.dir/src/console_cmds.cpp.o CMakeFiles/openttd.dir/src/console_gui.cpp.o CMakeFiles/openttd.dir/src/cpu.cpp.o CMakeFiles/openttd.dir/src/crashlog.cpp.o CMakeFiles/openttd.dir/src/currency.cpp.o CMakeFiles/openttd.dir/src/date.cpp.o CMakeFiles/openttd.dir/src/date_gui.cpp.o CMakeFiles/openttd.dir/src/debug.cpp.o CMakeFiles/openttd.dir/src/dedicated.cpp.o CMakeFiles/openttd.dir/src/depot.cpp.o CMakeFiles/openttd.dir/src/depot_cmd.cpp.o CMakeFiles/openttd.dir/src/depot_gui.cpp.o CMakeFiles/openttd.dir/src/disaster_vehicle.cpp.o CMakeFiles/openttd.dir/src/dock_gui.cpp.o CMakeFiles/openttd.dir/src/driver.cpp.o CMakeFiles/openttd.dir/src/economy.cpp.o CMakeFiles/openttd.dir/src/effectvehicle.cpp.o CMakeFiles/openttd.dir/src/elrail.cpp.o CMakeFiles/openttd.dir/src/engine.cpp.o CMakeFiles/openttd.dir/src/engine_gui.cpp.o CMakeFiles/openttd.dir/src/error_gui.cpp.o CMakeFiles/openttd.dir/src/fileio.cpp.o CMakeFiles/openttd.dir/src/fios.cpp.o CMakeFiles/openttd.dir/src/fios_gui.cpp.o CMakeFiles/openttd.dir/src/fontcache.cpp.o CMakeFiles/openttd.dir/src/fontdetection.cpp.o CMakeFiles/openttd.dir/src/framerate_gui.cpp.o CMakeFiles/openttd.dir/src/gamelog.cpp.o CMakeFiles/openttd.dir/src/genworld.cpp.o CMakeFiles/openttd.dir/src/genworld_gui.cpp.o CMakeFiles/openttd.dir/src/gfx.cpp.o CMakeFiles/openttd.dir/src/gfx_layout.cpp.o CMakeFiles/openttd.dir/src/gfxinit.cpp.o CMakeFiles/openttd.dir/src/goal.cpp.o CMakeFiles/openttd.dir/src/goal_gui.cpp.o CMakeFiles/openttd.dir/src/graph_gui.cpp.o CMakeFiles/openttd.dir/src/ground_vehicle.cpp.o CMakeFiles/openttd.dir/src/group_cmd.cpp.o CMakeFiles/openttd.dir/src/group_gui.cpp.o CMakeFiles/openttd.dir/src/heightmap.cpp.o CMakeFiles/openttd.dir/src/highscore.cpp.o CMakeFiles/openttd.dir/src/highscore_gui.cpp.o CMakeFiles/openttd.dir/src/hotkeys.cpp.o CMakeFiles/openttd.dir/src/industry_cmd.cpp.o CMakeFiles/openttd.dir/src/industry_gui.cpp.o CMakeFiles/openttd.dir/src/ini.cpp.o CMakeFiles/openttd.dir/src/ini_load.cpp.o CMakeFiles/openttd.dir/src/intro_gui.cpp.o CMakeFiles/openttd.dir/src/landscape.cpp.o CMakeFiles/openttd.dir/src/main_gui.cpp.o CMakeFiles/openttd.dir/src/map.cpp.o CMakeFiles/openttd.dir/src/misc.cpp.o CMakeFiles/openttd.dir/src/misc_cmd.cpp.o CMakeFiles/openttd.dir/src/misc_gui.cpp.o CMakeFiles/openttd.dir/src/mixer.cpp.o CMakeFiles/openttd.dir/src/music.cpp.o CMakeFiles/openttd.dir/src/music_gui.cpp.o CMakeFiles/openttd.dir/src/newgrf.cpp.o CMakeFiles/openttd.dir/src/newgrf_airport.cpp.o CMakeFiles/openttd.dir/src/newgrf_airporttiles.cpp.o CMakeFiles/openttd.dir/src/newgrf_canal.cpp.o CMakeFiles/openttd.dir/src/newgrf_cargo.cpp.o CMakeFiles/openttd.dir/src/newgrf_commons.cpp.o CMakeFiles/openttd.dir/src/newgrf_config.cpp.o CMakeFiles/openttd.dir/src/newgrf_debug_gui.cpp.o CMakeFiles/openttd.dir/src/newgrf_engine.cpp.o CMakeFiles/openttd.dir/src/newgrf_generic.cpp.o CMakeFiles/openttd.dir/src/newgrf_gui.cpp.o CMakeFiles/openttd.dir/src/newgrf_house.cpp.o CMakeFiles/openttd.dir/src/newgrf_industries.cpp.o CMakeFiles/openttd.dir/src/newgrf_industrytiles.cpp.o CMakeFiles/openttd.dir/src/newgrf_object.cpp.o CMakeFiles/openttd.dir/src/newgrf_profiling.cpp.o CMakeFiles/openttd.dir/src/newgrf_railtype.cpp.o CMakeFiles/openttd.dir/src/newgrf_roadtype.cpp.o CMakeFiles/openttd.dir/src/newgrf_sound.cpp.o CMakeFiles/openttd.dir/src/newgrf_spritegroup.cpp.o CMakeFiles/openttd.dir/src/newgrf_station.cpp.o CMakeFiles/openttd.dir/src/newgrf_storage.cpp.o CMakeFiles/openttd.dir/src/newgrf_text.cpp.o CMakeFiles/openttd.dir/src/newgrf_town.cpp.o CMakeFiles/openttd.dir/src/newgrf_townname.cpp.o CMakeFiles/openttd.dir/src/news_gui.cpp.o CMakeFiles/openttd.dir/src/object_cmd.cpp.o CMakeFiles/openttd.dir/src/object_gui.cpp.o CMakeFiles/openttd.dir/src/openttd.cpp.o CMakeFiles/openttd.dir/src/order_backup.cpp.o CMakeFiles/openttd.dir/src/order_cmd.cpp.o CMakeFiles/openttd.dir/src/order_gui.cpp.o CMakeFiles/openttd.dir/src/osk_gui.cpp.o CMakeFiles/openttd.dir/src/pbs.cpp.o CMakeFiles/openttd.dir/src/progress.cpp.o CMakeFiles/openttd.dir/src/rail.cpp.o CMakeFiles/openttd.dir/src/rail_cmd.cpp.o CMakeFiles/openttd.dir/src/rail_gui.cpp.o CMakeFiles/openttd.dir/src/road.cpp.o CMakeFiles/openttd.dir/src/road_cmd.cpp.o CMakeFiles/openttd.dir/src/road_gui.cpp.o CMakeFiles/openttd.dir/src/road_map.cpp.o CMakeFiles/openttd.dir/src/roadstop.cpp.o CMakeFiles/openttd.dir/src/roadveh_cmd.cpp.o CMakeFiles/openttd.dir/src/roadveh_gui.cpp.o CMakeFiles/openttd.dir/src/screenshot_gui.cpp.o CMakeFiles/openttd.dir/src/screenshot.cpp.o CMakeFiles/openttd.dir/src/settings.cpp.o CMakeFiles/openttd.dir/src/settings_gui.cpp.o CMakeFiles/openttd.dir/src/ship_cmd.cpp.o CMakeFiles/openttd.dir/src/ship_gui.cpp.o CMakeFiles/openttd.dir/src/signal.cpp.o CMakeFiles/openttd.dir/src/signs.cpp.o CMakeFiles/openttd.dir/src/signs_cmd.cpp.o CMakeFiles/openttd.dir/src/signs_gui.cpp.o CMakeFiles/openttd.dir/src/smallmap_gui.cpp.o CMakeFiles/openttd.dir/src/sound.cpp.o CMakeFiles/openttd.dir/src/sprite.cpp.o CMakeFiles/openttd.dir/src/spritecache.cpp.o CMakeFiles/openttd.dir/src/station.cpp.o CMakeFiles/openttd.dir/src/station_cmd.cpp.o CMakeFiles/openttd.dir/src/station_gui.cpp.o CMakeFiles/openttd.dir/src/statusbar_gui.cpp.o CMakeFiles/openttd.dir/src/story.cpp.o CMakeFiles/openttd.dir/src/story_gui.cpp.o CMakeFiles/openttd.dir/src/string.cpp.o CMakeFiles/openttd.dir/src/stringfilter.cpp.o CMakeFiles/openttd.dir/src/strings.cpp.o CMakeFiles/openttd.dir/src/subsidy.cpp.o CMakeFiles/openttd.dir/src/subsidy_gui.cpp.o CMakeFiles/openttd.dir/src/terraform_cmd.cpp.o CMakeFiles/openttd.dir/src/terraform_gui.cpp.o CMakeFiles/openttd.dir/src/textbuf.cpp.o CMakeFiles/openttd.dir/src/texteff.cpp.o CMakeFiles/openttd.dir/src/textfile_gui.cpp.o CMakeFiles/openttd.dir/src/tgp.cpp.o CMakeFiles/openttd.dir/src/tile_map.cpp.o CMakeFiles/openttd.dir/src/tilearea.cpp.o CMakeFiles/openttd.dir/src/timetable_cmd.cpp.o CMakeFiles/openttd.dir/src/timetable_gui.cpp.o CMakeFiles/openttd.dir/src/toolbar_gui.cpp.o CMakeFiles/openttd.dir/src/town_cmd.cpp.o CMakeFiles/openttd.dir/src/town_gui.cpp.o CMakeFiles/openttd.dir/src/townname.cpp.o CMakeFiles/openttd.dir/src/train_cmd.cpp.o CMakeFiles/openttd.dir/src/train_gui.cpp.o CMakeFiles/openttd.dir/src/transparency_gui.cpp.o CMakeFiles/openttd.dir/src/tree_cmd.cpp.o CMakeFiles/openttd.dir/src/tree_gui.cpp.o CMakeFiles/openttd.dir/src/tunnel_map.cpp.o CMakeFiles/openttd.dir/src/tunnelbridge_cmd.cpp.o CMakeFiles/openttd.dir/src/vehicle.cpp.o CMakeFiles/openttd.dir/src/vehicle_cmd.cpp.o CMakeFiles/openttd.dir/src/vehicle_gui.cpp.o CMakeFiles/openttd.dir/src/vehiclelist.cpp.o CMakeFiles/openttd.dir/src/viewport.cpp.o CMakeFiles/openttd.dir/src/viewport_gui.cpp.o CMakeFiles/openttd.dir/src/void_cmd.cpp.o CMakeFiles/openttd.dir/src/water_cmd.cpp.o CMakeFiles/openttd.dir/src/waypoint.cpp.o CMakeFiles/openttd.dir/src/waypoint_cmd.cpp.o CMakeFiles/openttd.dir/src/waypoint_gui.cpp.o CMakeFiles/openttd.dir/src/widget.cpp.o CMakeFiles/openttd.dir/src/window.cpp.o -o openttd  /usr/lib/x86_64-linux-gnu/libpng.so  /usr/lib/x86_64-linux-gnu/libz.so  /usr/lib/x86_64-linux-gnu/liblzma.so  /app/lib/liblzo2.so  /app/lib/liblzo2.so  /app/lib/libfluidsynth.so  /app/lib/libfluidsynth.so  /usr/lib/x86_64-linux-gnu/libSDL2.so  /usr/lib/x86_64-linux-gnu/libfreetype.so  /usr/lib/x86_64-linux-gnu/libfontconfig.so  /usr/lib/x86_64-linux-gnu/libicui18n.so  /usr/lib/x86_64-linux-gnu/libicuuc.so  /usr/lib/x86_64-linux-gnu/libicudata.so  -lpthread && :
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 225b7
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 225c3
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: DWARF error: could not find variable specification at offset 225cf
CMakeFiles/openttd.dir/src/crashlog.cpp.o: in function `CrashLog::LogLibraries(char*, char const*) const':
/run/build/openttd/_flatpak_build/../src/crashlog.cpp:244: undefined reference to `u_getVersion_68'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/crashlog.cpp:245: undefined reference to `u_versionToString_68'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: CMakeFiles/openttd.dir/src/string.cpp.o: in function `strnatcmp(char const*, char const*, bool)':
/run/build/openttd/_flatpak_build/../src/string.cpp:635: undefined reference to `icu_68::StringPiece::StringPiece(char const*)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:635: undefined reference to `icu_68::StringPiece::StringPiece(char const*)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: CMakeFiles/openttd.dir/src/string.cpp.o: in function `IcuStringIterator::SetString(char const*)':
/run/build/openttd/_flatpak_build/../src/string.cpp:722: undefined reference to `utext_openUChars_68'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: CMakeFiles/openttd.dir/src/string.cpp.o: in function `IcuStringIterator::IcuStringIterator()':
/run/build/openttd/_flatpak_build/../src/string.cpp:679: undefined reference to `icu_68::Locale::Locale(char const*, char const*, char const*, char const*)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:679: undefined reference to `icu_68::BreakIterator::createCharacterInstance(icu_68::Locale const&, UErrorCode&)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:679: undefined reference to `icu_68::Locale::~Locale()'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:680: undefined reference to `icu_68::Locale::Locale(char const*, char const*, char const*, char const*)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:680: undefined reference to `icu_68::BreakIterator::createWordInstance(icu_68::Locale const&, UErrorCode&)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:680: undefined reference to `icu_68::Locale::~Locale()'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/string.cpp:680: undefined reference to `icu_68::Locale::~Locale()'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: CMakeFiles/openttd.dir/src/strings.cpp.o: in function `ReadLanguagePack(LanguageMetadata const*)':
/run/build/openttd/_flatpak_build/../src/strings.cpp:1804: undefined reference to `icu_68::Locale::Locale(char const*, char const*, char const*, char const*)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/strings.cpp:1804: undefined reference to `icu_68::Collator::createInstance(icu_68::Locale const&, UErrorCode&)'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/strings.cpp:1804: undefined reference to `icu_68::Locale::~Locale()'
/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /run/build/openttd/_flatpak_build/../src/strings.cpp:1804: undefined reference to `icu_68::Locale::~Locale()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Could you help me understand what changes between the previous stable and the current beta version of OpenTTD triggered this issue?

Cheers,
The Flatpak maintainer

@glx22
Copy link
Contributor

@glx22 glx22 commented Jan 27, 2021

In your CMake log I can see

3643 -- Found ICU: TRUE (found version "68.2") found components: i18n missing components: lx
 |
3662 -- ICU_i18n found -- -DWITH_ICU_I18N --   -- /usr/lib/x86_64-linux-gnu/libicui18n.so;/usr/lib/x86_64-linux-gnu/libicuuc.so;/usr/lib/x86_64-linux-gnu/libicudata.so 

So it seems CMake didn't find the ICU you built in previous steps (should be in /app/lib if I follow the logs)

@ghisvail
Copy link
Contributor Author

@ghisvail ghisvail commented Jan 27, 2021

Hi Loïc, you were correct. The Flatpak runtime now ships its own build of ICU, so I can drop mine. It builds properly now.

Thank you for giving a look 👍

@TrueBrain
Copy link
Member

@TrueBrain TrueBrain commented Jan 27, 2021

Something that spotted my eye when I briefly looked at this this morning: you seem to be building a debug build. It might be that you set it to a release build somewhere else, but in case you don't know CMake (in that case https://cmake.org/cmake/help/latest/guide/user-interaction/index.html is an excellent starter tutorial), CMake by default always builds Debug builds (holds true for any CMake project). For OpenTTD, debug builds add tons of validation, really slowing down the game. If you plan to publish this version, can I suggest considering using the RelWithDebInfo build type? It drastically speeds up the game :) If you already aware and were trying out the build, just ignore this :)

Other thing worth mentioning, a few -f are set; in general, CMake auto-detects what works best for the given compiler and OS. So it might give some issues in some cases .. just mentioning it so you are aware :)

Anyway, just wanted to let you know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants