Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #17827

Closed (moved)
(moved)
Open
Created Dec 12, 2015 by cypherpunks@cypherpunks

Different return type of backtrace function on FreeBSD

Jenkins is failing compilation on FreeBSD because its backtrace function is returning size_t instead of int. This leads to the compilation errors such as

../tor/src/common/backtrace.c:98:11: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
  depth = backtrace(cb_buf, MAX_DEPTH);
        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tor/src/common/backtrace.c:130:11: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
  depth = backtrace(cb_buf, MAX_DEPTH);
        ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tor/src/common/backtrace.c:177:17: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
    int depth = backtrace(cb_buf, MAX_DEPTH);
        ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking