Page 1 of 1

Debian cross compiler

Posted: Mon Oct 07, 2013 1:07 pm
by Hawk
I'm new and having difficulty getting a cross compiler setup.
Following the step by step instructions in GCC_Cross-Compiler_on_Debian_Linux
After step 1, I run into the following
hawk@linuxmint ~ $ sudo apt-get update
Hit http://dl.google.com stable Release.gpg
Get:1 http://packages.linuxmint.com olivia Release.gpg [197 B]
Hit http://security.ubuntu.com raring-security Release.gpg
Hit http://dl.google.com stable Release
Get:2 http://packages.linuxmint.com olivia Release [17.7 kB]
Hit http://security.ubuntu.com raring-security Release
Hit http://dl.google.com stable/main i386 Packages
Hit http://archive.ubuntu.com raring Release.gpg
Hit http://security.ubuntu.com raring-security/main i386 Packages
Hit http://archive.canonical.com raring Release.gpg
Get:3 http://packages.linuxmint.com olivia/main i386 Packages [23.5 kB]
Hit http://security.ubuntu.com raring-security/restricted i386 Packages
Ign http://www.tucs.org.au stable Release.gpg
Hit http://archive.ubuntu.com raring-updates Release.gpg
Hit http://security.ubuntu.com raring-security/universe i386 Packages
Hit http://security.ubuntu.com raring-security/multiverse i386 Packages
Hit http://archive.canonical.com raring Release
Get:4 http://packages.linuxmint.com olivia/upstream i386 Packages [9,237 B]
Get:5 http://packages.linuxmint.com olivia/import i386 Packages [39.9 kB]
Hit http://archive.ubuntu.com raring Release
Hit http://security.ubuntu.com raring-security/main Translation-en
Ign http://www.tucs.org.au stable Release
Hit http://archive.canonical.com raring/partner i386 Packages
Hit http://archive.ubuntu.com raring-updates Release
Hit http://security.ubuntu.com raring-security/multiverse Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Hit http://security.ubuntu.com raring-security/restricted Translation-en
Hit http://archive.ubuntu.com raring/main i386 Packages
Hit http://security.ubuntu.com raring-security/universe Translation-en
Hit http://archive.ubuntu.com raring/restricted i386 Packages
Hit http://archive.ubuntu.com raring/universe i386 Packages
Hit http://archive.ubuntu.com raring/multiverse i386 Packages
Hit http://archive.ubuntu.com raring/main Translation-en
Hit http://archive.ubuntu.com raring/multiverse Translation-en
Ign http://security.ubuntu.com raring-security/main Translation-en_US
Ign http://security.ubuntu.com raring-security/multiverse Translation-en_US
Hit http://archive.ubuntu.com raring/restricted Translation-en
Ign http://security.ubuntu.com raring-security/restricted Translation-en_US
Ign http://archive.canonical.com raring/partner Translation-en_US
Ign http://security.ubuntu.com raring-security/universe Translation-en_US
Ign http://archive.canonical.com raring/partner Translation-en
Hit http://archive.ubuntu.com raring/universe Translation-en
Hit http://archive.ubuntu.com raring-updates/main i386 Packages
Ign http://packages.linuxmint.com olivia/import Translation-en_US
Ign http://packages.linuxmint.com olivia/import Translation-en
Ign http://packages.linuxmint.com olivia/main Translation-en_US
Hit http://archive.ubuntu.com raring-updates/restricted i386 Packages
Ign http://packages.linuxmint.com olivia/main Translation-en
Ign http://packages.linuxmint.com olivia/upstream Translation-en_US
Ign http://packages.linuxmint.com olivia/upstream Translation-en
Hit http://archive.ubuntu.com raring-updates/universe i386 Packages
Hit http://archive.ubuntu.com raring-updates/multiverse i386 Packages
Err http://www.tucs.org.au stable/main i386 Packages
404 Not Found
Hit http://archive.ubuntu.com raring-updates/main Translation-en
Ign http://www.tucs.org.au stable/main Translation-en_US
Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en
Ign http://www.tucs.org.au stable/main Translation-en
Hit http://archive.ubuntu.com raring-updates/restricted Translation-en
Hit http://archive.ubuntu.com raring-updates/universe Translation-en
Ign http://archive.ubuntu.com raring/main Translation-en_US
Ign http://archive.ubuntu.com raring/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring/restricted Translation-en_US
Ign http://archive.ubuntu.com raring/universe Translation-en_US
Ign http://archive.ubuntu.com raring-updates/main Translation-en_US
Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com raring-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US
Fetched 90.5 kB in 7s (12.9 kB/s)
W: Failed to fetch http://www.tucs.org.au/~jscott4/debian/dists/stable/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
hawk@linuxmint ~ $ sudo apt-get install osdev-crosscompiler-i586-elf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package osdev-crosscompiler-i586-elf
It seems to only be fetching a i386 compiler, is there another mirror I should try?
If anyone would help me in the right direction for settings this up, I would be appreciate it.

Re: Debian cross compiler

Posted: Mon Oct 07, 2013 1:28 pm
by jnc100
The repositories are currently broken (as noted at the top of the page).

You're advised to follow GCC Cross Compiler instead.

Regards,
John.

Re: Debian cross compiler

Posted: Tue Oct 08, 2013 12:30 am
by sortie
As jnc100 remarks, don't install pre-built compilers. While they are useful in the very short immediate term, it's much more valuable to get experience building gcc yourself and it puts you in full control of your toolchain.