Tiny Core Linux
Tiny Core Base => Corepure64 => Topic started by: chikunjiho920@gmail.com on July 05, 2025, 11:55:59 PM
-
running TinyCorePure64 version 16.12.11 in
Oracle VirtualBox Version 7.1.10 r169112 (Qt6.5.3) in
Windows 11 Home 24H2 - 26100.4351 on
AMD Ryzen 5 5625U Acer Aspire Thin & Light Laptop with 48GB RAM (16GB + 32GB) & 512GB SSD NVMe M.2 2280 PCIe3.0
I am installing gcc-15.1.0 and I am getting this error:
checking for long long... yes
checking size of long long... configure: error: in `/home/tc/gcc-15.1.0/build/gcc':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details
make[2]: *** [Makefile:4424: configure-stage1-gcc] Error 77
make[2]: Leaving directory '/home/tc/gcc-15.1.0/build'
make[1]: *** [Makefile:26661: stage1-bubble] Error 2
make[1]: Leaving directory '/home/tc/gcc-15.1.0/build'
make: *** [Makefile:1103: all] Error 2
Similar error while installing ruby-3.4.4
Any help to resolve would be appreciated. Thanks.
-
Hi chikunjiho920@gmail.com
That's not an installation error, that's a build error. TC16 x86_64 has
gcc 14.2.0 available. For some reason you are attempting to build
version 15.1.0.
When compiling anything on Tinycore, you should install a proper
toolchain, which is compiletc.tcz.
Did you do that?
Notes related to building gcc are included in here:
http://tinycorelinux.net/16.x/x86_64/release/src/toolchain/compile_tc16_x86_64
You may need to rebuild some gcc dependencies first, I don't know.
Juanito typically builds the toolchain, maybe he has some additional comments.
Notes on how the currently available version of ruby was compiled are here:
http://tinycorelinux.net/15.x/x86_64/tcz/src/ruby/compile_ruby
Why are you attempting to rebuild gcc and ruby?
-
Hi Rich,
That's not an installation error, that's a build error.
Yes, build error.
Issue resolved.
installing compiletc.tcz
along with perl5 ncursesw-dev bash mpc-dev udev-lib-dev texinfo coreutils glibc_apps gettext python3.9
fixed the error and resolved the issue as you mentioned & provided the relevant link to. Thank you so much.
Why are you attempting to rebuild gcc and ruby?
Well I am just exploring to build and install various programs that in turn required Ruby & GCC versions.
-
After 3 hours of Build process I am getting this error:
-o build/genautomata.o ../../gcc/genautomata.cc
/home/tc/gcc-15.1.0/build/./prev-gcc/xg++ -B/home/tc/gcc-15.1.0/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/home/tc/gcc-15.1.0/libstdc++-v3/libsupc++ -L/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/tc/gcc-15.1.0/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -fchecking=1 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o build/genautomata \
build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/sort.o build/read-md.o build/errors.o .././libiberty/libiberty.a -lm
build/genautomata ../../gcc/common.md ../../gcc/config/i386/i386.md \
insn-conditions.md > tmp-automata.cc
make[3]: *** [Makefile:2796: s-automata] Killed
make[3]: Leaving directory '/home/tc/gcc-15.1.0/build/gcc'
make[2]: *** [Makefile:4816: all-stage3-gcc] Error 2
make[2]: Leaving directory '/home/tc/gcc-15.1.0/build'
make[1]: *** [Makefile:26902: stage3-bubble] Error 2
make[1]: Leaving directory '/home/tc/gcc-15.1.0/build'
make: *** [Makefile:1103: all] Error 2
Appreciate any help to resolve this error. Thanks.
-
Hi chikunjiho920@gmail.com
I "think" your problem occurred here:
----- Snip -----
make[3]: *** [Makefile:2796: s-automata] Killed
----- Snip -----
Your process might have been killed by the kernels
Out Of Memory (OOM) killer.
You should be able to confirm that by running it again
and checking dmesg for a kill message after it dies:
dmesg | grep -i kill
-
@Rich
Yes, killed by kernels Out Of Memory killer.
Here is the mseg:
tc@box:~/gcc-15.1.0/build$ dmesg | grep -i kill
[32614.157379] cc1plus invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0
[32614.157902] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,task=Isolated Web Co,pid=27981,uid=1001
[32614.158169] Out of memory: Killed process 27981 (Isolated Web Co) total-vm:2623812kB, anon-rss:94200kB, file-rss:116kB, shmem-rss:5876kB, UID:1001 pgtables:1268kB oom_score_adj:167
[32915.236284] genautomata invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0
[32915.236847] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,task=Privileged Cont,pid=27850,uid=1001
[32915.237222] Out of memory: Killed process 27850 (Privileged Cont) total-vm:2514636kB, anon-rss:44992kB, file-rss:0kB, shmem-rss:7600kB, UID:1001 pgtables:924kB oom_score_adj:167
[32918.136766] genautomata invoked oom-killer: gfp_mask=0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), order=0, oom_score_adj=0
[32918.137165] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,task=genautomata,pid=9113,uid=1001
[32918.137177] Out of memory: Killed process 9113 (genautomata) total-vm:1479416kB, anon-rss:1476092kB, file-rss:0kB, shmem-rss:1900kB, UID:1001 pgtables:2936kB oom_score_adj:0
Thank you.
-
Hi chikunjiho920@gmail.com
I can think of a couple of possibilities:
1. Try allocating more RAM to your VM.
2. You no doubt assigned a virtual disk of some sort to your VM.
If it's RAM based, try switching to a disk backed device.
3. It looks like you are building this in your /home/ directory.
Is your /home/ directory persistent or RAM based?
If it's RAM based, try switching to a persistent /home/ directory
-
And don't forget the Swap settings :)
If you have a swap ?
Like @Rich says just add more ram to the VM, or like how internet saying "just download more memory" :)