Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P parabix-devel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cameron
  • parabix-devel
  • Merge requests
  • !69

Merged
Created May 13, 2024 by sla489@sla489Contributor

Small fixes

  • Overview 0
  • Commits 3
  • Pipelines 1
  • Changes 5

Hi there,

I'm a student in CMPT479. I ran into a couple small issues building Parabix and I thought I would send these fixes along in case you wanted any of them. Hope you don't mind :)

The fixes are:

  • Use the <llvm/TargetParser/Triple.h> header with LLVM 16.0.0+ instead of <llvm/ADT/Triple.h> which was deprecated in LLVM 16.0.0.
  • Add a few apparently missing headers.
  • Declare mmap/munmap/madvise with C linkage in the MMap source kernel. glibc declares C functions noexcept(true) when __cplusplus, and this was causing these functions to fail to match the FunctionTypeBuilder template. I am assuming C linkage is what CBuilder::LinkFunction expects.

With these changes I got a clean build against LLVM 17.0.1 and all tests passed. The three above items are each committed separately in case you want to cherry-pick some of them.

Thanks!

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: build-fixes