|
|
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