I am trying to compile a small C++ program using AutoConf, AutoMake on a Rasberry Pi Zero W with a 16 GB SD card and am seeing the following error in config.log after running ./configure --enable-debug:
configure:2604: checking whether the C++ compiler works
configure:2626: g++ conftest.cpp >&5
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2630: $? = 1
configure:2668: result: no
configure: failed program was:
Here is list of TCZs enabled:
tce-status -i
autoconf
automake
binutils
bluetooth-4.9.22-piCore
bzip2-lib
ca-certificates
cmake
compiletc
firmware-rpi3-wireless
gamin
gcc
gcc_base-dev
gcc_libs
gcc_libs-dev
git
glib2
gmp
gmp-dev
isl
isl-dev
libedit
libelf
libgcrypt
libgpg-error
libiw
libnl
libssh2
libtool
m4
mc
mpc
mpc-dev
mpfr
mpfr-dev
ncurses
openssh
openssl
pcre
perl5
readline
sqlite3
sqlite3-bin
sqlite3-dev
wifi
wireless-4.9.22-piCore
wireless_tools
wpa_supplicant
Any help to resolve this issue would be greatly appreciated.