Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
wayland
wayland
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 26
    • Merge Requests 26
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wayland
  • waylandwayland
  • Issues
  • #31

Closed
Open
Opened May 05, 2017 by Bugzilla Migration User@bugzilla-migration

Can't build with LLVM/clang

Submitted by Tomasz Paweł Gajc

Assigned to Wayland bug list

Link to original bug (#100939)

Description

Wayland 1.13.0 build fails with LLVM/clang 4.1 with LTO enabled

More logs can be found here http://file-store.openmandriva.org/api/v1/file_stores/5af6909e374c756e8e67307535a3f9530d6f7861.log?show=true

make[2]: Entering directory '/builddir/build/BUILD/wayland-1.13.0'
/bin/sh ./libtool  --tag=CC   --mode=link /usr/bin/clang -Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC -flto  -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC -flto -Wl,-O2  -Wl,--no-undefined -flto  -o fixed-test tests/fixed-test.o libtest-runner.la 
libtool: link: /usr/bin/clang -Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -flto -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -flto -Wl,-O2 -Wl,--no-undefined -flto -o .libs/fixed-test tests/fixed-test.o  ./.libs/libtest-runner.a /builddir/build/BUILD/wayland-1.13.0/.libs/libwayland-client.so /builddir/build/BUILD/wayland-1.13.0/.libs/libwayland-server.so -lm -lrt -ldl -lffi -pthread
make[2]: Leaving directory '/builddir/build/BUILD/wayland-1.13.0'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__stop_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__start_test_section'
/tmp/lto-llvm-ceeca4.o:ld-temp.o:function main: error: undefined reference to '__stop_test_section'
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1446: fixed-test] Error 1
make[2]: *** Waiting for unfinished jobs....
Edited Jun 30, 2018 by Daniel Stone
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
None
Due date
None
Reference: wayland/wayland#31