This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: PDP-11 ABI for cross compiler
>
> So please leave these away from your configure and rebuild after :
>
> 1. copying the 2.11BSD headers into '/usr/local/pdp11-bsd2.11/include'
>
> 2. copying the 2.11BSD libraries into '/usr/local/pdp11-bsd2.11/lib'
>
> 3. making a symlink '/usr/local/pdp11-bsd2.11/sys-include' to point to
> Â '/usr/local/pdp11-bsd2.11/include'
>
Still doesn't work:
$ cat a.c
int
main()
{
return 0;
}
$ pdp11-bsd2.11-gcc -v a.c
Using built-in specs.
Target: pdp11-bsd2.11
Configured with: ../gcc-4.1.2/configure --target=pdp11-bsd2.11
--enable-languages=c --disable-shared
--enable-version-specific-runtime-libs --disable-libssp
Thread model: single
gcc version 4.1.2
/usr/local/libexec/gcc/pdp11-bsd2.11/4.1.2/cc1 -quiet -v a.c -quiet
-dumpbase a.c -auxbase a -version -o /var/tmp//ccHvKHNh.s
ignoring duplicate directory
"/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/../../../../pdp11-bsd2.11/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/include
/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/../../../../pdp11-bsd2.11/sys-include
End of search list.
GNU C version 4.1.2 (pdp11-bsd2.11)
compiled by GNU C version 4.2.1 20070719 [FreeBSD].
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c5b0349ab39347980af82a7463e08ccd
/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/../../../../pdp11-bsd2.11/bin/as
-o /var/tmp//ccTMtunv.o /var/tmp//ccHvKHNh.s
/usr/local/libexec/gcc/pdp11-bsd2.11/4.1.2/collect2
/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/../../../../pdp11-bsd2.11/lib/crt0.o
-L/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2
-L/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/../../../../pdp11-bsd2.11/lib
/var/tmp//ccTMtunv.o -lgcc -lc -lgcc
/usr/local/lib/gcc/pdp11-bsd2.11/4.1.2/libgcc.a(__main.o):__main.o:(.text+0x86):
undefined reference to `_atexit'
collect2: ld returned 1 exit status
It compiles fine, can't link. 2.11BSD libraries are in
/usr/local/pdp11-bsd2.11/lib
$ pwd
/usr/local/pdp11-bsd2.11
$ ll
total 10
drwxr-xr-x 5 root wheel - 512 Oct 25 12:37 ./
drwxr-xr-x 17 root wheel - 512 Oct 23 00:50 ../
drwxr-xr-x 2 root wheel - 512 Oct 25 13:45 bin/
drwxr-xr-x 6 terminus wheel - 1024 Oct 25 12:37 include/
drwxr-xr-x 3 root wheel - 1536 Oct 25 12:19 lib/
lrwxr-xr-x 1 root wheel - 7 Oct 25 12:37 sys-include@ -> include
$ ls lib
c0* libI77_p.a libln.a* libtermcap.a*
c1* libU77.a libm.a* libtermcap_p.a*
c2* libU77_p.a libm_p.a* libtermlib.a*
cpp* libc.a libmp.a* libtermlib_p.a*
crt0.o libc_p.a libom.a* libutil.a
ldscripts/ libcurses.a libom_p.a* libutil_p.a
lib2648.a libcurses_p.a libplot.a libvmf.a
lib300.a libdbm.a libplot2648.a libvmf_p.a
lib300s.a libdbm_p.a libplot7221.a libvt0.a
lib4013.a liberrlst.a libplotaed.a liby.a*
lib4014.a liberrlst_p.a libplotbg.a mcrt0.o
lib450.a libf77plot.a libplotdumb.a oc0*
libF77.a libident.a libplotgigi.a oc1*
libF77_p.a libident_p.a libplotimagen.a oc2*
libI66.a libkern.a libstubs.a
libI77.a libl.a* libstubs_p.a
What to try next?
Thanks,
--
Aram HÄvÄrneanu