Skip to contentSkip to conversation

gcc-ia64 latest distributions

Linux-ia64 thembeka 4 participants 5 messages Mar 22, 2001 – Mar 25, 2001

lore
Share & tools
lore

thembeka

author
#0 lore raw

Where can I get gcc-ia64 updates? I was trying to compile the linux-ia64 kernel to use with the ski simulator and got an error message that the version of gcc-ia64-000216 (?) was too old.

Regards
Progress

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · thembeka

thembeka> Where can I get gcc-ia64 updates? I was trying to compile thembeka> the linux-ia64 kernel to use with the ski simulator and thembeka> got an error message that the version of gcc-ia64-000216 thembeka> (?) was too old.

That message is wrong for IA-64. It is removed by the IA-64 Linux patch. Did you apply that patch on top of the offical kernel sources? If not, you need to do so. It can be found at:

ftp.kernel.org/pub/linux/kernel/ports/ia64/

--david

#2 lore raw
In reply to thembeka

I used to maintain a copy of gcc sources on ftp.cygnus.com, but that machine has been down for 2 weeks now, and I haven't gotten any answer as to when it will be back up. That version of gcc was getting pretty old though, and wasn't being actively maintained anymore.

If you have any recent OS distribution from any Linux vendor, then you can get a good copy of gcc from there. They all have source RPMS of gcc, which are all pretty much the same compiler that I was maintaining on ftp.cygnus.com. For instance, on ftp.redhat.com, or any mirror, you can find this in /pub/redhat/beta/fisher/en/SRPMS/ia64/SRPMS/gnupro-1117-6.src.rpm

If you want a completely up-to-date copy of gcc, then you have to get it from the FSF.
For gcc: <http://gcc.gnu.org>
For binutils (as/ld/etc): <http://sources.redhat.com/binutils>
However, these are development versions, and if you use them, you need to be prepared to deal with occasional instabilities. Also, there are some known bugs that need to be fixed before these will be widely used. E.g. there are kernel miscompilation problems to fix.

Jim

#3 lore raw
In reply to thembeka

Since you are trying to build a kernel for ski simulator, I assume you are looking for a cross-compiler for x86 host. You can find it at <ftp://puffin.external.hp.com/pub/ia64/gcc-2.96-ia64-000717-snap001117-build3.tar.gz>. Untar it from root directory and it will untar under opt/ia64.

==================================
Khalid Aziz Linux Development Laboratory
(970)898-9214 Hewlett-Packard
[email protected] Fort Collins, CO

#4 lore raw
In reply to thembeka
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · thembeka

thembeka> entry.S:1028: Error: Unknown opcode `mov.ret.sptk b7=r28,1f'

Oops, it appears that the old assembler didn't support this instruction. I didn't realize that because I didn't start using it until recently.

An easy workaround would be the following. In arch/ia64/kernel/entry.h, change the first line of:

	#if defined(CONFIG_ITANIUM_ASTEP_SPECIFIC) || defined(CONFIG_ITANIUM_B1_SPECIFIC)
	# define MOVBR(type,br,gr,lbl)	mov br=gr

to

	#if 1
	# define MOVBR(type,br,gr,lbl)	mov br=gr

I think that should get you around the assembler problem. Alternatively, you could upgrade the toolchain using the tar ball that Khalid pointed you to.

	--david