bugGNU TeXmacs - Bugs: bug #1739, cannot compile on mips[el] linux

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1739: cannot compile on mips[el] linux

Submitted by:  Ralf Treinen <treinen>
Submitted on:  Sun 17 Nov 2002 04:55:49 PM UTC  
 
Category: CompilationPriority: 5 - Normal
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Ralf Treinen <treinen>
Originator Name: Open/Closed: Closed
Release: Release: 1.0.0.21
Fixed Release: NoneFixed Release: 
Keywords: 

(Jump to the original submission Jump to the original submission)

Tue 21 Jan 2003 08:05:21 PM UTC, comment #6:

Sorry, as I said I don't have direct access to any mips[el] machine. All I can do is put a new package in the debian
archive and have the mips[el] autobuilders build the
package. Recently, we switched to gcc-3.2 as our standard
compiler, hence the packages will be built with gcc-3.2
on all architectures.

Ralf Treinen <treinen>
Project MemberIn charge of this item.
Tue 21 Jan 2003 04:11:26 PM UTC, comment #5:

I submitted a tentative patch to fix the problem. Patch #1003.
Ralph, can you still test the compilation on mipsel with gcc-2.95.4?

David Allouche <ddaa>
Project Administrator
Sun 19 Jan 2003 03:04:01 PM UTC, comment #4:

I suggest to change configure.in in that it requires
gcc >= 3.2 on mips or mipsel architecture. That should
allow to close this bug.

Ralf Treinen <treinen>
Project MemberIn charge of this item.
Fri 10 Jan 2003 10:18:28 PM UTC, comment #3:

Good news: TeXmacs 1.0.1 compiles fine with gcc 3.2 on mips !
It doesn't in mipsel, most probably because the config.guess
is out of date. With a recent config.guess it should compile
on mipsel, too.

This is excellent news : For the first time, texmacs compiles
on all the 11 architectures officially supported by Debian !

Ralf Treinen <treinen>
Project MemberIn charge of this item.
Wed 04 Dec 2002 09:03:33 PM UTC, comment #2:

I Asked on the debian-mips mailing list for advise,
quoting David's mail. Here is the response:

Date: Mon, 2 Dec 2002 22:26:59 +0100
From: Karsten Merker <karsten@excalibur.cologne.de>

Yes this makes sense. AFAIK a branch instruction can only access addresses
within a certain offset from the branch instruction (just not enough bits
for a larger offset in the instruction word) and gcc 2.95 does not produce
intermediate code to work around this.

So I see only the two options you have already mentioned:
- make the function smaller so that the maximum branch offset is large
enough to reach any needed point within the function
- try using gcc-3.2 that has several mips fixes which gcc-2.95 lacks -
although I am not sure whether exactly this problem is fully solved
in gcc-3.2.

Ralf Treinen <treinen>
Project MemberIn charge of this item.
Thu 21 Nov 2002 03:59:21 PM UTC, comment #1:

Personal guess:

g++-2.95.4 assembler on mipsel has a limitation on the maximum length of jumps inside a give subroutine, and this limit is exceeded in (one or both of) edit_env_rep::exec (tree) edit_env_rep::exec_until (tree, path).

Even if all cases end in return, an internal jump may be generated to properly destroy local objects.

We may try splitting edit_env_rep::exec into subroutines of reasonable size, then if it still does not work, try splitting edit_env_rep::exec_until.

David Allouche <ddaa>
Project Administrator
Sun 17 Nov 2002 04:55:49 PM UTC, original submission:

Compiling texmacs 1.0.0.17 on a mips or misel bails out
with the following error message. This is gcc 2.95.4.

/tmp/ccQouOpD.s: Assembler messages:
/tmp/ccQouOpD.s:2744: Error: Branch out of range
/tmp/ccQouOpD.s:3563: Error: Branch out of range

A full build log can be found at

http://buildd.debian.org/fetch.php?&pkg=texmacs&ver=1.0.0.17-5&arch=mips&stamp=1035698277&file=log&as=raw

Unfortunately, I don't have an account on a mips machine
(the package is automatiocally rebuild by the debian
autobuilder demon).

Ralf Treinen <treinen>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 9 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 20 Apr 2004 11:29:54 AM UTCddaaCategoryPackaging=>Compilation
Mon 10 Feb 2003 03:15:13 PM UTCddaaOpen/ClosedOpen=>(Error - Not Found)
Mon 10 Feb 2003 03:15:12 PM UTCddaaStatusNone=>(Error - Not Found)
Tue 21 Jan 2003 04:12:59 PM UTCddaaAssigned toddaa=>NA
Tue 21 Jan 2003 04:11:26 PM UTCddaaAssigned toNone=>NA
Sun 24 Nov 2002 05:36:38 PM UTCddaaItem GroupInstall=>(Error - Not Found)
Sun 24 Nov 2002 05:36:37 PM UTCddaaCategoryNone=>(Error - Not Found)
Mon 18 Nov 2002 12:49:28 AM UTCddaaItem GroupNone=>(Error - Not Found)
  ReleaseNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1