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
  • #1180
Closed
Open
Created Sep 26, 2015 by Robert Bernecky@rbeDeveloper

-o oh! Can't find libsac.so if -o is used

Bugzilla Link 1163
Created on Sep 26, 2015 20:28
Version svn
OS Linux
Architecture PC
Attachments config.log

Extended Description

I am confused by the behavior of -o in Ubuntu 10.04LTS with the
current sac2c:
sac2c SCSprf_toi.sac  -o a.out
a.out; echo $?
a.out: error while loading shared libraries: libsac.so: cannot open shared object file: No such file or directory
127
sac2c SCSprf_toi.sac
a.out; echo $?
0
My naive expectation is that -o merely gives the binary file a different
name. It appears to be doing something else, though...
sac2c -V
sac2c 1.2.beta-BlackForest-35-78466
 product
 (Sat Sep 26 11:35:29 EDT 2015 by sac)
Here are the diffs from -d cccall:
3c3
< gcc -std=gnu99   -pedantic -fPIC -DPIC  -Wall -Wextra -Wstrict-prototypes -Wno-unused-parameter -Wno-unused-but-set-variable   -march=native -mtune=native -pedantic -Wall -Wno-unused -fno-builtin  -I.  -DSAC_TARGET_STRING=\"default_sbi\" -DSAC_MODEXT_STRING=\".so\" -DSAC_TARGET_ENV_STRING=\"host\" -DSAC_SBI_STRING=\"seq\" -DSAC_RC_METHOD=SAC_RCM_local -DSAC_BACKEND_C99 -DSAC_MT_LIB_ -DSAC_MT_MODE=0 -DSAC_DO_RTSPEC=0 -I/usr/local/include/sac2c/1.2.beta-BlackForest-35-78466 -c -o /tmp/SAC_jZ85El/a.out.o ./a.out.c
---
> gcc -std=gnu99   -pedantic -fPIC -DPIC  -Wall -Wextra -Wstrict-prototypes -Wno-unused-parameter -Wno-unused-but-set-variable   -march=native -mtune=native -pedantic -Wall -Wno-unused -fno-builtin  -I.  -DSAC_TARGET_STRING=\"default_sbi\" -DSAC_MODEXT_STRING=\".so\" -DSAC_TARGET_ENV_STRING=\"host\" -DSAC_SBI_STRING=\"seq\" -DSAC_RC_METHOD=SAC_RCM_local -DSAC_BACKEND_C99 -DSAC_MT_LIB_ -DSAC_MT_MODE=0 -DSAC_DO_RTSPEC=0 -I/usr/local/include/sac2c/1.2.beta-BlackForest-35-78466 -c -o /tmp/SAC_UtQc4H/crud.exe.o ./crud.exe.c
5c5
< gcc -std=gnu99  /tmp/SAC_jZ85El/a.out.o    -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -L./host/seq -Wl,-rpath,./host/seq -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/rt/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/rt/host/seq  -lsacpreludeMod  -L/usr/local/dislin -Wl,-rpath,/usr/local/dislin -L/opt/local/lib -Wl,-rpath,/opt/local/lib -lsacphmc -lsac -lsacdistmem -lsacphmc   -o a.out
---
> gcc -std=gnu99  /tmp/SAC_UtQc4H/crud.exe.o    -Lcrud.exe/host/seq -Wl,-rpath,crud.exe/host/seq -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/modlibs/host/seq -L./host/seq -Wl,-rpath,./host/seq -L/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/rt/host/seq -Wl,-rpath,/usr/local/lib/sac2c/1.2.beta-BlackForest-35-78466/rt/host/seq  -lsacpreludeMod  -L/usr/local/dislin -Wl,-rpath,/usr/local/dislin -L/opt/local/lib -Wl,-rpath,/opt/local/lib -lsacphmc -lsac -lsacdistmem -lsacphmc   -o crud.exe
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking