This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: building


ok... i created /tmp/gcc-build(because its not NFS, it will be faster)
then cd to there, and run /usr/local/src/gcc/gcc-3.3/configure 
--prefix=/usr/local/pkg/gcc/gcc-3.3
it did the same thing, when trying to configure in ....gcc-3.3/gcc it fails 
with the same, cannot determine host character set error.
here is the entire build process:
peteman@ezra:/tmp
>mkdir gcc-build
peteman@ezra:/tmp
>ls -l
total 8
drwxr-xr-x    2 brydon   faculty      4096 Jun 18 13:12 brydon
drwxrwx---    2 peteman  source       4096 Jun 20 10:19 gcc-build
-rw-------    1 peteman  deptstaf        0 Jun 17 16:34 petemanxauthority
peteman@ezra:/tmp
>chmod 700 gcc-build/
peteman@ezra:/tmp
>cd gcc-build/
peteman@ezra:/tmp/gcc-build
>/usr/local/src/gcc/gcc-3.3/configure --prefix=/usr/local/pkg/gcc/gcc-3.3
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /tmp/gcc-build using "mt-frag"
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /usr/bin/c++
checking for sys/file.h... no
checking for sys/param.h... no
checking for limits.h... no
checking for stdlib.h... no
checking for string.h... no
checking for unistd.h... no
checking for strings.h... no
checking for sys/time.h... no
checking for time.h... no
checking for sys/resource.h... no
checking for sys/stat.h... no
checking for sys/mman.h... no
checking for fcntl.h... no
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... no
checking for uintptr_t... no
checking for pid_t... no
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemps... no
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for sigsetmask... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for vfork.h... no
checking for working vfork... yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for _system_configuration... no
checking for getrusage... yes
checking for on_exit... yes
checking for psignal... yes
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for table... no
checking for sysctl... yes
checking for unistd.h... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... no
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
Configuring zlib...
loading cache ../config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for ranlib... (cached) ranlib
checking for strip... strip
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... no
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
finding the maximum length of command line arguments... 49153
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ../config.cache
loading cache ../config.cache
checking how to run the C preprocessor... /usr/bin/c++
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for sys/stat.h... (cached) no
checking for sys/types.h... no
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) no
updating cache ../config.cache
creating ./config.status
creating Makefile
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for gnatbind... no
checking for compiler driver that understands Ada... no
checking whether gcc accepts -Wno-long-long... yes
checking how to run the C preprocessor... /usr/bin/c++
checking for inline... (cached) inline
checking for volatile... yes
checking for long double... yes
checking for long long int... yes
checking for __int64... no
checking for built-in _Bool... no
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking execution character set... unknown
configure: error: *** Cannot determine host character set.
Configure in /tmp/gcc-build/gcc failed, exiting.
peteman@ezra:/tmp/gcc-build
>
I think that in gcc-3.3/gcc/configure, lines 1880 through 1930, the 
identification of the host character set(ascii/ebcdic) fails.  It should be 
ascii.


On Thursday 19 June 2003 05:06 pm, Eric Christopher wrote:
> On Thu, 2003-06-19 at 16:00, Peter T Greening wrote:
> > about #1, I don't understand exactly what you mean.
> > I did this:
> > cd /usr/local/src/gcc
> > tar -xvzf ~/tarballs/gcc-3.3.tgz
> > this created /usr/local/src/gcc/gcc-3.3.  I cd to this, and run
> > configure. cd gcc-3.3
> > ./configure --prefix=/usr/local/pkg/gcc/gcc-3.3
> > (note after build, a utility called pkglink will make links from
> > /usr/local/pkg/gcc/gcc-3.3/bin to /usr/local/bin and the same for lib,
> > var, etc, et. cetria.
> >
> >  How should I set up a "build" directory?
> >
> :pwd
>
> /home/foo
>
> :mkdir build-gcc
> :cd build-gcc
> :/usr/local/src/gcc/gcc-3.3/configure \
>
> --prefix=/usr/local/pkg/gcc/gcc-3.3
>
> :make bootstrap
> :make install
> :cd ..
> :rm -rf build-gcc
>
> -eric
>
> > On Wednesday 18 June 2003 05:16 pm, Eric Christopher wrote:
> > > On Wed, 2003-06-18 at 16:09, Peter T Greening wrote:
> > > > Hi, I am trying to build gcc 3.3 on a linux redhat NFS environment. 
> > > > The machine I am trying to build on is a redhat 7.3 running on an
> > > > athlon(mp), and almost all of the NFS mounted software was built on
> > > > 7.3 machines. The run configure as folllows:"./configure
> > > > --prefix=/usr/local/pkg/gcc/gcc-3.3". While building gnu c compiler,
> > > > it returns the following error:
> > >
> > > 1) Don't configure in the source directory. Make a build directory and
> > > use that.
> > > 2) When using nfs, and in general, it's a good idea to use full paths.
> > > e.g. /path/to/configure ....
> > >
> > > -eric

-- 
Pete Greening
student system administrator
----------------------------------------------------------------------
laziness is the ultimate motivation of all good system administrators,
any time they can automate, out-source, or otherwise eliminate a task
from their regular routine, it allows them to be more lazy.  A truly 
lazy system admin would never have to do anything, because everything
would be either automated and done by the machine, or done by users.  
The education of users also fulfills this laziness goal, an educated
user will both be more productive, and require less of the admin.
----------------------------------------------------------------------


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