Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
C
cmocka
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmocka
  • cmocka
  • Issues
  • #14

Closed
Open
Created Nov 30, 2018 by David Heidelberg@okias

regression: 1.1.3 cannot be build with -fLTO

version 1.1.1 can be build with LTO (-flto), but 1.1.3 no longer builds with

[100%] Linking C executable waiter_test_wrap
/usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -flto -fno-stack-protector -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--wrap=chef_cook CMakeFiles/waiter_test_wrap.dir/waiter_test_wrap.c.o CMakeFiles/waiter_test_wrap.dir/chef.c.o  -o waiter_test_wrap -Wl,-rpath,/var/tmp/portage/dev-util/cmocka-1.1.3/work/cmocka-1.1.3-abi_x86_64.amd64/src ../../../src/libcmocka.so.0.5.1 /usr/lib/librt.so 
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/cmocka-1.1.3/temp/cc6TI0Tu.ltrans0.ltrans.o: in function `calc_uptime':
<artificial>:(.text+0x43): undefined reference to `__wrap_uptime'
collect2: error: ld returned 1 exit status

GCC version 8.2.0

Edited Nov 30, 2018 by David Heidelberg
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking