Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: ave on January 19, 2021, 09:24:58 AM
-
Did anyone on TinyCore manage to compile and run the C source? If so, how?
-
Hi, welcome to the forum.
You're looking for compiletc (the "build-essential" for tiny core)
# download
tce-load -w compiletc
# install
tce-load -i compiletc
-
I use the TinyCore on Paspberry Pi (piCore-9.0.3). SSH works.
polikuo, thanks for the answer! But I have already used the command:
tc@box:~$ tce-load -wi compiletc
On the command tce-load -w compiletc I get the answer:
compiletc is already downloaded.
On the command tce-load -i compiletc I get the answer:
libmount-dev.tcz not found!
On the command gcc --version I get the answer:
-sh: gcc: not found
On the command tce-ab / s "gcc" I get the answer:
tce - Tiny Core Extension browser
1. gcc_base-dev.tcz
2. gcc-doc.tcz
3. gcc_libs-dev.tcz
4. gcc_libs.tcz
5. gcc-locale.tcz
6. gcc.tcz
Enter selection ( 1 - 6 ) or (q)uit:
I press 6 and get the answer:
Title: gcc.tcz
Description: GCC, the GNU C/C++ compiler
Version: 7.1.0
Author: Many, see source tarball for list
Original-site: https://gcc.gnu.org
Copying-policy: Various by components, see source tarball for details
Size: 30.4M
Extension_by: bmarkus
Tags: COMPILER CLI
Comments: GCC core components (C, C++)
----
Compiled for piCore 9.x
gcc.tcz.info
-
Hi ave
libmount-dev.tcz is listed as a dependency of compiletc.tcz and should already have been installed.
What happens if you do this:
tce-load -wil libmount-dev
tce-load -i compiletc
-
Hi, Rich
root@box:/home/tc# tce-load -wil libmount-dev
Don't run this as root.
root@box:/home/tc# exit
tc@box:~$ tce-load -wil libmount-dev
libmount-dev.tcz.dep OK
Downloading: libmount.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: write error: No space left on device
md5sum: libmount.tcz.md5.txt: no checksum lines found
Error on libmount.tcz
tc@box:~$ tce-load -i compiletc
libmount-dev.tcz not found!
I use SD 1 GB.
sudo du -sh /
38.1M /
sudo df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 162.4M 11.2M 151.2M 7% /
tmpfs 90.2M 0 90.2M 0% /dev/shm
/dev/mmcblk0p2 9.6M 8.9M 0 100% /mnt/mmcblk0p2
/dev/loop0 1.1M 1.1M 0 100% /tmp/tcloop/mc
/dev/loop1 1.9M 1.9M 0 100% /tmp/tcloop/openssh
/dev/loop2 128.0K 128.0K 0 100% /tmp/tcloop/libssh2
/dev/loop3 256.0K 256.0K 0 100% /tmp/tcloop/ncurses
/dev/loop4 128.0K 128.0K 0 100% /tmp/tcloop/libedit
/dev/loop5 1.3M 1.3M 0 100% /tmp/tcloop/openssl
/dev/loop6 128.0K 128.0K 0 100% /tmp/tcloop/gamin
/dev/loop7 128.0K 128.0K 0 100% /tmp/tcloop/libelf
/dev/loop8 384.0K 384.0K 0 100% /tmp/tcloop/pcre
/dev/loop9 384.0K 384.0K 0 100% /tmp/tcloop/libgcrypt
/dev/loop10 640.0K 640.0K 0 100% /tmp/tcloop/ca-certificates
/dev/loop11 128.0K 128.0K 0 100% /tmp/tcloop/bzip2-lib
/dev/loop12 128.0K 128.0K 0 100% /tmp/tcloop/libgpg-error
/dev/loop13 128.0K 128.0K 0 100% /tmp/tcloop/expat2
/dev/loop14 384.0K 384.0K 0 100% /tmp/tcloop/ipv6-4.9.22-piCore
/dev/loop15 128.0K 128.0K 0 100% /tmp/tcloop/libtasn1
/dev/loop16 384.0K 384.0K 0 100% /tmp/tcloop/p11-kit
/dev/loop17 256.0K 256.0K 0 100% /tmp/tcloop/gmp
/dev/loop18 384.0K 384.0K 0 100% /tmp/tcloop/nettle
/dev/loop19 128.0K 128.0K 0 100% /tmp/tcloop/libidn
-
I previously ran the command tce-update [force]
Updating curl.tcz OK
Updating diffutils.tcz OK
Updating e2fsprogs_base-dev.tcz OK
Updating file.tcz OK
Updating findutils.tcz OK
Updating flex.tcz OK
Updating gawk.tcz mv: write error: No space left on device
OK
Updating gcc.tcz OK
Updating gcc_base-dev.tcz OK
Updating gcc_libs-dev.tcz mv: write error: No space left on device
OK
Updating glibc_add_lib.tcz OK
Updating glibc_apps.tcz mv: write error: No space left on device
OK
Updating glibc_base-dev.tcz OK
Updating glibc_gconv.tcz OK
Updating grep.tcz mv: write error: No space left on device
OK
Updating libffi_base-dev.tcz OK
Updating libmount-dev.tcz OK
Updating libmount.tcz OK
Updating make.tcz OK
Updating patch.tcz mv: write error: No space left on device
OK
Updating pkg-config.tcz mv: write error: No space left on device
OK
Updating sed.tcz mv: write error: No space left on device
OK
Updating util-linux_base-dev.tcz OK
Updating zlib_base-dev.tcz OK
Reboot to use new updated extensions!
Press Enter key.
Probably on this command, the updates filled all the memory on the flash drive.
-
Hi ave
----- Snip -----
wget: write error: No space left on device
----- Snip -----
I use SD 1 GB.
----- Snip -----
sudo df -h
Filesystem Size Used Available Use% Mounted on
----- Snip -----
/dev/mmcblk0p2 9.6M 8.9M 0 100% /mnt/mmcblk0p2
----- Snip -----
Your SD card may be 1 GB but you're only using a small portion of it. I guess you didn't read this:
http://tinycorelinux.net/9.x/armv6/releases/RPi/IMPORTANT
which states:
Before installation
===================
Read README
After installation
=================
Expand mmcblk0p2 partition
Backup your individual newly generated SSH keys, use 'filetool.sh -b' command.
The README file is here:
http://tinycorelinux.net/9.x/armv6/releases/RPi/README
Go to the section titled SD card partitioning
-
Rich, thanks for the answer!