This is the mail archive of the gcc-bugs@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]

Hi, pls help to understand this sentense !


Installing GCC: Configuration
Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.

We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.

First, we highly recommend that GCC be built into a separate directory than the sources which does not reside within the source tree. This is how we generally build GCC; building where srcdir == objdir should still work, but doesn't get extensive testing; building where objdir is a subdirectory of srcdir is unsupported.

Second, when configuring a native system, either "cc" or "gcc" must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts may fail.



according to this last paragraph , i don't understand where to set this c/gcc complier before the gcc-2.95 compiler is installed  ?
.

# I like this gcc very much , it's strongly introduced by my friends . I extremly hope to get your help to install it on my sparc .

and  here is the log file when i first configure



uname -a
SunOS horse 5.5.1 Generic_103640-17 sun4m sparc SUNW,SPARCstation-20
# pwd
/local_data2/Shi
# ls -l
total 4
drwxrwxr-x  16 220      1002        1024 Jul 29 21:46 gcc-2.95
drwxr-xr-x   3 root     other        512 Aug 12 17:28 slj
# cd slj
# ls -l
total 114
-rw-r--r--   1 root     other      56296 Aug 12 17:28 Makefile
-rw-r--r--   1 root     other        108 Aug 12 17:28 mh-frag
drwxr-xr-x   2 root     other        512 Aug 12 17:28 sparc-sun-solaris2.5.1
# rm *
rm: sparc-sun-solaris2.5.1 is a directory
# rm -fr *
# ls
#          pwd
/local_data2/Shi
# ls -l
total 4
drwxrwxr-x  16 220      1002        1024 Jul 29 21:46 gcc-2.95
drwxr-xr-x   2 root     other        512 Aug 12 18:29 slj
# cd slj
# ls -l
total 0
# local_data2/Shi/gcc-2.95/configure --enable-languages=c++ wi      --with-as=/usr/ccs/bin --with-ld    =/usr/ccs/bin
local_data2/Shi/gcc-2.95/configure: not found
# /local_data2/Shi/gcc-2.95/configure --enable-languages=c++ --with-as=/usr/ccs/bin --with-ld=/usr/ccs/bin
Configuring for a sparc-sun-solaris2.5.1 host.
Created "Makefile" in /local_data2/Shi/slj using "mh-frag"
/usr/ucb/cc:  language optional software package not installed
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
 
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]