(Answer) (Category) SCO comp.unix.sco.programmer FAQ. : (Category) SCO Development Environments. :
OpenServer 5.0.X, Error as or ld illegal option --b or as: TO FIX: Usage: [-Qyn] [-VTRmn] [-Ydm,dir] [-o outfile] [-t target] file. What is wrong?
This is usually caused by using the gnu assembler instead of the SCO assembler. I recommend using the SCO assembler. I rename my gnu as and ld to as.org and ld.org. It is usually found in /usr/local/i?86-pc-sco3.2v5.0.X where ? is 3,4,5,6 and X is your version of SCO Unix. Skunkware gcc x would be 5 or 6.
gerberb@zenez.com
This is only an issue for OpenServer. The above answer is incorrect for UnixWare and OpenUNIX.
It's also why the installation instructions (http://gcc.gnu.org/install/specific.html#ix86-*-sco3.2v5*) say:
The native SCO assembler that is provided with the OS at no charge is normally required. If, however, you must be able to use the GNU assembler (perhaps you're compiling code with asms that require GAS syntax) you may configure this package using the flags --with-gnu-as. You must use a recent version of GNU binutils; versions past 2.9.1 seem to work well. In general, the --with-gnu-as option isn't as well tested as the native assembler.
robertlipe@usa.net
[Append to This Answer]
Previous: (Answer) How do I get BerkeleyDB.3.1 to compile on OpenServer 5.0.X and UnixWare 7.X.X?
Next: (Answer) What patches are needed for OpenSSL 0.9.6b for UnixWare or OpenUNIX 8?
This document is: http://www.zenez.com/cgi-bin/scoprogfaq/faq?file=97
[Search] [Appearance]
This is a Faq-O-Matic 2.721.