Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 23 May 2015, 03:36
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Introducing T2
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 6 [85 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Thu 08 Jan 2015, 23:23    Post subject:  Introducing T2
Subject description: Compile everything from source
 

We have used T2 to compile packages from source, for use in some of our puppies.
The 2.x and 4.x series are examples.

However, we never compiled everything in T2. Until now. My objective was to compile absolutely every package required for a puplet, in T2, and I had to add 105 new packages into T2 to do it.

I was then able to compile for i686 and amd64 (x86_64) CPUs, and use those packages to build a puplet -- in my case, I am building Quirky, a fork of Puppy. But, the principle applies to any puplet that is built with Woof, woof-CE or my woofQ.
Woof has always had the ability to import binary packages compiled in T2, and use them to build a puplet.

The official T2 project:
http://t2-project.org/

My local T2 is a bit different, as there are many modifications specific for packages needed to build a puplet.
My blog announcement of T2:
http://bkhome.org/news/?viewDetailed=00157

My local T2 is hosted by my home-brew version control system named Bones:
http://bkhome.org/bones/

My fork of Woof, specifically for creating Quirky, has been used to build Quirky April64, version 6.89, using the packages from T2.
For the very first time, a puplet built with packages compiled entirely from source, except for "noarch" PETs:
http://bkhome.org/news/?viewDetailed=00152

I will upload woofQ soon. The main difference from woof-CE is I have modified and added to the package templates, and all of those changes can be imported to woof-CE.

Anyway, I thought that I would start this thread, in case there is anyone wanting to play with T2.
In theory, you could even try a compile for an ARM target, however, a cross-build is not fully supported (won't build all pkgs), so you would have to be running a ARM-native Linux distro on ARM hardware.

Using T2 also requires some investment of effort to learn how to use it. There is a User Manual available from the T2 website.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Sat 10 Jan 2015, 06:31    Post subject:  

I posted some usage notes for T2, appended to this blog thread:

http://bkhome.org/news/?viewDetailed=00157

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
gcav


Joined: 25 May 2012
Posts: 56
Location: Ontario

PostPosted: Sat 10 Jan 2015, 12:43    Post subject: Compiling Quirky-April from t2 -issue-  

Hi Barry, I downloaded your t2 mirror and proceeded to compile April (-wary6) but got an error compiling gcc.

I am using a new Unicorn installation to compile.
My question., how dependent is the t2 compile from Quirky 6.0.5, or can it be built with fresh Unicorn.

I will try and fix this error...

gc

-----SNIP------

_TLS -o unwind-dw2-fde-dip.o -MT unwind-dw2-fde-dip.o -MD -MP -MF unwind-dw2-fde
-dip.dep -fexceptions -c ../../../libgcc/unwind-dw2-fde-dip.c -fvisibility=hidde
n -DHIDE_EXPORTS
In file included from ./gthr-default.h:35:0,
from ../../../libgcc/gthr.h:148,
from ../../../libgcc/unwind-dw2-fde-dip.c:47:
./gthr-default.h:59:30: error: '__PTHREAD_SPINS' undeclared here (not in a funct
ion)
#define __GTHREAD_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER
^
../../../libgcc/unwind-dw2-fde.c:48:41: note: in expansion of macro '__GTHREAD_MUTEX_INIT'
static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
^
In file included from ../../../libgcc/unwind-dw2-fde-dip.c:89:0:
../../../libgcc/unwind-dw2-fde.c:48:1: warning: missing initializer for field '({anonymous})' of 'struct __pthread_mutex_s' [-Wmissing-field-initializers]
static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
^
In file included from /usr/include/i386-linux-gnu/sys/types.h:270:0,
from ../../../libgcc/../gcc/tsystem.h:90,
from ../../../libgcc/unwind-dw2-fde-dip.c:34:
/usr/include/i386-linux-gnu/bits/pthreadtypes.h:122:5: note: '({anonymous})' declared here
};
^../../../libgcc/static-object.mk:17: recipe for target 'unwind-dw2-fde-dip.o' failed
make[2]: *** [unwind-dw2-fde-dip.o] Error 1
make[2]: Leaving directory '/mnt/sdb1/projects/t2-project/t2-trunk-APRIL/src.gcc.wary6.20150110.105346.18833.dataarts/gcc-4.9.2/objdir/i686-t2-linux-gnu/libgcc'
Makefile:10153: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/mnt/sdb1/projects/t2-project/t2-trunk-APRIL/src.gcc.wary6.20150110.105346.18833.dataarts/gcc-4.9.2/objdir'
Makefile:840: recipe for target 'all' failed
make: *** [all] Error 2
Due to previous errors, no 0-gcc.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ...
Searching for orphaned files ...
Found 5 files for this package.
Found 0 orphaned files for this package.
Clear (old) md5sums ...
Creating md5sum files ... done.
Creating package description ...
Making post-install adaptions.
0-gcc.err.gz
Description  Error log
gz

 Download 
Filename  0-gcc.err.gz 
Filesize  48.98 KB 
Downloaded  123 Time(s) 
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Sun 11 Jan 2015, 07:37    Post subject:  

gcav,
T2 can be sensitive to the host distro. Apparently it just doesn't like some distros (from comments on the T2 mail-list).

My 'wary6' build was done, at least first time, with Quirky 6.1.4, so I suggest that you install and boot that version, and of course install the devx pet.

I have more recently been using Quirky April, i686 build, to do a 'wary6' build with T2, and it works.
However, I have not yet uploaded a build of April i686.

...will do that soon, after having tested April64 a bit more, and squashed more bugs.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Sun 11 Jan 2015, 07:44    Post subject:  

Quirky 6.1.4 is here:

http://distro.ibiblio.org/quirky/quirky6/x86/quirky-6.1.4/

devx pet (200MB):

http://distro.ibiblio.org/quirky/quirky6/x86/packages/pet_packages-quirky6/devx-6.1.4-quirky.pet

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 681
Location: Staffordshire

PostPosted: Sun 11 Jan 2015, 14:52    Post subject:  

It would not boot with the menu entry generated by the installer script - hung once vmlinuz started up (booting from internal HDD).
Code:

title Quirky 6.1.4 (full install on sda11)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=PARTUUID=00025d5b-11 rootwait rw

I tried it without 'rootwait' but just got a kernel panic.

..but then ran Grub4Dos, and it produced this entry which works:
Code:

title Quirky 6.1.4 (sda11/boot)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=/dev/sda11 ro



Otherwise OK so far.
-------------------------------------------------------
Computer
HP Compaq nc6120
Processor Intel(R) Pentium(R) M processor 2.00GHz
Memory 1285MB (126MB used)
Host bridge 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
VGA compatible controller 915GM/GMS/910GML Express Graphics Controller (rev 03)
Display controller 915GM/GMS/910GML Express Graphics Controller (rev 03)
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4026
Location: Kiel,Germany

PostPosted: Sun 11 Jan 2015, 19:05    Post subject:  

Keef wrote:
It would not boot with the menu entry generated by the installer script - hung once vmlinuz started up (booting from internal HDD).
Code:

title Quirky 6.1.4 (full install on sda11)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=PARTUUID=00025d5b-11 rootwait rw

I tried it without 'rootwait' but just got a kernel panic.

..but then ran Grub4Dos, and it produced this entry which works:
Code:

title Quirky 6.1.4 (sda11/boot)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=/dev/sda11 ro



Otherwise OK so far.


Likely a grep /dev/DEVICE bug .. sda1 sda10 sda11 sda12 ...

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Sun 11 Jan 2015, 22:49    Post subject:  

Karl Godt wrote:
Keef wrote:
It would not boot with the menu entry generated by the installer script - hung once vmlinuz started up (booting from internal HDD).
Code:

title Quirky 6.1.4 (full install on sda11)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=PARTUUID=00025d5b-11 rootwait rw

I tried it without 'rootwait' but just got a kernel panic.

..but then ran Grub4Dos, and it produced this entry which works:
Code:

title Quirky 6.1.4 (sda11/boot)
  uuid 799f02a1-6eb6-4e6e-9ff7-221ebda231f7
  kernel /boot/vmlinuz root=/dev/sda11 ro



Otherwise OK so far.


Likely a grep /dev/DEVICE bug .. sda1 sda10 sda11 sda12 ...


No, doesn't seem like a grep problem.

root=PARTUUID=00025d5b-11

...the '00025d5b' value is the UUID of the entire drive, the '-11' is the partition number, so it looks correct.

# fdisk -l /dev/sda

should confirm that UUID number is correct.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10883
Location: Ontario Canada,Sydney Australia

PostPosted: Mon 12 Jan 2015, 02:42    Post subject:  

Here's a very simple Black Quirky Background 6.9KB
ttuuxxx
Quirky-B-W.jpg
Description 
jpg

 Download 
Filename  Quirky-B-W.jpg 
Filesize  6.9 KB 
Downloaded  199 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
gcav


Joined: 25 May 2012
Posts: 56
Location: Ontario

PostPosted: Mon 12 Jan 2015, 11:39    Post subject: Compiling Quirky-April from t2 -issue2-  

Barry,
compile went much further now.

1) compilation broke when some packages were not downloaded correctly, I downloaded them manually and removed the .err file and it worked.


2) man-1.6f no longer exists on http://dl.t2-project.org/mirror/9.0/m/
It mutated to man-1.6g

Is the mirror constantly being changed?

I was going to change the .desc file
from package/base/man but wanted to see how you dealt with these items?

gc



-----------------dump--------------------

Downloading man:download/mirror/m/man-1.6f.tar.gz ...

curl: (22) The requested URL returned error: 404 Not Found
Finished downloading 0 bytes in 0.322 seconds (0.000 bytes/sec).
ERROR: CURL Returned Error 22. Please read the curl manpage.
INFO: download from mirror failed, trying original URL.

curl: (7) Failed connect to primates.ximian.com:80; No route to host
Finished downloading 0 bytes in 7.161 seconds (0.000 bytes/sec).
ERROR: CURL Returned Error 7. Please read the curl manpage.

Building tools in build/.../TOOLCHAIN/tools.chroot:
-> Building tools.chroot/wrapper/cmd_wrapper.
-> Building tools.chroot/wrapper/strip_wrapper.
-> Building tools.chroot/wrapper/{uname,arch}.
-> Building tools.chroot/wrapper/install_wrapper.
-> Building tools.chroot/bin/getdu.
-> Building tools.chroot/bin/getfiles.
-> Building tools.chroot/bin/fl_wrparse.
-> Building tools.chroot/bin/fl_stparse.
-> Building tools.chroot/lib/fl_wrapper.so.
-> Testing tools.chroot/lib/fl_wrapper.so.
-> Creating tools.chroot/lib/parse-config.
-> Creating tools.chroot/lib/pkg_*_{pre,post}.conf

== 09:05:07 =[2]=> Building base/man [1.6f 9.0-trunk].
-> Parallel build using 2 jobs enabled.
-> Reading package config: package/base/man/man.conf
-> Preparing build in src.man.wary6.20150112.090503.30078.datartas
-> Building. Writing output to $root/var/adm/logs/2-man.out
*> File not found: download/mirror/m/man-1.6f.tar.bz2
*> Did you run ./scripts/Download for this package?
!> gcc (GCC) 4.9.2
!> Copyright (C) 2014 Free Software Foundation, Inc.
!> This is free software; see the source for copying conditions. There is NO
!> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
!> [ writing debug log to /TOOLCHAIN/src.man.wary6.20150112.090503.30078.data ..
!> Due to previous errors, no 2-man.log file!
!> (Try enabling xtrace in the config to track an error inside the build syst ..
== 01/12/15 09:05:12 =[2]=> Aborted building package man.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 3223
Location: Heart of Texas

PostPosted: Mon 12 Jan 2015, 13:50    Post subject:  

Thanks, look forward to trying this on my mele ARM after all its available. There is a distributed compile method that preprocesses the C code then passes that for compile on networked machines of any architecture. Fatdog64 has that available to save compile time.
Could you add that to T2 and April. it takes a few hundred K for setup but configuration needs some help. Its just above my level of intelligence, did it once before losing half my IQ due to chemical imbalance.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 3223
Location: Heart of Texas

PostPosted: Mon 12 Jan 2015, 13:54    Post subject:  

http://en.m.wikipedia.org/wiki/Distcc

here is a wikipedia link
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Mon 12 Jan 2015, 19:53    Post subject: Re: Compiling Quirky-April from t2 -issue2-  

gcav wrote:
Barry,
compile went much further now.

1) compilation broke when some packages were not downloaded correctly, I downloaded them manually and removed the .err file and it worked.


2) man-1.6f no longer exists on http://dl.t2-project.org/mirror/9.0/m/
It mutated to man-1.6g

Is the mirror constantly being changed?

I was going to change the .desc file
from package/base/man but wanted to see how you dealt with these items?

gc



-----------------dump--------------------

Downloading man:download/mirror/m/man-1.6f.tar.gz ...

curl: (22) The requested URL returned error: 404 Not Found
Finished downloading 0 bytes in 0.322 seconds (0.000 bytes/sec).
ERROR: CURL Returned Error 22. Please read the curl manpage.
INFO: download from mirror failed, trying original URL.

curl: (7) Failed connect to primates.ximian.com:80; No route to host
Finished downloading 0 bytes in 7.161 seconds (0.000 bytes/sec).
ERROR: CURL Returned Error 7. Please read the curl manpage.

Building tools in build/.../TOOLCHAIN/tools.chroot:
-> Building tools.chroot/wrapper/cmd_wrapper.
-> Building tools.chroot/wrapper/strip_wrapper.
-> Building tools.chroot/wrapper/{uname,arch}.
-> Building tools.chroot/wrapper/install_wrapper.
-> Building tools.chroot/bin/getdu.
-> Building tools.chroot/bin/getfiles.
-> Building tools.chroot/bin/fl_wrparse.
-> Building tools.chroot/bin/fl_stparse.
-> Building tools.chroot/lib/fl_wrapper.so.
-> Testing tools.chroot/lib/fl_wrapper.so.
-> Creating tools.chroot/lib/parse-config.
-> Creating tools.chroot/lib/pkg_*_{pre,post}.conf

== 09:05:07 =[2]=> Building base/man [1.6f 9.0-trunk].
-> Parallel build using 2 jobs enabled.
-> Reading package config: package/base/man/man.conf
-> Preparing build in src.man.wary6.20150112.090503.30078.datartas
-> Building. Writing output to $root/var/adm/logs/2-man.out
*> File not found: download/mirror/m/man-1.6f.tar.bz2
*> Did you run ./scripts/Download for this package?
!> gcc (GCC) 4.9.2
!> Copyright (C) 2014 Free Software Foundation, Inc.
!> This is free software; see the source for copying conditions. There is NO
!> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
!> [ writing debug log to /TOOLCHAIN/src.man.wary6.20150112.090503.30078.data ..
!> Due to previous errors, no 2-man.log file!
!> (Try enabling xtrace in the config to track an error inside the build syst ..
== 01/12/15 09:05:12 =[2]=> Aborted building package man.


All of the sources are here:

http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/

...perhaps we need a little script that downloads all of those, and writes them to the download/mirror/a-z subdirectories.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7440
Location: Perth, Western Australia

PostPosted: Mon 12 Jan 2015, 19:55    Post subject:  

I seem to recall, compiling of man-1.6g is broken, which is why I am using 1.6f.
_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
gcmartin


Joined: 14 Oct 2005
Posts: 4986
Location: Earth

PostPosted: Tue 13 Jan 2015, 09:58    Post subject: KVM isa Linux feature which canbe useful to you for T2-Bones  

Note to community developers who will use T2 to build PUPs.

This post intends to make easy the use of Bones for T2 that BarryK has developed without sacrificing your normal use of your PC while the build process for your distro is running..

Some things that may be useful for you.
  • Are you aware that you can use KVM and get near native speed when doing system builds?
  • How many are aware that the main distro will run so that you can surf the web or build files while your system builds run self contain and wont disturb you?
  • How many are aware that you can run a 64bit distro in a KVM guest even though the main system is 32bit?
  • Are you aware that there is 1 distro, namely EmSee, which has EVERYTHING needed to do this built into its base, without any need to install any packages?
  • Are you aware that FATDOG and Lighthouse has some items built-in, though not KVM, which allows you do similar without the virtual hardware assist?
  • Are you aware, that the PETs to setup KVM use has been thoroughly tested in the following PUPs: EmSee, Slacko64, FATDOG and LightHouse64?
Essentially, the KVM subsystem allows you to isolate your distro compile-to-build processing without placing a major hardship on your normal system use. It allows you to isolate the building of your distro away from the normal system without penalizing the build process too much so that you have adequate performance, as well, for your normal use with the things you do on the web, or documenting, or information packaging in a webpage, or ...

With your running distro that either contains all the items, OOTB, for KVM (like EmSee) for you, or you choose to add the subsystem tools to your running distro, KVM is simple to allow you to boot a 32bit guest or a 64bit guest NO MATTER IF YOUR RUNNING DISTRO IS ONLY 32bit. The ONLY hardware requirement to do so is to insure that your processor has the virtual machine firmware (almost ever AMD does and many/most Intels contain the firmware also)

There is a guide to make this simple to understand and use; found here.

edited: spellings and punctuations

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile

Last edited by gcmartin on Wed 14 Jan 2015, 01:05; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 6 [85 Posts]   Goto page: 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1150s ][ Queries: 12 (0.0031s) ][ GZIP on ]