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

MSYS2 fails at linking #36667

Closed
ghost opened this issue Jan 3, 2020 · 0 comments
Closed

MSYS2 fails at linking #36667

ghost opened this issue Jan 3, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2020

Describe the bug

MSYS2/MINGW64 fails at linking stage, likely introduced by #36610

PS. Or not, something wonky seems to be going on with ccache after update, reverting threw new linking errors on same call that went away after manually removing offending objects and recompiling, will investigate further.

PPS. Indeed, false alarm, problem caused by ccache update. Lesson learned - Don't trust 'make clean' to clean everything

Log

$ make MSYS2=1 RELEASE=1 LOCALIZE=1 NATIVE=win64 ASTYLE=0 LINTJSON=0 RUNTESTS=0 -j4 OPTLEVEL=-O2 CCACHE=1
ccache g++ -Wl,-stack,12000000,-subsystem,windows -o cataclysm.exe objwin/action.o objwin/active_item_cache.o objwin/activity_handlers.o objwin/activity_item_handling.o objwin/activity_type.o objwin/addiction.o objwin/advanced_inv.o objwin/advanced_inv_area.o objwin/advanced_inv_listitem.o objwin/advanced_inv_pane.o objwin/ammo.o objwin/anatomy.o objwin/animation.o objwin/armor_layers.o objwin/artifact.o objwin/auto_note.o objwin/auto_pickup.o objwin/avatar.o objwin/avatar_action.o objwin/ballistics.o objwin/basecamp.o objwin/behavior.o objwin/behavior_oracle.o objwin/behavior_strategy.o objwin/bionics.o objwin/bionics_ui.o objwin/bodypart.o objwin/bonuses.o objwin/calendar.o objwin/cata_tiles.o objwin/cata_utility.o objwin/cata_variant.o objwin/catacharset.o objwin/char_validity_check.o objwin/character.o objwin/character_martial_arts.o objwin/clothing_mod.o objwin/clzones.o objwin/color.o objwin/computer.o objwin/condition.o objwin/construction.o objwin/construction_category.o objwin/consumption.o objwin/coordinate_conversions.o objwin/craft_command.o objwin/crafting.o objwin/crafting_gui.o objwin/crash.o objwin/creature.o objwin/creature_tracker.o objwin/cursesport.o objwin/damage.o objwin/debug.o objwin/debug_menu.o objwin/dependency_tree.o objwin/descriptions.o objwin/dialogue_win.o objwin/dispersion.o objwin/drawing_primitives.o objwin/dump.o objwin/editmap.o objwin/effect.o objwin/emit.o objwin/event.o objwin/event_bus.o objwin/event_statistics.o objwin/explosion.o objwin/faction.o objwin/faction_camp.o objwin/fault.o objwin/field.o objwin/field_type.o objwin/filesystem.o objwin/flag.o objwin/fungal_effects.o objwin/game.o objwin/game_inventory.o objwin/game_ui.o objwin/gamemode.o objwin/gamemode_defense.o objwin/gamemode_tutorial.o objwin/gates.o objwin/grab.o objwin/handle_action.o objwin/handle_liquid.o objwin/harvest.o objwin/help.o objwin/iexamine.o objwin/ime.o objwin/init.o objwin/input.o objwin/inventory.o objwin/inventory_ui.o objwin/item.o objwin/item_action.o objwin/item_category.o objwin/item_factory.o objwin/item_group.o objwin/item_location.o objwin/item_search.o objwin/item_stack.o objwin/iteminfo_query.o objwin/itype.o objwin/iuse.o objwin/iuse_actor.o objwin/iuse_software.o objwin/iuse_software_kitten.o objwin/iuse_software_lightson.o objwin/iuse_software_minesweeper.o objwin/iuse_software_snake.o objwin/iuse_software_sokoban.o objwin/json.o objwin/kill_tracker.o objwin/lightmap.o objwin/line.o objwin/live_view.o objwin/loading_ui.o objwin/lru_cache.o objwin/magic.o objwin/magic_enchantment.o objwin/magic_spell_effect.o objwin/magic_teleporter_list.o objwin/magic_ter_fur_transform.o objwin/main.o objwin/main_menu.o objwin/map.o objwin/map_extras.o objwin/map_field.o objwin/map_item_stack.o objwin/map_memory.o objwin/map_selector.o objwin/mapbuffer.o objwin/mapdata.o objwin/mapgen.o objwin/mapgen_functions.o objwin/mapgendata.o objwin/mapgenformat.o objwin/mapsharing.o objwin/martialarts.o objwin/material.o objwin/mattack_actors.o objwin/melee.o objwin/memorial_logger.o objwin/messages.o objwin/mission.o objwin/mission_companion.o objwin/mission_end.o objwin/mission_place.o objwin/mission_start.o objwin/mission_ui.o objwin/mission_util.o objwin/missiondef.o objwin/mod_manager.o objwin/mod_manager_ui.o objwin/mod_tileset.o objwin/monattack.o objwin/mondeath.o objwin/mondefense.o objwin/monexamine.o objwin/monfaction.o objwin/mongroup.o objwin/monmove.o objwin/monster.o objwin/monstergenerator.o objwin/morale.o objwin/morale_types.o objwin/mtype.o objwin/mutation.o objwin/mutation_data.o objwin/mutation_type.o objwin/mutation_ui.o objwin/name.o objwin/ncurses_def.o objwin/newcharacter.o objwin/npc.o objwin/npc_class.o objwin/npcmove.o objwin/npctalk.o objwin/npctalk_funcs.o objwin/npctrade.o objwin/options.o objwin/output.o objwin/overlay_ordering.o objwin/overmap.o objwin/overmap_connection.o objwin/overmap_location.o objwin/overmap_noise.o objwin/overmap_ui.o objwin/overmapbuffer.o objwin/panels.o objwin/path_info.o objwin/pathfinding.o objwin/pickup.o objwin/pixel_minimap.o objwin/pixel_minimap_projectors.o objwin/player.o objwin/player_activity.o objwin/player_display.o objwin/player_hardcoded_effects.o objwin/point.o objwin/popup.o objwin/posix_time.o objwin/profession.o objwin/projectile.o objwin/ranged.o objwin/recipe.o objwin/recipe_dictionary.o objwin/recipe_groups.o objwin/regional_settings.o objwin/relic.o objwin/requirements.o objwin/resource.o objwin/rng.o objwin/rotatable_symbols.o objwin/safe_reference.o objwin/safemode_ui.o objwin/savegame.o objwin/savegame_json.o objwin/savegame_legacy.o objwin/scenario.o objwin/scent_map.o objwin/scores_ui.o objwin/sdl_utils.o objwin/sdl_wrappers.o objwin/sdlsound.o objwin/sdltiles.o objwin/simplexnoise.o objwin/skill.o objwin/skill_boost.o objwin/sounds.o objwin/speech.o objwin/start_location.o objwin/stats_tracker.o objwin/stomach.o objwin/string_formatter.o objwin/string_id_null_ids.o objwin/string_input_popup.o objwin/submap.o objwin/suffer.o objwin/teleport.o objwin/text_snippets.o objwin/tileray.o objwin/timed_event.o objwin/trait_group.o objwin/translations.o objwin/trap.o objwin/trapfunc.o objwin/turret.o objwin/ui.o objwin/units.o objwin/veh_interact.o objwin/veh_type.o objwin/veh_utils.o objwin/vehicle.o objwin/vehicle_display.o objwin/vehicle_group.o objwin/vehicle_move.o objwin/vehicle_part.o objwin/vehicle_selector.o objwin/vehicle_use.o objwin/version.o objwin/visitable.o objwin/vitamin.o objwin/wcwidth.o objwin/weather.o objwin/weather_data.o objwin/weather_gen.o objwin/wincurse.o objwin/wish.o objwin/worldfactory.o  -m64 -static -lintl -liconv -LD:/msys64/mingw64/lib -lncursesw -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/basecamp.o:basecamp.cpp:(.text+0x306e): undefined reference to `recipe::get_component_filter() const'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/basecamp.o:basecamp.cpp:(.text+0x5c6a): undefined reference to `recipe::get_component_filter() const'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/faction_camp.o:faction_camp.cpp:(.text+0x23b8): undefined reference to `recipe::get_component_filter() const'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/faction_camp.o:faction_camp.cpp:(.text+0x4d78): undefined reference to `recipe::get_component_filter() const'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/faction_camp.o:faction_camp.cpp:(.text+0x8764): undefined reference to `recipe::get_component_filter() const'
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: objwin/faction_camp.o:faction_camp.cpp:(.text+0xdbd0): more undefined references to `recipe::get_component_filter() const' follow
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:784: cataclysm.exe] Error 1


This issue was closed.
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

0 participants