WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore 9.x ARMv6 g++ compilation error  (Read 2906 times)

Offline aloha-tcl

  • Newbie
  • *
  • Posts: 2
piCore 9.x ARMv6 g++ compilation error
« on: September 12, 2018, 09:59:06 AM »
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:

Code: [Select]
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:

Code: [Select]
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.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: piCore 9.x ARMv6 g++ compilation error
« Reply #1 on: September 12, 2018, 10:23:12 AM »
Hi aloha-tcl
I suspect it's because you are missing  glibc_base-dev.tcz,  possibly due to installing extensions manually instead of
using the tools provided.

Offline aloha-tcl

  • Newbie
  • *
  • Posts: 2
Re: piCore 9.x ARMv6 g++ compilation error
« Reply #2 on: September 12, 2018, 10:24:52 AM »
Thank you Rich for quick response and correct answer.

I loaded glibc_base-dev.tcz and it works as excepted.

Thank you so much once again.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: piCore 9.x ARMv6 g++ compilation error
« Reply #3 on: September 12, 2018, 10:37:56 AM »
Hi aloha-tcl
Your toolchain is still missing some extensions. To download and install them run:
Code: [Select]
tce-load -w -i compiletcIf your Pi does not have an Internet connection and you insist on downloading manually, here is the  .tree  file that lists the
entire dependency tree for  compiletc.tcz:
http://tinycorelinux.net/9.x/armv6/tcz/compiletc.tcz.tree

May I also recommend you read this fine book to get a better understanding on using Tinycore Linux:
http://tinycorelinux.net/book.html