Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • B buildroot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Redmine
    • Redmine
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • 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
  • netdsa
  • buildroot
  • Repository
Switch branch/tag
  • buildroot
  • toolchain
  • toolchain-common.in
Find file BlameHistoryPermalink
  • Romain Naour's avatar
    toolchain: libatomic is not built on "uclinux" platforms · b3d1fb26
    Romain Naour authored Aug 02, 2016
    The cairo package fails to build on some architectures:
    BR2_TOOLCHAIN_HAS_LIBATOMIC is enabled, but libatomic is in fact not
    available.
    
    This happens because the gcc logic in libatomic/configure.tgt does not
    recognize "uclinux" as a valid OS part of the target tuple, and
    therefore it does not build libatomic.
    
    The "uclinux" part of the tuple is used by Buildroot when
    BR2_BINFMT_FLAT=y, so we make BR2_TOOLCHAIN_HAS_LIBATOMIC enabled only
    if !BR2_BINFMT_FLAT.
    
    It is worth mentioning that support for the uclinux tuple could most
    likely very easily be added to gcc: it could rely on the generic
    "posix" implementation of libatomic, which uses pthread locks,
    available on all architectures where thread support is available.
    
    Fixes:
    
     [arm]  http://autobuild.buildroot.net/results/3d8dc45e41a043d2c2c26bfb26c3617499fbe671
     [m68k] http://autobuild.buildroot.net/results/318e01406e3e92eb589ee5b2231c671a4dbb6da4
    
    
    
    Signed-off-by: default avatarRomain Naour <romain.naour@gmail.com>
    Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    [Thomas: adjust dependency after analysis of the gcc code.]
    Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    b3d1fb26