This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: try to compile cross compilers for sparc,alpha and powerpc + glibc 2.22
- From: Dennis Luehring <dl dot soluz at gmx dot net>
- To: Mike Frysinger <vapier at gentoo dot org>, libc-help at sourceware dot org
- Date: Fri, 28 Aug 2015 19:34:28 +0200
- Subject: Re: try to compile cross compilers for sparc,alpha and powerpc + glibc 2.22
- Authentication-results: sourceware.org; auth=none
- References: <55E05F76 dot 4080509 at gmx dot net> <20150828172121 dot GH29734 at vapier>
Am 28.08.2015 um 19:21 schrieb Mike Frysinger:
On 28 Aug 2015 15:17, Dennis Luehring wrote:
> based on the briliant tutorial by Jeff Preshing
> http://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/
>
> and his all-in-one-wonder shellscript:
> https://gist.github.com/preshing/41d5c7248dea16238b60
> (the questions uses this script+line numbers as orientation)
i'd strongly suggest using a project like crosstool:
http://crosstool-ng.org/
it takes care of many many problems that people are likely to run into.
building things by hand nowadays is really only for people who want to
learn and fix things themselves.
i want to learn and maybe/if needed fix things myself - or understand
better the details (longterm c/c++ developer with some linux background)
> while compiling glibc with sparc-linux-gcc the make process throws this
> error
>
> ../sysdeps/unix/sysv/linux/sparc/sys/trap.h:5:23: fatal error:
> asm/traps.h: No such file or directory
>
> i've checked my /opt/cross/sparc-linux/include/asm/ and there is no traps.h
i've forgot to set linux arch correct - resulting in the wrong/missing
headers - now im getting this error
sparc-linux-gcc sem_getvalue.c -c -std=gnu99 -fgnu89-inline -O2 -Wall
-Werror -Wno-error=undef -Wundef -Wwrite-strings -fmerge-all-constants
-frounding-math -g -Wstrict-prototypes -mlong-double-128 -fPIC
-ftls-model=initial-exec -I../include
-I/home/bert/Downloads/build-glibc/nptl
-I/home/bert/Downloads/build-glibc
-I../sysdeps/unix/sysv/linux/sparc/sparc32/fpu
-I../sysdeps/sparc/sparc32/fpu
-I../sysdeps/unix/sysv/linux/sparc/sparc32
-I../sysdeps/ieee754/ldbl-64-128 -I../sysdeps/ieee754/ldbl-opt
-I../sysdeps/unix/sysv/linux/sparc -I../sysdeps/sparc/nptl
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
-I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/sparc/sparc32/soft-fp
-I../sysdeps/sparc/fpu -I../sysdeps/sparc -I../sysdeps/ieee754
-I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem
/opt/cross/lib/gcc/sparc-linux/4.9.2/include -isystem
/opt/cross/lib/gcc/sparc-linux/4.9.2/include-fixed -isystem
/opt/cross/sparc-linux/include -D_LIBC_REENTRANT -include
/home/bert/Downloads/build-glibc/libc-modules.h -DMODULE_NAME=libpthread
-include ../include/libc-symbols.h -DPIC -DSHARED -o
/home/bert/Downloads/build-glibc/nptl/sem_getvalue.os -MD -MP -MF
/home/bert/Downloads/build-glibc/nptl/sem_getvalue.os.dt -MT
/home/bert/Downloads/build-glibc/nptl/sem_getvalue.os
../sysdeps/sparc/sparc32/sem_open.c: In function âsem_openâ:
../sysdeps/sparc/sparc32/sem_open.c:202:28: error: âFUTEX_SHAREDâ
undeclared (first use in this function)
sem.newsem.private = FUTEX_SHARED;
^
../sysdeps/sparc/sparc32/sem_open.c:202:28: note: each undeclared
identifier is reported only once for each function it appears in
/home/bert/Downloads/build-glibc/sysd-rules:1571: recipe for target
'/home/bert/Downloads/build-glibc/nptl/sem_open.os' failed
make[2]: *** [/home/bert/Downloads/build-glibc/nptl/sem_open.os] Error 1
make[2]: *** Waiting for unfinished jobs....
any idea?