SSD problems

So my Pi has been giving me trouble lately. I’ve reinstalled, and nothing has changed, so I am starting to suspect hardware, but what do I know? dmesg says:

[970519.112844] Aborting journal on device sda1-8.
[970519.128898] Buffer I/O error on dev sda1, logical block 19431424, lost sync page write
[970519.164602] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[970550.743210] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1703942: comm sshd: reading directory lblock 0
[970691.368765] EXT4-fs warning: 46 callbacks suppressed
[970691.388437] EXT4-fs warning (device sda1): __ext4_read_dirblock:674: error -5 reading directory block (ino 2368303, block 0)
[970691.421693] EXT4-fs warning (device sda1): __ext4_read_dirblock:674: error -5 reading directory block (ino 2368303, block 0)
[970691.457970] EXT4-fs error (device sda1): ext4_read_inode_bitmap:185: comm transmission-da: Cannot read inode bitmap – block_group = 416, inode_bitmap = 13631504
[970691.494077] EXT4-fs error (device sda1): ext4_journal_check_start:56: Detected aborted journal
[970691.526540] EXT4-fs (sda1): Remounting filesystem read-only

…and at this point, everything is terrible forever.


Scheme on Ubuntu (with Chickens!)

My plan is to use Scheme for a game. Why? It’s an awesome language. And someone has to do it. This is my log/HOWTO that explains how to install it. I’m using Ubuntu 10.4 Lucid Lynx

Step one: Install chicken, a scheme interpreter/compiler, and gcc.

$ sudo apt-get install chicken-bin gcc

Step two: You are done.

$ csi

©2008-2009 The Chicken Team
©2000-2007 Felix L. Winkelmann
Version 4.2.0
linux-unix-gnu-x86 [ manyargs dload ptables applyhook ]
compiled 2009-11-30 on vernadsky (Linux)

#;1> (print (cons “Hello” “World”))
(Hello . World)

This is the interpreter, but we want to build executable files. The compiler, csc, does this for us.

$ cat > hello.scm
(print (cons “Hello” “World”))

$ ls -l hello
-rwxr-xr-x 1 erehling erehling 18845 2010-04-21 18:11 hello

$ file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

$ ./hello
(Hello . World)

Notice that we’ve got a real executable now – nothing’s interpreted. This is promising!

Next time we’ll draw some graphics.

Eressea Server Down

The Eressea server (and with it, this blog) has been down for about a week due to a burnt motherboard. The hard drives could be saved, but the new machine doesn’t have SCSI, so some work had to be done. Thanks go to Andreas and Nils for fixing this.

The new machine is no longer Debian but Ubuntu. This gives me a chance to set things up The Right Way – after 8 years, the old machines had a lot of quirky stuff installed, and was running with a number of unexplained anachronisms. So excuse the mess, we’re under construction.

Here’s my preliminary TODO-List:
Continue reading “Eressea Server Down”

I need a good linux IDE

I admit it: In the choice between emacs and vi, I choose “none of the above”. I want a C++ IDE. I’ve grown up with Borland Pascal, then used the Visual Studio IDE, and I’ve never used anything without a good integrated debugger.

Switching from Visual Studio to emacs + gdb is something I’m no longer able to do. So this weekend, I had a look at some of the IDE offerings that Linux had. It’s not a happy tale.

First there’s eclipse. Many people (Java people) swear by this, and as they point out repeatedly, it isn’t a Java IDE, it’s an IDE for anything you want. Sort of like Visual Studio is (if what you want is a MS language). I downloaded the CDT, and I like the way that’s all done from inside the IDE. But then… I tried to create a managed makefile from the Eressea sources, because if I’m going away from commandline make, I’d like to also go away from makefiles, thank you. very much. Not possible, though. It seems Eclipse has a weird conception of projects being everything that is in one folder, no more, no less. If I have the sources for my library and two executables all in the same folder, for example, I can’t make eclipse build a library and two executables. Instead it tries to mush all of it together. But really, that is academic, because I couldn’t even get it to do that – Eclipse + CDT crashed every 5 minutes. All I get is some java exception, no option to save my work, and then it’s gone and I’m back to square one.

Code::Blocks was my next candidate, because many people on the Ogre3D forums are raving about that. I installed it on Windows from the binaries, and while not pretty, it looked close enough to what I want. So.. debian packages? No dice. No packages for any distribution, actually. Build it from the sources, they say. But even that isn’t easy. It comes without a configure script, and requires me to install automake, but not the automake I had, no, that other version of automake please, and then it would bitch about something or other and completely refuse to do anything at all. No dice. I didn’t even get a configure script. Screw this.

There’s still kdevelop left to test. Like Obi Wan, it is my only hope to run linux on the desktop. Yes, my web browser and office suite run on linux, too, but without an IDE, I have to stick with Windows as my OS, because programming is what I do 90% of the time I’m at the computer.