Re: gcc-3.4.6

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

 



Bill Cunningham kirjoitti:

>  i want to compile gcc-3.4.6 for a pdp-11 on my i686 machine.
> The --target=pdp11 doesn't work for some reason. Does anyone
> know what I am or am not doing right?

When not at all understanding what you was trying to do and what
problems you had,  I myself tried the 'no-opsys' pdp11 target with
my local gcc-3.4.6 sources but saw no problems with GCC itself :

/data1/home/src/gcc-3.4.6/build/gcc # ls -l xgcc cc1* collect2
-rwxr-xr-x  1 root root 2040166 May  1 23:17 cc1*
-rwxr-xr-x  1 root root 2454757 May  1 23:20 cc1plus*
-rwxr-xr-x  1 root root   94931 May  1 23:20 collect2*
-rwxr-xr-x  1 root root   90706 May  1 23:20 xgcc*
/data1/home/src/gcc-3.4.6/build/gcc # ./xgcc -v
Using built-in specs.
Thread model: single
gcc version 3.4.6 (by karuottu@xxxxxxxx)

I really don't know what your goal is but the previous was just what
I expected to get for this target...

But I have no information for the following:

- what is the C library used for this "pdp11" target?  There is also that
 'pdp11-bsd' target :

   pdp11-*-bsd)
           tm_file="${tm_file} pdp11/2bsd.h"
           use_fixproto=yes
           ;;
   pdp11-*-*)
           use_fixproto=yes
           ;;

 not only the 'pdp11-none' (no opsys) I used in my experiment and maybe
 it has its own BSD C library available somewhere....  I remember DEC's
 own 'RSX-11', 'RSTS-E' etc. opsyses for PDP-11 but seemingly GCC
 has no support for them.

Trying binutils-2.16.91.0.7 for this target gave though :

configure: error: GAS does not know what format to use for target pdp11-unknown-none
make[1]: *** [configure-gas] Error 1

The binutils subdir succeeded however and 'objdump --help' gave :

./objdump: supported targets: a.out-pdp11 srec symbolsrec tekhex binary ihex
./objdump: supported architectures: pdp11

so the default object format seems to be 'aout'... Trying 'ld' with 'make all-ld' however
succeeded :

/data1/home/src/binutils-2.16.91/build/ld # ./ld-new -V
GNU ld version 2.16.91.0.7 20060317
 Supported emulations:
  pdp11

So getting 'gas' was the only problem seen. And the C library question was left totally
open, no support in newlib or glibc for "bare pdp11 with 'aout' format"...

Here were my results with this target. It could require some elaboration from Bill before the claim "The --target=pdp11 doesn't work for some reason." could become more clear... The 'gas/config' had those 'tc-pdp11.c/h' files, so some support exists
there but is now broken somehow...



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux