GCC-Trouble !

GCC-Trouble !

Post by to.. » Sun, 10 May 1998 04:00:00

I am having trouble installing GCC compiler and related files. When I
run the program make from the bin86-0.4 directory I get the following
message :

for d in ld as; do \
  (cd $d; make "LIBS=" "CFLAGS=-O6 -fomit-frame-pointer -D_POSIX_SOURCE"
"LDFLAGS=" "CC=gcc " all;); \
make[1]: Entering directory `/bin86-0.4/ld'
gcc  -O6 -fomit-frame-pointer -D_POSIX_SOURCE -DBSD_A_OUT -I../a.out.h
-D__linux__ -c dumps.c
make[1]: Leaving directory `/bin86-0.4/ld'
make[1]: Entering directory `/bin86-0.4/as'
gcc  -o det_endian det_endian.c
make[1]: Leaving directory `/bin86-0.4/as'
In file included from dumps.c:11:
type.h:172: fcntl.h: No such file or directory
type.h:179: sys/stat.h: No such file or directory
type.h:189: stdlib.h: No such file or directory
type.h:197: string.h: No such file or directory
type.h:212: unistd.h: No such file or directory
make[1]: *** [dumps.o] Error 1
det_endian.c:20: stdio.h: No such file or directory
make[1]: *** [endian.h] Error 1
make: *** [all] Error 2

Whats going on ? I have followed the instructions for my version of
liunx to the best of my ability but cannot see whats gone wrong.

Can anyone shed any light ? I would really appriciate any help because
there are loads of things I want to download but they are all in source.

Below are the instruction I have followed. I had to change some things
because certain directorys did not correspond e.g i486 was
i586-unknown.... on my system. Don't know if this has anything to do
with it ?


GCC INSTALL GUIDE...for DosLinux... (By Kent Robotti) (2-4-98)
These are the basic programs you'll need to compile source code.

Packages you will need.

Always get the latest version of these packages, the one with the
number and make sure it has a '?.bin.tar.gz' in the extension.

(1). gcc-          <-The GCC (c) & G++ (c++)
(2). bin86-0.4.tar.gz                <-No .bin = you have to compile
(3). binutils-  <-The latest as of this writing.)
(4). libc.5.4.45.bin.tar.gz          <-C Libraries.)
(5). libg++-       <-C++ Libraries.)
(6). Linux Kernel Source.            <-2.0.33 etc.)

(7). ld.so-1.9.6.tar.gz              <-You already have this on
# tar xzvf ld.so-1.9.6.tar.gz
ld.so-1.9.6# ./instldso.sh --force   <-Do this to install it.)

(8). make-1.76.1.tar.gz              <-You already have this on
make-1.76# mv make /usr/bin          <-Put make in /usr/bin.)


Where to get.


~# ncftp
ncftp> open ftp.tsx-11.mit.edu
ncftp> cd pub/linux/packages/GCC      <-For packages 1-5.)
ncftp> ls                             <-See what's there.)
ncftp> bin                            <-Set to binary mode.)
ncftp> get packages 1-5
ncftp> quit

Get the latest stable linux kernel source.
You need the kernel source to use the gcc compiler.
The kernel source is about 7 megabytes compressed.


ncftp> open ftp.funet.fi
ncftp> cd pub/Linux/kernel/src/v2.0   <-v2.0 is stable, next stable v2.2

ncftp> ls LATEST*
<LATEST-IS-2.0.33 etc.>
ncftp> lcd /usr/src                   <-Change local directory to:
ncftp> bin                            <-Set to binary mode.)
ncftp> get linux-2.0.33.tar.gz        <-The latest as of this writing.)
ncftp> quit

If you lose the connection before you have the complete package, you can

do get again, ncftp will pick up where it left-off.

The order in which they're Unpacked is unimportant, unpack them from
the / directory.  The command is: tar xzvfC package.tar.gz /

# tar xzvfC gcc- /      <-Begin unpacking one at a
# tar xzvfC binutils* /
# tar xzvfC libc-5.4.45.bin.tar.gz /      <-5.4.45 or later.)
# tar xzvfC libg++* /

Put the kernel source in the /usr/src directory and unpack it.

/usr/src# tar xzvf linux-2.0.33.tar.gz

You have /lib/libc.so.5.4.44 on doslinux52, so wait for
libc-5.4.45.bin.tar.gz or later, you can't overwrite a
libc with the same version, the system will freeze and
you won't be able to get back in it, because they're
will be no /lib/libc.so.?.

You can get the latest libc from:


Put the complete path to 'tofu' like above.


Linking up.

Create symbolic link called 'cpp' in the /lib directory.

# cd /lib
lib# ln -sf /usr/lib/gcc-lib/i486-linux/ cpp

Create these symbolic links to the kernel source in the /usr/include

# cd /usr/include
usr/include# ln -sf /usr/src/linux/include/linux linux
           # ln -sf /usr/src/linux/include/asm-i386 asm
           # in -sf /usr/src/linux/include/scsi scsi
           # ldconfig -v   <-Run ldconfig to link everything up.)


The moment of TRUTH.

Some programs in order to compile require the files
linux/autoconf.h & version.h, if these files don't exist you'll have to
create them.

~# cd /usr/src/linux

/usr/src/linux# make oldconfig                 <-Create autoconf.h.)
              # make include/linux/version.h   <-Create version.h.)

          TRUTH:# tar xzvf bin86-0.4.tar.gz   <-Unpack and compile
          TRUTH:# cd bin86-0.4
TRUTH:/bin86-0.4# make
                # make install

After make install if there was no problem you can delete the directory.

# rm -rf bin86-0.4


Now of course you can remove all the packages, because you unpacked and
installed them.

# rm *.tar.gz   <-This will remove anything in the current directory
                  a .tar.gz extension.

# rm /usr/src/linux-2.0.33.tar.gz


Cleaning up.

To remove /usr/m68k, sparc, directories, these are things you probably
don't need.

# cd /usr
usr/# rm -rf m68k-linux m68k-linuxaout sparc-sun-solaris2


If you loose a connection when your downloading something you can pick
up where it left off.

For example.

ncftp> get linux-2.0.33.tar.gz
Lost connection.

Ncftp has command recall, if you press the up-arrow key previous typed
commands will be recalled.

ncftp> lcd /usr/src                    <-Make sure your 'lcd' is the
ncftp> bin
ncftp> get linux-2.0.33.tar.gz         <-Pick up where it left off.)

Read the /usr/doc/GUIDES/kernel-guide for guidance in compiling the
kernel source.

Yoy can just do 'get' to resume an interupted download with ncftp 3.0,
you have ncftp 4.2 you have to use the -C option 'get -C
If you're using 'ftp' the command would be 'reget package.tar.gz'.

These are other programs you might need.

1. bison.tgz
2. flex.tgz

Get the above programs and unpack them from the / directory.


If the above programs are not in slakware/d1, look at
slakware/FILE_LIST for info on which directory they're
in d2, d3, etc.

# tar xzvfC bison.tgz /     <-To install them, don't forget the /.)
# tar xzvfC flex.tgz /

End... (2-4-98)

= EmAiL :-   to...@altavista.net     =
                \   /
               (.) (.)


1. gcc troubles

while compiling 2-2-14 kernel i got following messages/troubles

gcc: internal compiler error : program cc1 got fatal signal 11
cpp: output pipe has been closed

the error ocured in different places and among 7 attempts to compile one
was successful.
what is it? it seems to be not a compiler error (i had successful
attempt). the documentation says there may be an arror in source,
but error ocures in different places.
gcc version 2.91.66
cpp version 1.1.2-24

2. Help: Command-Line Editing Issues

3. GCC trouble

4. MultiPort Serial Controller

5. gcc trouble...am i missing something?

6. OSR 5.0.4 and Adaptec 1505 Card

7. gcc troubles (odd stuff during build)

8. Queues questions...

9. GCC :trouble reading object libraries

10. More@!!.. Panasonic/SB-CD troubles, trouble, trouble...

11. Trouble, trouble, trouble - SCSI ?

12. Trouble building gcc- on linux

13. Trouble with GCC