Hello, Marina!
Thank you for your generous suggestion. Here is the problem that I encounter when compiling GPC on AIX (I now try it on AIX 4.2, to be exact).
Which version of GCC are you using? If it is gcc-2.8.x then you should give EGCS a try.
When doing "make LANGUAGES=pascal", the compilation worked successfully for a long time, and then failed - here is an excerpt from the output: --------------------- BEGIN --- for i in `./xgcc -B./ --print-multi-lib`; do dir=`echo $i | sed -e 's/; .*$//'`; flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; make GCC_FOR_TA RGET="./xgcc -B./" AR="ar" AR_FLAGS="rc" CC="gcc" CFLAGS="-g" RANLIB="ranlib" ; fi; done /bin/sh: not found
make: The error code from the last command is 1.
Stop. make: The error code from the last command is 2. ---------------------- END ---- (the last two lines repeating several times)
I tried to see what I get by "./xgcc -B./ --print-multi-lib" - it was:
.; soft-float;@msoft-float power;@mcpu=power powerpc;@mcpu=powerpc soft-float/power;@msoft-float@mcpu=power soft-float/powerpc;@msoft-float@mcpu=powerpc
and even tried some tricks to exclude ".;" as apparently leading to "/bin/sh: not found" failure; nothing helped.
My own `g[pc]c --print-multi-lib' also outputs `.;', so I do not think that this is really the origin of the error.
Maybe different shells work differently in this context? What happens if you use `/bin/bash' instead of `/bin/sh'?
Hope this helps,
Peter