[R] Assembler messages?

Albrecht Gebhardt agebhard at zidsrv.sci.uni-klu.ac.at
Tue Oct 13 12:21:47 CEST 1998


On Tue, 13 Oct 1998, alexander volovics wrote:

> ...
> Some of them give warnings at expressions in subroutines (repeated,
> event, pspline,etc.. I will ask about this in another mail) but a number
> give 'Assembler messages'.
> 
> Of these I will quote an install log for 'akima' in full:
> 
> ...........................................................................
> for:/usr/local/R/bin # ./R INSTALL /usr/local/tempR/akima
> Installing package `akima' ...
> libs
> f77 -fpic -c idbvip.f -o idbvip.o
> f77 -fpic -c idgrid.f -o idgrid.o
> f77 -fpic -c idpdrv.f -o idpdrv.o
> f77 -fpic -c idsfft.f -o idsfft.o
> f77 -fpic -c idxchg.f -o idxchg.o
> f77 -fpic -c idcldp.f -o idcldp.o
> /tmp/cca01314.s: Assembler messages:
> /tmp/cca01314.s:881: Error: operands given don't match any known 386 instruction
> /tmp/cca01314.s:891: Error: operands given don't match any known 386 instruction
> make: *** [idcldp.o] Error 1
> cp: *.so: No such file or directory
> R
> data
> help
>  >>> Building help pages for package `akima'
>      Formats: text html latex
>   akima                             text    html    latex
>   interp                            text    html    latex
>   interpp                           text    html    latex
> DONE (akima)
> 
> DONE (INSTALL)
> ........................................................................     
>                                                      
> 
> Can somebody please explain what is happening here, I don't have a clue.
> I am using akima_0.2-3.tar.gz downloaded from 'tuwien'.
> 

This is a bug in g77 from SuSE 5.3 (I already reported it to the SuSE
mailing list, but there was no useful answer)

You can circumvent the errors and change them into "assembler warnings"
with "-O2" added to your CFLAGS (in site.conf)

You get now warnings like

g77 -fpic -O2  -c dgedi.f 
/tmp/cca27296.s: Assembler messages:
/tmp/cca27296.s:172: Warning: warning: unrecognized characters
`@GOTOFF(%ebx)' in expression
... repeated many times

But the resulting shared object works!

It is the combination of -fpic and -g that causes the error, this was also
the case with some older versions of SuSE, but with SuSE 5.2 and "-fpic
-O2 -g" no errors and no warnings were produced.


May be, we (SuSE users) should change to egcs? 


Albrecht

PS:
It occurs not on every Fortran file, one example is dgedi.f from netlib.
......................................................................
| Albrecht Gebhardt          Tel.: (++43 463) 2700/837               |
| Institut fuer Mathematik   Fax : (++43 463) 2700/834               |
| Universitaet Klagenfurt    mailto:albrecht.gebhardt at uni-klu.ac.at  |
| Villacher Str. 161         http://www-stat.uni-klu.ac.at/~agebhard |
| A-9020 Klagenfurt, Austria                                         |
`--------------------------------------------------------------------'


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list