Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

gitlab has been updated to version 16

  • SWIFT
  • SWIFTsimSWIFTsim
  • Issues
  • #600
Closed
Open
Issue created Jul 15, 2019 by James Willis@jwillisDeveloper

Compilation Error with GCC 9.1.0

There are extra checks with GCC 9.1.0 that need addressing:

common_io.c: In function 'io_check_output_fields':
common_io.c:1808:43: error: '%s' directive writing up to 43199 bytes into a region of size 1011 [-Werror=format-overflow=]
 1808 |         sprintf(field_name, "SelectOutput:%s_%s", list[field_id].name,
      |                                           ^~
common_io.c:1808:9: note: 'sprintf' output 15 or more bytes (assuming 43214) into a destination of size 1024
 1808 |         sprintf(field_name, "SelectOutput:%s_%s", list[field_id].name,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1809 |                 part_type_names[ptype]);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~

single_io.c: In function 'write_output_single':
single_io.c:1154:36: error: '%s' directive writing up to 43199 bytes into a region of size 243 [-Werror=format-overflow=]
 1154 |       sprintf(field, "SelectOutput:%s_%s", list[i].name,
      |                                    ^~
single_io.c:1154:7: note: 'sprintf' output 15 or more bytes (assuming 43214) into a destination of size 256
 1154 |       sprintf(field, "SelectOutput:%s_%s", list[i].name,
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1155 |               part_type_names[ptype]);
      |               ~~~~~~~~~~~~~~~~~~~~~~~

I think it's just a case of lengthening the string.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking