Build scripts to generate some Tiny Core Linux extensions
zlika / tce Goto Github PK
View Code? Open in Web Editor NEWBuild scripts to generate some Tiny Core Linux extensions
License: GNU General Public License v2.0
Build scripts to generate some Tiny Core Linux extensions
License: GNU General Public License v2.0
I downloaded some JDK/JRE binaries using tce-load
. They seem broken in respect of some native libraries. Is this the source code repo? What's the process to make changes in http://distro.ibiblio.org/tinycorelinux/11.x/x86/tcz/?
Hi
Trying to use tinycore 11.1 to run a Minecraft server and this is the error I get:
minecraft@mc-creative-01:/home/minecraft$ $JAVA_HOME/bin/java -jar minecraft-server_1.15.2.jar
Exception in thread "main" java.lang.InternalError: Unsupported Management version
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at sun.management.ManagementFactoryHelper$4.run(ManagementFactoryHelper.java:451)
at sun.management.ManagementFactoryHelper$4.run(ManagementFactoryHelper.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:448)
at java.lang.management.ManagementFactory.getRuntimeMXBean(ManagementFactory.java:350)
at org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup.<clinit>(JmxRuntimeInputArgumentsLookup.java:35)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.logging.log4j.util.LoaderUtil.newInstanceOf(LoaderUtil.java:158)
at org.apache.logging.log4j.util.LoaderUtil.newInstanceOf(LoaderUtil.java:180)
at org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:201)
at org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:300)
at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:110)
at org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(AbstractConfiguration.java:125)
at org.apache.logging.log4j.core.config.NullConfiguration.<init>(NullConfiguration.java:32)
at org.apache.logging.log4j.core.LoggerContext.<clinit>(LoggerContext.java:77)
at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:171)
at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:145)
at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:70)
at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:57)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at ais.<clinit>(SourceFile:17)
It doesn't work at all with the compact versions - relies on java.awt. It's built with Java 8, so using JRE 7 is out of the question.
I'm currently performing my own build on an x86 platform, I'll see where that gets me.
Hi
So needing JDK for the 64-bit port, I tried modifying the build script to detect an x64 userland (I've forked this repo and will send a pull request once I get this working) but it seems you can't build a minimal JVM on 64-bit and I can't find anything explaining why. Building a server or client JVM will bloat it out, which goes against TCL's goals. Any thoughts on how to proceed?
My build log is below.
x86_64 build detected
destination directory: jdk8u
adding changesets
adding manifests
adding file changes
added 1850 changesets with 2235 changes to 141 files
new changesets cfeea66a3fa8:14388b14d484
updating to branch default
85 files updated, 0 files merged, 0 files removed, 0 files unresolved
# Repositories: corba jaxp jaxws langtools jdk hotspot nashorn
corba: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/corba corba
corba: requesting all changes
corba: adding changesets
corba: adding manifests
corba: adding file changes
corba: added 1897 changesets with 4858 changes to 1392 files
corba: new changesets 55540e827aef:a7b8e960cd8a
corba: updating to branch default
corba: 1198 files updated, 0 files merged, 0 files removed, 0 files unresolved
jaxp: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/jaxp jaxp
jaxp: requesting all changes
jaxp: adding changesets
jaxp: adding manifests
jaxp: adding file changes
jaxp: added 1984 changesets with 8219 changes to 4242 files
jaxp: new changesets 6ce5f4757bde:b257fe295194
jaxp: updating to branch default
jaxp: 2072 files updated, 0 files merged, 0 files removed, 0 files unresolved
jaxws: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws jaxws
jaxws: requesting all changes
jaxws: adding changesets
jaxws: adding manifests
jaxws: adding file changes
jaxws: added 1788 changesets with 13786 changes to 6752 files
jaxws: new changesets 0961a4a21176:84332572ca78
jaxws: updating to branch default
jaxws: 3735 files updated, 0 files merged, 0 files removed, 0 files unresolved
langtools: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/langtools langtools
langtools: requesting all changes
langtools: adding changesets
langtools: adding manifests
langtools: adding file changes
langtools: added 3797 changesets with 22601 changes to 7191 files
langtools: new changesets 9a66ca7c79fa:74039619a940
langtools: updating to branch default
langtools: 6393 files updated, 0 files merged, 0 files removed, 0 files unresolved
hotspot: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot hotspot
hotspot: requesting all changes
hotspot: adding changesets
hotspot: adding manifests
hotspot: adding file changes
hotspot: added 9010 changesets with 42861 changes to 5758 files
hotspot: new changesets a61af66fc99e:da3a1f729b2b
hotspot: updating to branch default
hotspot: 4827 files updated, 0 files merged, 0 files removed, 0 files unresolved
nashorn: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/nashorn nashorn
nashorn: requesting all changes
nashorn: adding changesets
nashorn: adding manifests
nashorn: adding file changes
nashorn: added 2464 changesets with 11612 changes to 2991 files
nashorn: new changesets b8a1b238c77c:4e54b87c9c6f
nashorn: updating to branch default
nashorn: 2772 files updated, 0 files merged, 0 files removed, 0 files unresolved
jdk: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u/jdk jdk
jdk: requesting all changes
jdk: adding changesets
jdk: adding manifests
jdk: adding file changes
jdk: added 13617 changesets with 101304 changes to 28150 files
jdk: new changesets 37a05a11f281:e859d56516da
jdk: updating to branch default
jdk: 23628 files updated, 0 files merged, 0 files removed, 0 files unresolved
# Repositories: . corba jaxp jaxws langtools jdk hotspot nashorn
jaxws: cd jaxws && hg pull -u
jaxws: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws
jaxws: searching for changes
jaxws: no changes found
corba: cd corba && hg pull -u
corba: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/corba
corba: searching for changes
corba: no changes found
hotspot: cd hotspot && hg pull -u
hotspot: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot
hotspot: searching for changes
hotspot: no changes found
jdk: cd jdk && hg pull -u
jdk: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/jdk
jdk: searching for changes
jdk: no changes found
nashorn: cd nashorn && hg pull -u
nashorn: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/nashorn
nashorn: searching for changes
nashorn: no changes found
jaxp: cd jaxp && hg pull -u
jaxp: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/jaxp
jaxp: searching for changes
jaxp: no changes found
langtools: cd langtools && hg pull -u
langtools: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/langtools
langtools: searching for changes
langtools: no changes found
.: cd . && hg pull -u
.: pulling from http://hg.openjdk.java.net/jdk8u/jdk8u/
.: searching for changes
.: adding changesets
.: adding manifests
.: adding file changes
.: added 546 changesets with 661 changes to 29 files
.: new changesets 8207823b72b8:bb03d4e1088a
.: 29 files updated, 0 files merged, 0 files removed, 0 files unresolved
Running generated-configure.sh
configure: Configuration created at Sun Jul 28 02:16:43 UTC 2019.
configure: configure script generated at timestamp 1556533111.
checking for basename... /usr/bin/basename
checking for bash... /usr/local/bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/local/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/local/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /usr/bin/expr
checking for file... /usr/local/bin/file
checking for find... /usr/local/bin/find
checking for head... /usr/bin/head
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /bin/mktemp
checking for mv... /bin/mv
checking for nawk... no
checking for gawk... /usr/local/bin/gawk
checking for printf... /usr/bin/printf
checking for rm... /bin/rm
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /bin/touch
checking for tr... /usr/bin/tr
checking for uname... /bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/local/bin/xargs
checking for gawk... gawk
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for fgrep... /usr/local/bin/grep -F
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for cygpath... no
checking for greadlink... no
checking for readlink... /usr/bin/readlink
checking for df... /bin/df
checking for SetFile... no
checking for cpio... /bin/cpio
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking openjdk-build os-cpu... linux-x86_64
checking openjdk-target os-cpu... linux-x86_64
checking compilation type... native
checking for top-level directory... /opt/build/tce-master/openjdk-8/jdk8u
checking for presence of closed sources... no
checking if closed source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which interpreter of the JVM to build... template
checking which variants of the JVM to build... minimal1
configure: error: You cannot build a minimal JVM for a 64-bit machine.
configure exiting with result code 1
No configurations found for /opt/build/tce-master/openjdk-8/jdk8u/! Please run configure to create a configuration.
Makefile:55: *** Cannot continue. Stop.
No configurations found for /opt/build/tce-master/openjdk-8/jdk8u/! Please run configure to create a configuration.
Makefile:55: *** Cannot continue. Stop.
cp: can't stat 'build/linux-x86_64-normal-minimal1-release/images/j2sdk-image/*': No such file or directory
cp: can't stat 'build/linux-x86_64-normal-minimal1-release/images/j2re-image/*': No such file or directory
cp: can't stat 'build/linux-x86_64-normal-minimal1-release/images/j2re-compact1-image/*': No such file or directory
cp: can't stat 'build/linux-x86_64-normal-minimal1-release/images/j2re-compact2-image/*': No such file or directory
cp: can't stat 'build/linux-x86_64-normal-minimal1-release/images/j2re-compact3-image/*': No such file or directory
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives
-U --disable-deterministic-archives
Disable -D behavior (default)
-R --remove-section=<name> Also remove section <name> from the output
--remove-relocations <name> Remove relocations from section <name>
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-dwo Remove all DWO sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-M --merge-notes Remove redundant entries in note sections (default)
--no-merge-notes Do not attempt to remove redundant notes
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
mv: can't rename '/opt/build/tce-master/openjdk-8/tmp-tce/openjdk-8-jdk/usr/local/openjdk-8/man': No such file or directory
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-jdk.tcz, block size 4096.
M[===================================================================|] 1/1 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.46 Kbytes (0.00 Mbytes)
70.34% of uncompressed filesystem size (0.66 Kbytes)
Inode table size 89 bytes (0.09 Kbytes)
45.88% of uncompressed inode table size (194 bytes)
Directory table size 92 bytes (0.09 Kbytes)
69.17% of uncompressed directory table size (133 bytes)
Number of duplicate files found 0
Number of inodes 6
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 5
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
tc (1001)
Number of gids 2
root (0)
staff (50)
openjdk-8-jdk.tcz
openjdk-8-jdk.tcz.dep
openjdk-8-jdk.tcz.info
openjdk-8-jdk.tcz.list
openjdk-8-jdk.tcz.md5.txt
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-jre.tcz, block size 4096.
M[===================================================================|] 1/1 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.48 Kbytes (0.00 Mbytes)
67.30% of uncompressed filesystem size (0.72 Kbytes)
Inode table size 97 bytes (0.09 Kbytes)
42.92% of uncompressed inode table size (226 bytes)
Directory table size 103 bytes (0.10 Kbytes)
66.03% of uncompressed directory table size (156 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
tc (1001)
Number of gids 2
root (0)
staff (50)
openjdk-8-jre.tcz
openjdk-8-jre.tcz.dep
openjdk-8-jre.tcz.info
openjdk-8-jre.tcz.list
openjdk-8-jre.tcz.md5.txt
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-jre-compact1.tcz, block size 4096.
M[===================================================================|] 1/1 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.49 Kbytes (0.00 Mbytes)
67.83% of uncompressed filesystem size (0.73 Kbytes)
Inode table size 97 bytes (0.09 Kbytes)
42.92% of uncompressed inode table size (226 bytes)
Directory table size 113 bytes (0.11 Kbytes)
68.48% of uncompressed directory table size (165 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
tc (1001)
Number of gids 2
root (0)
staff (50)
openjdk-8-jre-compact1.tcz
openjdk-8-jre-compact1.tcz.info
openjdk-8-jre-compact1.tcz.list
openjdk-8-jre-compact1.tcz.md5.txt
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-jre-compact2.tcz, block size 4096.
M[===================================================================|] 1/1 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.49 Kbytes (0.00 Mbytes)
67.83% of uncompressed filesystem size (0.73 Kbytes)
Inode table size 97 bytes (0.09 Kbytes)
42.92% of uncompressed inode table size (226 bytes)
Directory table size 113 bytes (0.11 Kbytes)
68.48% of uncompressed directory table size (165 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
tc (1001)
Number of gids 2
root (0)
staff (50)
openjdk-8-jre-compact2.tcz
openjdk-8-jre-compact2.tcz.info
openjdk-8-jre-compact2.tcz.list
openjdk-8-jre-compact2.tcz.md5.txt
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-jre-compact3.tcz, block size 4096.
M[===================================================================|] 1/1 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.49 Kbytes (0.00 Mbytes)
67.83% of uncompressed filesystem size (0.73 Kbytes)
Inode table size 97 bytes (0.09 Kbytes)
42.92% of uncompressed inode table size (226 bytes)
Directory table size 113 bytes (0.11 Kbytes)
68.48% of uncompressed directory table size (165 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.49 Kbytes (0.00 Mbytes)
67.83% of uncompressed filesystem size (0.73 Kbytes)
Inode table size 97 bytes (0.09 Kbytes)
42.92% of uncompressed inode table size (226 bytes)
Directory table size 113 bytes (0.11 Kbytes)
68.48% of uncompressed directory table size (165 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
tc (1001)
Number of gids 2
root (0)
staff (50)
openjdk-8-jre-compact3.tcz
openjdk-8-jre-compact3.tcz.info
openjdk-8-jre-compact3.tcz.list
openjdk-8-jre-compact3.tcz.md5.txt
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on openjdk-8-doc.tcz, block size 4096.
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.24 Kbytes (0.00 Mbytes)
69.97% of uncompressed filesystem size (0.34 Kbytes)
Inode table size 59 bytes (0.06 Kbytes)
45.38% of uncompressed inode table size (130 bytes)
Directory table size 51 bytes (0.05 Kbytes)
68.00% of uncompressed directory table size (75 bytes)
Number of duplicate files found 0
Number of inodes 4
Number of files 0
Number of fragments 0
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 4
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
openjdk-8-doc.tcz
openjdk-8-doc.tcz.info
openjdk-8-doc.tcz.list
openjdk-8-doc.tcz.md5.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.