bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-utils] problem with gcc 2.95 on x86 solaris


From: prasanna
Subject: [Bug-gnu-utils] problem with gcc 2.95 on x86 solaris
Date: Fri, 15 Sep 2000 11:55:40 +0100

Hello sir/madam,
        I am facing a problem with gcc 2.95 on solaris 2.6 on x86 platform .
. I downloaded the gcc binaries from some site, and installed them on solaris2.6 running on x86 platform . When i use gcc i get some undefined __builtin_va_alist . I browsed the web and saw that this a problem faced by many people. I have put below the steps that i followed to install the binaries , please suggest me what i must do, i need your help very badly.
1) I downloaded in a directory /export/home/gcc.
2) i unzipped and extracted the file. and i got a new dir called GNUgcc.
3) i did pkgadd -d . GNUgcc
4) It installed the package and put all the files in /usr/local/xyz dir's. I mean xyz stands for bin and many more dir's. With sub-dirs too. i see that there is a varargs.h in one of these dir's. and one which came along with solaris (/usr/include/sys/varargs.h) i copied the gcc varargs to this dir and i got a new error saying va_start too many args. I don't know what i should do. Please suggest me. How do i over come the __builtin_va_alist problem. I read in the solaris varargs.h file that i have to define a test macro called __BUILTIN_VA_ARG_INCR . But i defined this when i was compiling my code. i mean i used -D__BUILTIN_VA_ARG_INCR option , but still i got __builtin_va_alist undefined problem.
Note that  I am not using  -I /usr/include
as an option. infact i am not using the -I option to include any option.
My options to gcc are as follows.
gcc -c -DSOLARIS -x -c -fno-builtin -D_KERNEL_ -DMODULE -O2 -Di386 -o abc/xyz.o xyz.cpp
Please suggest me what i must do.
thanks in advance and regards
prasanna



reply via email to

[Prev in Thread] Current Thread [Next in Thread]