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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1183
Closed
Open
Created Nov 04, 2015 by Artem Shinkarov@temaOwner

There is no way to resolve relative paths in linkobj's pragma unless one cd into the source tree

Bugzilla Link 1170
Created on Nov 04, 2015 14:25
Version svn
OS Linux
Architecture PC

Extended Description

The output for Raphael:
gcc: error: src/test.o: No such file or directory
abort: System failed to execute shell command
abort: gcc -std=gnu99  /tmp/SAC_N1B09J/fun1.o /tmp/SAC_N1B09J/globals.o src/test.o  
abort: -Ltest 
abort: -L/usr/local/lib/sac2c/1.2.beta-BlackForest-54-8d30-dirty/modlibs/host/seq
Source tree:
test
├── main.sac
├── mod.sac
└── src
    ├── test.c
    └── test.o
test.c:
int SACfoo (int a)
{
  return a + 1;
}
mod.sac:
module mod;
export all;
external int foo (int x);
    #pragma linkname "SACfoo"
    #pragma linksign [0,1]
    #pragma linkobj "src/test.o"
A call from test's parent directory:
sac2c test/mod.sac -Xl -Ltest
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking