<div dir="ltr"><div>Norm, </div><div> </div><div>thanks for the help. Applying the fix solves the issue I mentioned but now I have more issues.</div><div> </div><div> I can install clang, but when running I cannot compile and link files.</div>
<div>If I compile with -c flag it works but compiling the following x.c file gives an error:</div><div> </div><div>x.c:<br>int main(void)<br>{<br>  return 0;<br>}</div><div> </div><div>> ./clang x.c<br>/project/helder/scratch/packages2/bin/ld: unrecognized option '-C'<br>
/project/helder/scratch/packages2/bin/ld: use the --help option for usage information<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div> </div><div> </div><div>> ./clang -v x.c<br>
clang version 3.3 (tags/RELEASE_33/final)<br>Target: i386-pc-solaris2.10<br>Thread model: posix<br> "/project/helder/scratch/packages2/clang/bin/clang" -cc1 -triple i386-pc-solaris2.10 -emit-obj -mrelax-all -disable-free -main-file-name x.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.23 -v -resource-dir /project/helder/scratch/packages2/clang/bin/../lib/clang/3.3 -fdebug-compilation-dir /project/helder/scratch/packages2/clang/bin -ferror-limit 19 -fmessage-length 145 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/x-Owaa.H.o -x c x.c<br>
clang -cc1 version 3.3 based upon LLVM 3.3 default target i386-pc-solaris2.10<br>ignoring nonexistent directory "/usr/local/include"<br>#include "..." search starts here:<br>#include <...> search starts here:<br>
 /project/helder/scratch/packages2/clang/bin/../lib/clang/3.3/include<br> /usr/include<br>End of search list.<br> "/project/helder/scratch/packages2/bin/ld" -C -e _start -Bdynamic --dynamic-linker /usr/lib/ld.so.1 -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/values-Xa.o /usr/gcc/4.5/lib/gcc/i386-pc-solaris2.10/4.5.2/crtbegin.o -L/usr/gcc/4.5/lib/gcc/i386-pc-solaris2.10/4.5.2/ /tmp/x-Owaa.H.o -lgcc_s -lgcc -lc -lm /usr/gcc/4.5/lib/gcc/i386-pc-solaris2.10/4.5.2/crtend.o /usr/lib/crtn.o<br>
/project/helder/scratch/packages2/bin/ld: unrecognized option '-C'<br>/project/helder/scratch/packages2/bin/ld: use the --help option for usage information<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
<br></div><div>Any idea on how to solve this?</div><div> </div><div>Thanks!</div></div>