Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #2302
Closed
Open
Issue created Aug 21, 2019 by Administrator@rootContributor

add custom sysroot to linker fails

Created by: AlexDreyfuss

I tried to add my custom sysroot as a linkerflag:

ldflags = --sysroot /env/dev/filesystem/rootfs_images/leveldb_d097eb0//sysroot

and also added to my cxx_binary the header:

linker_flags = ['--sysroot=/env/dev/filesystem/rootfs_images/leveldb_d097eb0//sysroot/usr/lib'],.

Result is linker.argsfile:

-o
buck-out/gen/main
--sysroot
/env/dev/filesystem/rootfs_images/leveldb_d097eb0//sysroot
'--sysroot=/env/dev/filesystem/rootfs_images/leveldb_d097eb0//sysroot/usr/lib'
buck-out/gen/main#compile-test_ConfigReader.cxx.o9a68718d,default/test_ConfigReader.cxx.o
buck-out/gen/debug/utils_debug#default,static/libutils_debug.a
buck-out/gen/config/utils_config#default,static/libutils_config.a
buck-out/gen/utils#default,static/libutils.a

when building the error is or missing lib file from directory or fatal error: no input files

Assignee
Assign to
Time tracking