Skip to content

[Enhancement][be] Improve debugging experience #9676

@adonis0147

Description

@adonis0147

Search before asking

  • I had searched in the issues and found no similar issues.

Description

This issue proposes two changes to improve debugging experience.

  1. Use lld to speed the link time of doris_be_test up.
  2. Explicitly set the version of dwarf to use debug info in dwarf-5 format which is the latest and has numerous minor additions to improve functionality and performance.

Foregoings are NOT mandatory.

REMARK
GCC 11.0+ produces DWARF debugging information in dwarf-5 format by default if it was built against binutils version 2.35.2 or higher according to GCC 11 Release Note. GCC 11.1 in ldb toolchain may be built against binutils with earlier version, hence, it doesn't produces the debugging information in version 5 format.

Solution

  1. Use lld to speed the link time of doris_be_test up.
  2. Explicitly set the version of dwarf to use debug info in dwarf-5.

Usage

# For debug build
BUILD_TYPE=DEBUG USE_LLD=ON USE_DWARF=ON ./build.sh --be --clean

# For ut
USE_LLD=ON USE_DWARF=ON ./run-be-ut.sh --clean

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions