Project

General

Profile

News

LLVM & Clang 3.8

Added by Igor Pashev over 1 year ago

(00:55:16)
[pashev@dyson:~/GCD]
# clang++-3.8 --version
clang version 3.8.1-16+dyson3 (tags/RELEASE_381/final)
Target: x86_64-pc-solaris2.11
Thread model: posix
InstalledDir: /usr/bin

(00:55:27)
[pashev@dyson:~/GCD]
# clang++-3.8 gcd.cpp -o gcd-cpp -Wall -v
clang version 3.8.1-16+dyson3 (tags/RELEASE_381/final)
Target: x86_64-pc-solaris2.11
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.7.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.8.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9.1
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.8.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/5.2.1
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/lib/llvm-3.8/bin/clang" -cc1 -triple x86_64-pc-solaris2.11 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name gcd.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -fdeprecated-macro -fdebug-compilation-dir /home/pashev/GCD -ferror-limit 19 -fmessage-length 237 -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/tmp/gcd-c25289.o -x c++ gcd.cpp
clang -cc1 version 3.8.1 based upon LLVM 3.8.1 default target x86_64-pc-solaris2.11
ignoring nonexistent directory "/include" 
ignoring duplicate directory "/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1" 
ignoring duplicate directory "/usr/local/include" 
ignoring duplicate directory "/usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include" 
ignoring duplicate directory "/usr/include" 
#include "..." search starts here:
#include <...> search starts here:
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1/backward
 /usr/local/include
 /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include
 /usr/include
End of search list.
 "/usr/bin/x86_64-pc-solaris2.11-ld" --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64_sol2 -o gcd-cpp /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../x86_64-illumos/crt1.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../x86_64-illumos/crti.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../x86_64-illumos/values-Xa.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1 -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../x86_64-illumos -L/lib/x86_64-illumos -L/usr/lib/x86_64-illumos -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../.. -L/usr/lib/llvm-3.8/bin/../lib -L/lib -L/usr/lib -lstdc++ -lgcc_s -lc -lgcc -lm /var/tmp/gcd-c25289.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/crtend.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../x86_64-illumos/crtn.o

(00:55:37)
[pashev@dyson:~/GCD]
# clang++-3.8 -m32 gcd.cpp -o gcd-cpp -Wall -v
clang version 3.8.1-16+dyson3 (tags/RELEASE_381/final)
Target: i386-pc-solaris2.11
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.7.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.8.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/4.9.1
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.8.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/4.9.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-solaris2.11/5.2.1
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: 32;@m32
 "/usr/lib/llvm-3.8/bin/clang" -cc1 -triple i386-pc-solaris2.11 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name gcd.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1/32 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/i386-pc-solaris2.11/c++/5.2.1 -internal-isystem /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1/backward -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -fdeprecated-macro -fdebug-compilation-dir /home/pashev/GCD -ferror-limit 19 -fmessage-length 237 -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/tmp/gcd-b098d9.o -x c++ gcd.cpp
clang -cc1 version 3.8.1 based upon LLVM 3.8.1 default target x86_64-pc-solaris2.11
ignoring nonexistent directory "/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/i386-pc-solaris2.11/c++/5.2.1" 
ignoring nonexistent directory "/include" 
ignoring duplicate directory "/usr/local/include" 
ignoring duplicate directory "/usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include" 
ignoring duplicate directory "/usr/include" 
#include "..." search starts here:
#include <...> search starts here:
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/x86_64-illumos/c++/5.2.1/32
 /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../include/c++/5.2.1/backward
 /usr/local/include
 /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include
 /usr/include
End of search list.
 "/usr/bin/x86_64-pc-solaris2.11-ld" --hash-style=both --build-id --eh-frame-hdr -m elf_i386_sol2 -o gcd-cpp /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../lib32/crt1.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../lib32/crti.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../lib32/values-Xa.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/32/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/32 -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1 -L/usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../.. -L/usr/lib/llvm-3.8/bin/../lib -L/lib -L/usr/lib -lstdc++ -lgcc_s -lc -lgcc -lm /var/tmp/gcd-b098d9.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/32/crtend.o /usr/bin/../lib/gcc/x86_64-pc-solaris2.11/5.2.1/../../../../lib32/crtn.o

(00:55:54)
[pashev@dyson:~/GCD]
# ./gcd-cpp 11 121 44
11

smartmontools

Added by Igor Pashev over 1 year ago

(18:32:30)
[pashev@dyson:~]
# sudo smartctl -d scsi -a /dev/rdsk/c1t0d0s0
smartctl 6.6 2016-05-31 r4324 [x86_64-pc-solaris2.11] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

User Capacity:        750,156,374,016 bytes [750 GB]
Logical block size:   512 bytes
Serial number:        WD-WCATR7642009
Device type:          disk
Local Time is:        Wed Apr  5 18:32:37 2017 MSK
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     46 C
Drive Trip Temperature:        0 C

Manufactured in week 00 of year 0000
Specified cycle count over device lifetime:  100
Accumulated start-stop cycles:  0
Error Counter logging not supported

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Default           Completed                   -   22564                 - [-   -    -]
# 2  Default           Completed                   -   22489                 - [-   -    -]
# 3  Default           Completed                   -   22134                 - [-   -    -]
# 4  Default           Completed                   -   22107                 - [-   -    -]
# 5  Default           Completed                   -   17723                 - [-   -    -]
# 6  Default           Completed                   -   17697                 - [-   -    -]
# 7  Default           Completed                   -   14293                 - [-   -    -]
# 8  Default           Completed                   -   11814                 - [-   -    -]
# 9  Default           Completed                   -   10901                 - [-   -    -]
#10  Default           Completed                   -       3                 - [-   -    -]

(18:32:37)
[pashev@dyson:~]
# sudo smartctl -d scsi -a /dev/rdsk/c1t1d0s0
smartctl 6.6 2016-05-31 r4324 [x86_64-pc-solaris2.11] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

User Capacity:        750,156,374,016 bytes [750 GB]
Logical block size:   512 bytes
Serial number:        WD-WCATR7706359
Device type:          disk
Local Time is:        Wed Apr  5 18:32:40 2017 MSK
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     45 C
Drive Trip Temperature:        0 C

Manufactured in week 00 of year 0000
Specified cycle count over device lifetime:  100
Accumulated start-stop cycles:  0
Error Counter logging not supported

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Default           Completed                   -   21261                 - [-   -    -]
# 2  Default           Completed                   -   21187                 - [-   -    -]
# 3  Default           Completed                   -   20832                 - [-   -    -]
# 4  Default           Completed                   -   20805                 - [-   -    -]
# 5  Default           Completed                   -   16421                 - [-   -    -]
# 6  Default           Completed                   -   16395                 - [-   -    -]
# 7  Default           Completed                   -   12991                 - [-   -    -]
# 8  Default           Completed                   -   11805                 - [-   -    -]
# 9  Default           Completed                   -   10892                 - [-   -    -]
#10  Default           Completed                   -       2                 - [-   -    -]

Bye to Linode, welcome to Hetzner

Added by Igor Pashev almost 2 years ago

After running out of storage at Linode I decided to move to Hetzner.

Two linodes have be replaced by a single box at Hetzner with lots of storage in a RAID6 array, RAM, CPU resources.
Only hg.osdyson.org was lost, as it wasn't used anyway.

In addition, the main site now works over HTTPS.

GHC 8 & friends

Added by Igor Pashev about 2 years ago

Updated GHC to 8.0.1 and some essential Haskell bits to compose Haskell environment:

The Glorious Glasgow Haskell Compilation System, version 8.0.1
cabal-install version 1.24.0.1
Darcs 2.12.4 (release)
xmonad 0.12

Nix at Dyson

Added by Igor Pashev about 2 years ago

At least it is buildable and runs.

Nix is a purely functional package manager. This means that it treats packages like values in purely functional programming languages such as Haskell — they are built by functions that don’t have side-effects, and they never change after they have been built.

New kernel (2015-10-18)

Added by Igor Pashev about 3 years ago

Flawlessly upgraded. Updates to ZFS user-space and libc are coming soon.

uts (5.10.18.git.2a44663-0.1) unstable; urgency=medium

  * Here we go!
  * Deleted patches:
        debian/patches/desctbls_asm.s-rax.patch
        debian/patches/illumos-4431-4616-igb.patch
        debian/patches/illumos-4622-asy.patch
        debian/patches/illumos-4653.patch
        debian/patches/illumos-4679-intel-erratum-BT81.patch
        debian/patches/illumos-4682.patch
        debian/patches/illumos-4840-ddi_dma_mem_alloc.patch
        debian/patches/uts-cpr_stat.c-wtf.patch
        debian/patches/uts-hxge-operation-on-ldvp-may-be-undefined.patch
        debian/patches/uts-ib-hermon_cmd.c-undef-op.patch
        debian/patches/uts-ib-tavor_cmd.c-undef-op.patch
        debian/patches/uts-nxge-operation-on-ldvp-may-be-undefined.patch
        debian/patches/uts-strategy.c-undefined-op.patch
        debian/patches/uts-struct-ecppunit-e_busy-type.patch
  * Updated patches:
        debian/patches/dyson-split-system-AVL-headers.patch
        debian/patches/illumos-3373-gcc-offsetof.patch
        debian/patches/statfs-is-statvfs.patch
        debian/patches/sys-mnttab.h-include-stdio.h.patch
        debian/patches/sys_mman.h-bsd_source.patch
  * Refreshed patches:
        debian/patches/add-futimes.patch
        debian/patches/msghdr-xpg42.patch
        debian/patches/relax-standard-conformance.patch
        debian/patches/sys-socket.h-no-redefine-extname-in-kernel.patch
  * Added patches:
        debian/patches/bnxe-macro.patch

 -- Igor Pashev <pashev.igor@gmail.com>  Mon, 19 Oct 2015 20:35:38 +0300

3.0 (quilt) format

Added by Igor Pashev about 3 years ago

After 4 years of packaging illumos I have figured out the best way
and now I'm switching to 3.0 (quilt) format with source tarballs.
This allows faster and more flexible updates from upstream.

As a side effect, we can see all the patches http://patches.osdyson.org

The kernel first: http://cgit.osdyson.org/illumos/illumos-packaging.git/tree/uts/debian/rules?id=b7d8d6db6e733656a1fd628859e4e6b1a6477a23

# cat ../uts_4.3.1.git.35107df-2_illumos-amd64.changes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 18 Oct 2015 10:39:45 +0300
Source: uts
Binary: illumos-kernel illumos-kernel-headers uts-dev
Architecture: source illumos-amd64
Version: 4.3.1.git.35107df-2
Distribution: unstable
Urgency: medium
Maintainer: Igor Pashev <pashev.igor@gmail.com>
Changed-By: Igor Pashev <pashev.igor@gmail.com>
Description:
 illumos-kernel - illumos kernel and modules
 illumos-kernel-headers - illumos kernel header files
 uts-dev    - illumos kernel support headers for userspace development
Changes:
 uts (4.3.1.git.35107df-2) unstable; urgency=medium
 .
   * Use 3.0 (quilt) format with new dh_illumos_gate
Checksums-Sha1:
 3c3eb2b63f31cb2258d62d8a130ad4872929f5f3 1619 uts_4.3.1.git.35107df-2.dsc
 30d97a72b36832af975c68730528d3c9cd68f742 31309280 uts_4.3.1.git.35107df.orig.tar.xz
 f662aea193ef6eb093005bd6fee3bec09c916d1a 68652 uts_4.3.1.git.35107df-2.debian.tar.xz
 419e464919546bdfce601989fcaf080552715162 2283054 illumos-kernel-headers_4.3.1.git.35107df-2_illumos-amd64.deb
 6a1babb4af488721ff5c9c4ecedf58c103bf9551 16832538 illumos-kernel_4.3.1.git.35107df-2_illumos-amd64.deb
 5e07e525fec8b0e5eb9ad5d4fa4f2a94362fd429 2925786 uts-dev_4.3.1.git.35107df-2_illumos-amd64.deb
Checksums-Sha256:
 3c9daad433c01077906e55d4311dcc590b9c736b2d5be256be2c64e35371d4a9 1619 uts_4.3.1.git.35107df-2.dsc
 56addf917b57d62c898813a128786eb0ffd4c8b15d1d7d06086ef0f9b3d76ea0 31309280 uts_4.3.1.git.35107df.orig.tar.xz
 7486f9c40a1312f5392f319373570470ebe76a54fc9e69eec59cc42ea535e379 68652 uts_4.3.1.git.35107df-2.debian.tar.xz
 4390336fad89365ecca5543a5ab62425a719346a91a6aab460a6dfaf54d737fe 2283054 illumos-kernel-headers_4.3.1.git.35107df-2_illumos-amd64.deb
 22f4f279ede31ea402927ab7c506813d63610fa3626f543b5e8e1029487d4ade 16832538 illumos-kernel_4.3.1.git.35107df-2_illumos-amd64.deb
 804e5118afc9fd74e99452a1d61fd62e6e201a0f2395866e4e525506c2e542cb 2925786 uts-dev_4.3.1.git.35107df-2_illumos-amd64.deb
Files:
 b60d366d3f5e0a9b0b60a4e9ba9352c6 1619 kernel optional uts_4.3.1.git.35107df-2.dsc
 784b184551edc554b9cd842f3d423012 31309280 kernel optional uts_4.3.1.git.35107df.orig.tar.xz
 fd947a15f1354a7405344aaa1b1cc345 68652 kernel optional uts_4.3.1.git.35107df-2.debian.tar.xz
 7289f9dc02f973f726d355fa21d3d6e3 2283054 kernel optional illumos-kernel-headers_4.3.1.git.35107df-2_illumos-amd64.deb

Dyson on Dyson

Added by Igor Pashev over 3 years ago

After Dyson at Hetzner it became possible to hack VirtualBox host capabilities,
e. i. running guest OS, like Dyson itself :-)

It works.

# modinfo | grep vbox
258 fffffffff82ef000  3a268 333   1  vboxdrv (VirtualBox HostDrv 4.3.10_Debia)
259 fffffffff81885a8    da0 334   1  vboxnet (VirtualBox NetAdp 4.3.10_Debian)
261 fffffffff832e000   7a68 335   1  vboxflt (VirtualBox NetDrv 4.3.10_Debian)
261 fffffffff832e000   7a68   -   1  vboxflt (VirtualBox NetMod 4.3.10_Debian)

There is a minor issue #188.

I launched it via SSH X forwarding:

(11-20/103)

Also available in: Atom