Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2287
Closed
Open
Created Feb 01, 2022 by Renato Feroce@rferoce

sac2c do not protect space character in folderpath or filename when constructing compiler call

Assume wsl is opened and located in the folder "user/folder1 containing spaces/folder2 containing spaces".
In this folder, I created the file world.sac.

running the command "sac2c -o world./world.sac", resulted only in a generated file called "world.c" (both expected files "world" and "world.i" were not generated).
Moreover, the shell shows the error:

cc: error: containing: No such file or directory
cc: error: spaces/folder2: No such file or directory
cc: error: containing: No such file or directory
cc: error: spaces/a.out.i: No such file or directory
cc: error: user/folder1: No such file or directory
cc: error: containing: No such file or directory
cc: error: spaces/folder2: No such file or directory
cc: error: containing: No such file or directory
cc: error: spaces/a.out.c: No such file or directory
cc: fatal error: no input files
compilation terminated.
abort: System failed to execute shell command
abort: /usr/bin/cc -I. -I/usr/local/include/sac2c/1.3.3-MijasCosta-718-g26409/release
[...] // containing many flags and/or variables
abort: -Wno-unused -fno-builtin -E -o /user/folder1 containing spaces/folder2 containing
abort: spaces/a.out.i /user/folder1 containing spaces/folder2 containing spaces/a.out.c
abort: with exit code 1
compilation failed while Creating binary code.\

Edited Feb 02, 2022 by Sven-Bodo Scholz
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking