Re: PDP-11 ABI for cross compiler

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

 



Aram Havarneanu wrote:
Right, so I used aout, compiled binutils, but gcc build fails with:

cc -c   -O2 -pipe -fno-strict-aliasing -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-defin
ition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
    -Wno-overlength-strings    -DHAVE_CONFIG_H -I. -I. -I.././../gcc-4.3.2/gcc -
I.././../gcc-4.3.2/gcc/. -I.././../gcc-4.3.2/gcc/../include -I.././../gcc-43.2/
gcc/../libcpp/include -I/usr/local/include -I/usr/local/include -I.././../gcc-4.
3.2/gcc/../libdecnumber -I.././../gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecn
umber -I/usr/local/include   \
                .././../gcc-4.3.2/gcc/config/pdp11/pdp11.c -o pdp11.o
././../gcc-4.3.2/gcc/config/pdp11/pdp11.c: In function 'pdp11_output_function_p
rologue':
././../gcc-4.3.2/gcc/config/pdp11/pdp11.c:295: warning: implicit declaration of
 function 'df_regs_ever_live_p'
././../gcc-4.3.2/gcc/config/pdp11/pdp11.c: In function 'pdp11_output_function_e
pilogue':
././../gcc-4.3.2/gcc/config/pdp11/pdp11.c:377: error: lvalue required as left o
perand of assignment
gmake[2]: *** [pdp11.o] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/cross-gcc/work/build/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/usr/ports/devel/cross-gcc/work/build'
gmake: *** [all] Error 2
*** Error code 1
Hmmm, I tried gcc-4.1.2 for 'pdp11-bsd2.11' target and that seemed to succeed. Maybe gcc-4.3.2 is
broken for PDP11 :(   Support dropped (obsolete) in 4.3.3...
Build options were:

	--target=pdp11 \
	--enable-languages="c" \
	--with-system-zlib \
	--disable-nls \
	--with-libiconv-prefix="/usr/local" \
	--without-included_gettext \
	--with-newlib \
	--with-dwarf2 \
	--disable-shared \
	--with-gmp="/usr/local" \
	--with-mpfr="/usr/local" \

You must like things being as complicate as possible... My simple configure was :

../configure --build=i686-linux-gnu --host=i686-linux-gnu \
--target=pdp11-bsd2.11 --enable-languages=c,c++ --disable-shared \
--with-gxx-include-dir=/usr/local/include/c++/4.1.2 \
--enable-version-specific-runtime-libs

When I hadn't those 2.11BSD headers and libraries my build stopped in libstdc++-v3 :

checking for thread model used by GCC... single
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
configure: error: No support for this host/target combination.
make[1]: *** [configure-target-libstdc++-v3] Virhe 1
make[1]: Poistutaan hakemistosta "/data1/home/src/gcc-4.1.2/build"


[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