[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with compile



Andrey Chernomyrdin wrote:

Have a nice day,

I have a problem with compile nginx web server on SunBlade-100

$ gcc -c -Wall -g -O2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
       -o objs/src/core/ngx_times.o \
       src/core/ngx_times.c
/home/andrey/tmp/ccjb1kos.s: Assembler messages:
/home/andrey/tmp/ccjb1kos.s:377: Error: Architecture mismatch on "casa".
/home/andrey/tmp/ccjb1kos.s:377: (Requires v9|v9a|v9b; requested architecture is sparclite.) /home/andrey/tmp/ccjb1kos.s:585: Error: Architecture mismatch on "membar". /home/andrey/tmp/ccjb1kos.s:585: (Requires v9|v9a|v9b; requested architecture is sparclite.)

Ok, I solve this problem with:
$ mv /etc/disable_64_gcc /etc/disable_64_gcc.old

But I have another problem :-(

$ cat a.c
int main( char *argv[], int argc ) { return 0; }
$ gcc a.c
$ file a.out
a.out: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux 2.4.18, dynamically linked (uses shared libs), not stripped
$ ./a.out
./a.out: error while loading shared libraries: /lib64/libc.so.6: unexpected reloc type 0x4f

I have unstable:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name              Version        Description
+++-=================-==============-============================================
ii  gcc               4.0.2-1        The GNU C compiler
ii gcc-3.3-base 3.3.6-10 The GNU Compiler Collection (base package)
ii  gcc-4.0           4.0.2-4        The GNU C compiler
ii gcc-4.0-base 4.0.2-4 The GNU Compiler Collection (base package) ii gcc-4.0-locales 4.0.2-4 The GNU C compiler (native language support ii libc6 2.3.5-8 GNU C Library: Shared libraries and Timezone ii libc6-dev 2.3.5-8 GNU C Library: Development Libraries and Hea ii libc6-dev-sparc64 2.3.5-8 GNU C Library: 64bit Development Libraries f ii libc6-sparc64 2.3.5-8 GNU C Library: 64bit Shared libraries for Ul

--
Andrey Chernomyrdin



Reply to: