This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question !!
- From: Zack Weinberg <zack at codesourcery dot com>
- To: 김명수 <mskim at hurim dot net>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 15 Mar 2004 18:56:12 -0800
- Subject: Re: Question !!
- References: <JFENKNBNAJCAFOMIHFAPCECDCBAA.mskim@hurim.net>
=?ks_c_5601-1987?B?sei47bz2?= <mskim@hurim.net> writes:
> Hello !!
> My name Kim myoung soo, live in korea.
>
> I have som problem to use gcc tool.
>
> H/W Itanium2 CPU
> OS : HP-UX B.11.23 U ia64
>
> I installed the gcc-3.3.2 on itanium server.
> Position : /usr/local/bin, ....
>
> but I have some error at comile time ..
>
> % gcc -o test main.c
> error 2005: invalid option '-x'
That error message is coming from the assembler. GCC won't work with
the system assembler. You need to install GAS, and configure GCC with
*both* --with-gnu-as and --with-as=/path/to/gas. I do not remember
offhand whether or not you need GNU ld as well.
The HPUX Porting Center has binary packages of gcc 3.3.2 and binutils
2.14, which I know work, since I built them. 3.3.3 coming in the next
few days, unless there's a disaster.
zw