.S

Hello,

does anybody know how to compile sources that consist of .c and .S files
I downloaded gpg - ./configure works well but thera are sources .S and
compiler exits with error:
cc: No compiler available for name.S
Compiler tries to compile it with -E option but it doesn’t work.

Example of the whole command that ends with an error:

/usr/watcom/10.6/bin/wcc386 -zq -d+ -dHAVE_CONFIG_H -i=. -i=//4/home/Parkany

i/SW/gnupg/gnupg-1.0.4/mpi -i=.. -i=//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/i
nclude -d2 -ms -4r -i=/usr/watcom/10.6/usr/include -i=/usr/include g10m.c

cc -E -I//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/include -DHAVE_CONFIG_H -I. -

I//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/mpi -I.. mpih-mul1.S | grep -v ‘^#’

_mpih-mul1.s

Thanks,

Kamil

Isn’t “.S” the standard suffix for SCCS (RCS equivalent) archives? Edit one
of the .S files and you should be able to tell if its an SCCS archive or
not. If it is then you do not compile these files you check out/in versions
from this file.

  • Richard

I really don’t know what does it means SCCS or RCS but the same question
I’ve sent to the gpg author and he sent me an answer:

/usr/watcom/10.6/bin/wcc386 -zq -d+ -dHAVE_CONFIG_H -i=. -i=//4/home/Parkany

i/SW/gnupg/gnupg-1.0.4/mpi -i=.. -i=//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/i
nclude -d2 -ms -4r -i=/usr/watcom/10.6/usr/include -i=/usr/include g10m.c

cc -E -I//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/include -DHAVE_CONFIG_H -I. -

I//4/home/Parkanyi/SW/gnupg/gnupg-1.0.4/mpi -I.. mpih-mul1.S | grep -v ‘^#’

_mpih-mul1.s

This runs the preprocessor on foo.S and then removes preprocessor
lines using grep -v which produces foo.s. It seems that your CC
needs an extra option to convince him to run just the preprocessor
on foo.S.

Do a “rm config.cache” and rerun configure like that

CPP=“name_of_my_cpp” ./configure

Hth,…

I’ve tried to do that but nothing has changed. Only I know that
cc -E preproc to standard output (this option is used in compilation but
it ends with error)
-S produse assembly listing file ending with .S (I tried to use it
instead -E but it failed too)
So my oppinion is that .S is assembly file that I need to add during
compilation process.

Kamil

P.S A part of the file mpih-add1.S
#######################
#include “sysdep.h”
#include “asm-syntax.h”


/*******************

  • mpi_limb_t
  • mpihelp_add_n( mpi_ptr_t res_ptr, (sp + 4)
  •             mpi_ptr_t s1_ptr,    (sp + :sunglasses:
    
  •             mpi_ptr_t s2_ptr,    (sp + 12)
    
  •             mpi_size_t size)     (sp + 16)
    

*/

..text
ALIGN (3)
.globl C_SYMBOL_NAME(mpihelp_add_n)
C_SYMBOL_NAME(mpihelp_add_n:)
pushl %edi
pushl %esi

movl 12(%esp),%edi /* res_ptr /
movl 16(%esp),%esi /
s1_ptr /
movl 20(%esp),%edx /
s2_ptr */
movl 24(%esp),%ecx
#######################
Brown, Richard <brownr@aecl.ca> napísal v správe:9as4nj$hdd$1@inn.qnx.com

Isn’t “.S” the standard suffix for SCCS (RCS equivalent) archives? Edit
one
of the .S files and you should be able to tell if its an SCCS archive or
not. If it is then you do not compile these files you check out/in
versions
from this file.

  • Richard

“Kamil Parkanyi” <parkanyi@procaut.sk> wrote in message
news:9as7dj$j1q$1@inn.qnx.com

I really don’t know what does it means SCCS or RCS but the same question
I’ve sent to the gpg author and he sent me an answer:

[skip]

P.S A part of the file mpih-add1.S
#######################
#include “sysdep.h”
#include “asm-syntax.h”


/*******************

  • mpi_limb_t
  • mpihelp_add_n( mpi_ptr_t res_ptr, (sp + 4)
  •             mpi_ptr_t s1_ptr,    (sp + > :sunglasses:
    
  •             mpi_ptr_t s2_ptr,    (sp + 12)
    
  •             mpi_size_t size)     (sp + 16)
    

*/

.text
ALIGN (3)
.globl C_SYMBOL_NAME(mpihelp_add_n)
C_SYMBOL_NAME(mpihelp_add_n:)
pushl %edi
pushl %esi

movl 12(%esp),%edi /* res_ptr /
movl 16(%esp),%esi /
s1_ptr /
movl 20(%esp),%edx /
s2_ptr */
movl 24(%esp),%ecx
#######################

this is a gnu assembler.

// wbr

Sorry, I got it wrong. Source Code Control System (SCCS) typically uses a
“s.” prefix for its archive names. Revision Control System (RCS) typically
uses a “,v” suffix.

It’s been a while …

  • Richard