ld: unrecognized option '--push-state--no-as-needed'

后端 未结 2 2088
清歌不尽
清歌不尽 2021-02-08 12:53

My build fails with the following linker error message:

FAILED: : && /usr/bin/g++ -Wall -Wextra -Werror -g -fsanitize=undefined,address -Wno-unus

2条回答
  •  难免孤独
    2021-02-08 13:43

    If option D (from ollo's answer) is not working for you try next commands:

    sudo add-apt-repository ppa:jonathonf/binutils --yes
    sudo apt-get update -qq --yes
    sudo apt-get install -qq --yes --force-yes binutils
    

    This is from: https://github.com/Project-OSRM/osrm-backend/blob/master/scripts/travis/before_install.x86_64-asan.sh

    And the issue was discribed here: https://github.com/Project-OSRM/osrm-backend/issues/3216

提交回复
热议问题