Errors while building glibc on sparc 5

Jamie Norwood mistwolf at mushhaven.net
Sun Nov 10 07:38:16 PST 2002


on Sat, 9 Nov 2002 21:03:24 +0000 (UTC), Jamie Norwood stated:
> gcc ../sysdeps/sparc/sparc32/__longjmp.S -c  -I../include -I.
> -I/usr/src/glibc-build/setjmp -I.. -I../libio  -I/usr/src/glibc-build
> -I../sysdeps/sparc/sparc32/elf
> -I../linuxthreads/sysdeps/unix/sysv/linux/sparc
> -I../linuxthreads/sysdeps/unix/sysv/linux
> -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
> -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/sparc/sparc32 -I../linuxthreads/sysdeps/sparc
> -I../sysdeps/unix/sysv/linux/sparc/sparc32
> -I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/linux
> -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
> -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc
> -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu
> -I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32
> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
> -I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu
> -I../sysdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/generic/elf
> -I../sysdeps/generic   -D_LIBC_REENTRANT -include
> ../include/libc-symbols.h     -DASSEMBLER -D__ASSEMBLY__  -o
> /usr/src/glibc-build/setjmp/__longjmp.o
> ../sysdeps/sparc/sparc32/__longjmp.S: Assembler messages:
> ../sysdeps/sparc/sparc32/__longjmp.S:41: Error: Illegal operands
> ../sysdeps/sparc/sparc32/__longjmp.S:43: Error: Illegal operands
> ../sysdeps/sparc/sparc32/__longjmp.S:48: Error: unknown pseudo-op: `.'
> ../sysdeps/sparc/sparc32/__longjmp.S:50: Error: Illegal operands
> ../sysdeps/sparc/sparc32/__longjmp.S:52: Error: Illegal operands
> ../sysdeps/sparc/sparc32/__longjmp.S:55: Error: unknown pseudo-op: `.'
> ../sysdeps/sparc/sparc32/__longjmp.S:72: Error: unknown pseudo-op: `.'
> ../sysdeps/sparc/sparc32/__longjmp.S:76: Error: unknown pseudo-op: `.'
> make[2]: *** [/usr/src/glibc-build/setjmp/__longjmp.o] Error 1
> make[2]: Leaving directory `/usr/src/glibc-2.2.5/setjmp'
> make[1]: *** [setjmp/subdir_lib] Error 2
> make[1]: Leaving directory `/usr/src/glibc-2.2.5'
> make: *** [all] Error 2

To anyone else that gets this error, which will likely be anyone
compiling on a Sparc, I will quote a message I got from google. The fix
worked perfectly for me.

---

Quoting Bruno Haible <bruno at clisp dor org> :

Apparently "cpp0 -lang-asm" now leaves spaces around ## in place, if the
token on the left or right of it is a lone dot (not a valid C identifier).
Hard to say that it's a bug in the gcc-3.1 cpp, because -lang-asm is a gcc
extension. The fix is just to remove the spaces.


2002-06-05  Bruno Haible  <bruno at clisp.org>

	* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Remove
	* spaces.

--- glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h.bak
2001-07-06 06:56:21.000000000 +0200
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2002-06-05 23:14:40.000000000 +0200
@@ -48,7 +48,7 @@
 #define END(name) \
 	.size name, . - name
 
-#define LOC(name)  . ## L ## name
+#define LOC(name)  .##L##name
 
 #ifdef PIC
 #define SYSCALL_ERROR_HANDLER
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list