Invalid gcc profile

Tried to install a package today and received the following horrifying output from running emerge flac

configure: error: installation or configuration problem: C compiler cannot create executables.

Found out in this (excellent) Gentoo forum thread that it was only due to the fact that $CHOSTS flag (from /etc/make.conf) was not being exported at build-time due to gcc using an invalid profile.

So I ran gcc-config -l and sure enough it outputted the following:

# gcc-config -l

* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-4.1.1

[1] i686-pc-linux-gnu-4.1.1 * [invalid]

To fix this problem all I had to do was to run gcc-config again only this time I had to specify the profile to use which coincidently was the only one to use anyway.

# gcc-config 1
* Switching native-compiler to i686-pc-linux-gnu-4.1.1 ... [ ok ]

Now everything compiles properly. I believe this was caused after using revdep-rebuild which was recommended by emerge when I tried to use the prune option on the "world" ebuild meta-package with emerge -P world.

Dead XBOX HDD???

Yesterday (last night), It seemed like my (modded) XBOX HDD had died, however after testing it in a PC with the Western Digital Data LifeGuard Diagnostic tools it seemed fine and worked happily in my XBOX again.

It isn't the first time that I have had problems with it, but all it seems to take to fix most problems is to pull it apart and put it back together again. Perhaps the HDD is about to die soon?
Either way this has re-iterated the necessity for backups and prompted me to do so.

At least I have lftp avaliable to make the job a bit easier.


Shell Scripting FTW

Today I made a nice little handy script that automates my (CD) backups for future cron job use.
Still requires more work so that it only outputs relevant info in cronjob logs.


tmp=${backup_dir}-`date +%Y%m%d`.iso
if [ -f $tmp ]
mv $tmp old.${tmp}
mkisofs -v -J -V backup -A '' -N -sysid '' -o $tmp $backup_dir

list="/boot /etc /root /tmp /var"

for index in $list
tar cfv ${backup_dir}/`basename ${index}`.tgz $index
tar cfvz ${backup_dir}/usr-home.tgz /usr/home/

for blah in `ls ${backup_dir}`
rm -rf $blah


<insert usual software disclamer here>

Comming soon: Howto setup cron :)


Google Calendar Borked

I managed to bork my Google Calendar rendering the notifications/reminders feature unusable.

I only recently found out that you can only have notifications (reminders) for events that are in a primary calendar and the feature-lack was preventing me from being able to receive event notifications for a second Birthday calendar that I had made, so I decided to (backup) export my calendars, delete them and then recreate/rename them appropriately so that the Birthdays calendar was the primary and ...failed :P

Here is how I did it!

Step 1). Signed in.
Step 2). Exported all My Calendars to .ics (vCal) files via the private URL feature.
Step 3). Deleted ALL My Calendars (exept for the primary one).

Note: You cannot actually delete your primary calendar but you can delete all events.

Step 4). Created a new daily calendar for daily stuff (the only other calendar).
Step 5). Imported the Birthdays vCal file into the primary calendar and the everyday stuff vCal into the newly created one.

Both calendars now display an event notification icon in the top right-hand corner of the event, but only one calendar (the primary one) can actually edit notification info. It now fails to notify me of event reminders...

Earlier this afternoon I sent a small message off to Goggle to see if they can fix the problem, but I might have to get them to forciblly delete the primary calendar an/or delete the Calendar Service form my Gmail account.