This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Building GNU packages



Hello,

	On the gcc FAQ it said to send questions pertaining to build
problems to this address.  I am a user on a Solaris 2.7 system, and I find
the available software less than adequate.  So I've decided to compile a
bunch of the GNU software, and keep the GNU executables and other
necessary files in my own directory.  I have 100 MB of personal space on
this system.

	I've tried compiling some software, and it fails miserably.  I've
noticed that this system uses gcc 2.7.2 from the following command:
bash-2.03$ gcc -v
Reading specs from
/usr/site/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/specs
gcc version 2.7.2

I've decided to build gcc-2.95.2, so the compiler will be up
to date.  I've tried building 'GNU make' and 'gcc', and can sucessfully
run the "./configure".  However, executing make after this fails with what
look like parsing or syntax errors in the installed system libraries.
Here are two sets of error messages I get when compiling GNU make.  (I
would give the gcc-compilation error messages, but I've had to delete the
gcc sources due to space limitations.  But the gcc errors are VERY similar
to those for GNU make).

-----------------

bash-2.03$ make          
make  all-recursive
Making all in glob
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c glob.c
In file included from
/usr/site/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/time.h:90,
                 from /usr/include/sys/time.h:405,
                 from /usr/include/sys/select.h:17,
                 from
/usr/site/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/types.h:281,
                 from glob.c:33:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'
glob.c: In function `glob_in_dir':
glob.c:1319: `DIR' undeclared (first use this function)
glob.c:1319: (Each undeclared identifier is reported only once
glob.c:1319: for each function it appears in.)
glob.c:1319: parse error before `)'
glob.c:1333: dereferencing pointer to incomplete type
glob.c:1339: dereferencing pointer to incomplete type
glob.c:1404: parse error before `)'
glob.c:1416: parse error before `)'
*** Error code 1
make: Fatal error: Command failed for target `glob.o'
Current working directory /home/jeffwass/gnu/make-3.79.1/glob
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/jeffwass/gnu/make-3.79.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'

-------------------- 

Wondering if this was due to errors with using the Solaris make instead of
GNU make, I tried the build.sh script instead, and got the following
errors:

bash-2.03$  sh ./build.sh
compiling ar.c...
In file included from
/usr/site/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/time.h:90,
                 from /usr/include/sys/time.h:405,
                 from /usr/include/sys/select.h:17,
                 from
/usr/site/gcc-2.7.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/types.h:281,
                 from gettext.h:27,
                 from make.h:56,
                 from ./ar.c:20:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'

-------------------

Please help, I'd like to get the GNU software suite compiled, foster
free-software on this Solaris system, and then compile other available
software-packages as well.

Thanks alot.

	- Jeffrey Wasserman
	  Graduate Physics Student at Johns Hopkins University
	  jeffwass@pha.jhu.edu
	  http://www.pha.jhu.edu/~jeffwass


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]