Language:

Gönderen Konu: glibc Çapraz Derleme  (Okunma sayısı 1139 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

ercanersoy

  • Meraklı

  • Çevrimdışı
  • **

  • 62
    • Profili Görüntüle
glibc Çapraz Derleme
« : 04 Ekim 2016, 23:11:40 »
Merhaba. Ben çapraz derleme işini yapmaya çalışıyorum.

Başvuru kaynağı olarak şu sayfadan yararlanıyorum: http://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/

Öncelikle için binutils, gcc, linux-headers derlemek ile uğraştım. Bu paketleri bir dizine derledim. En son glibc derlemek ile uğraşıyorum. glibc derlemede hata alıyorum.

Çalıştırdığım komutlar şunlar:

Kod: [Seç]
../glibc-2.24/configure --prefix=/home/ercan/target/binaries/i686-linux --build=$MACHTYPE --host=i686-linux --target=i686-linux --with-headers=/home/ercan/cross/tools/binaries/i686-linux/include libc_cv_forced_unwind=yes --disable-multilib
Kod: [Seç]
make install-bootstrap-headers=yes install-headers
Kod: [Seç]
make -j4 csu/subdir_lib
En son komutta şu çıktıyı alıyorum.

Kod: [Seç]
[email protected] ~/cross/tools/sources/build-glibc $ make -j4 csu/subdir_lib
make -r PARALLELMFLAGS="" -C ../glibc-2.24 objdir=`pwd` csu/subdir_lib
make[1]: Entering directory '/home/ercan/cross/tools/sources/glibc-2.24'
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory '/home/ercan/cross/tools/sources/glibc-2.24/csu'
.././scripts/mkinstalldirs /home/ercan/cross/tools/sources/build-glibc/csu
.././scripts/mkinstalldirs /home/ercan/cross/tools/sources/build-glibc/csu
.././scripts/mkinstalldirs /home/ercan/cross/tools/sources/build-glibc/csu
gawk -f ../scripts/gen-as-const.awk ../sysdeps/i386/nptl/tcb-offsets.sym \
| gcc -S -o /home/ercan/cross/tools/sources/build-glibc/tcb-offsets.hT3 -std=gnu11 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wold-style-definition -mpreferred-stack-boundary=4    -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/home/ercan/cross/tools/sources/build-glibc/csu  -I/home/ercan/cross/tools/sources/build-glibc  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/i386/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/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -isystem /home/ercan/cross/tools/binaries/i686-linux/include  -D_LIBC_REENTRANT -include /home/ercan/cross/tools/sources/build-glibc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -x c - \
-MD -MP -MF /home/ercan/cross/tools/sources/build-glibc/tcb-offsets.h.dT -MT '/home/ercan/cross/tools/sources/build-glibc/tcb-offsets.h.d /home/ercan/cross/tools/sources/build-glibc/tcb-offsets.h'
mkdir -p -- /home/ercan/cross/tools/sources/build-glibc/csu
mkdir -p -- /home/ercan/cross/tools/sources/build-glibc/csu
(files="../crypt/Banner ../libidn/Banner ../nptl/Banner ../resolv/Banner"; \
 if test -n "$files"; then \
   printf '"Available extensions:\\n"\n'; \
   sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \
       -e 's/^\(.*\)$/\"\1\\n\"/' $files; \
 fi) > /home/ercan/cross/tools/sources/build-glibc/csu/version-info.hT
rm -f /home/ercan/cross/tools/sources/build-glibc/csu/abi-tag.h.new
mkdir -p -- /home/ercan/cross/tools/sources/build-glibc/csu
gawk -f ../scripts/gen-as-const.awk ../sysdeps/i386/link-defines.sym \
| gcc -S -o /home/ercan/cross/tools/sources/build-glibc/link-defines.hT3 -std=gnu11 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wold-style-definition -mpreferred-stack-boundary=4    -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/home/ercan/cross/tools/sources/build-glibc/csu  -I/home/ercan/cross/tools/sources/build-glibc  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/i386/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/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -isystem /home/ercan/cross/tools/binaries/i686-linux/include  -D_LIBC_REENTRANT -include /home/ercan/cross/tools/sources/build-glibc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -x c - \
-MD -MP -MF /home/ercan/cross/tools/sources/build-glibc/link-defines.h.dT -MT '/home/ercan/cross/tools/sources/build-glibc/link-defines.h.d /home/ercan/cross/tools/sources/build-glibc/link-defines.h'
sed -e 's/#.*$//' -e '/^[ ]*$/d' ../abi-tags | \
while read conf tagos tagver; do \
  test `expr 'i686-pc-linux-gnu' \
     : "$conf"` != 0 || continue; \
  ( echo "$tagos" | \
    sed -e 's/[^0-9xXa-fA-F ]//' \
-e 's/^/#define __ABI_TAG_OS /'; \
    echo "#ifndef __ABI_TAG_VERSION"; \
    echo "$tagver" | \
    sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
      -e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
    echo "#endif" ) > /home/ercan/cross/tools/sources/build-glibc/csu/abi-tag.h.new; \
done
mv -f /home/ercan/cross/tools/sources/build-glibc/csu/version-info.hT /home/ercan/cross/tools/sources/build-glibc/csu/version-info.h
gawk -f ../scripts/gen-as-const.awk ../sysdeps/i386/tlsdesc.sym \
| gcc -S -o /home/ercan/cross/tools/sources/build-glibc/tlsdesc.hT3 -std=gnu11 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wold-style-definition -mpreferred-stack-boundary=4    -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/home/ercan/cross/tools/sources/build-glibc/csu  -I/home/ercan/cross/tools/sources/build-glibc  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/i386/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/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -isystem /home/ercan/cross/tools/binaries/i686-linux/include  -D_LIBC_REENTRANT -include /home/ercan/cross/tools/sources/build-glibc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -x c - \
-MD -MP -MF /home/ercan/cross/tools/sources/build-glibc/tlsdesc.h.dT -MT '/home/ercan/cross/tools/sources/build-glibc/tlsdesc.h.d /home/ercan/cross/tools/sources/build-glibc/tlsdesc.h'
if test -r /home/ercan/cross/tools/sources/build-glibc/csu/abi-tag.h.new; then mv -f /home/ercan/cross/tools/sources/build-glibc/csu/abi-tag.h.new /home/ercan/cross/tools/sources/build-glibc/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
gawk -f ../scripts/gen-as-const.awk ../sysdeps/x86/cpu-features-offsets.sym \
| gcc -S -o /home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.hT3 -std=gnu11 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wold-style-definition -mpreferred-stack-boundary=4    -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/home/ercan/cross/tools/sources/build-glibc/csu  -I/home/ercan/cross/tools/sources/build-glibc  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/i386/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/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -isystem /home/ercan/cross/tools/binaries/i686-linux/include  -D_LIBC_REENTRANT -include /home/ercan/cross/tools/sources/build-glibc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -x c - \
-MD -MP -MF /home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.h.dT -MT '/home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.h.d /home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.h'

ercanersoy

  • Meraklı

  • Çevrimdışı
  • **

  • 62
    • Profili Görüntüle
Ynt: glibc Çapraz Derleme
« Yanıtla #1 : 04 Ekim 2016, 23:12:34 »
Kod: [Seç]
In file included from ../elf/link.h:25:0,
                 from ../include/link.h:32,
                 from <stdin>:1:
../include/dlfcn.h:64:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:72:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:79:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/i386/nptl/tls.h:27:0,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:1:
../include/stdlib.h:206:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern float __strtof_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:207:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern double __strtod_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:209:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:211:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:213:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:215:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../include/link.h:44:0,
                 from <stdin>:1:
../sysdeps/i386/dl-lookupcfg.h:30:3: error: ‘stdcall’ attribute ignored [-Werror=attributes]
   internal_function attribute_hidden;
   ^
In file included from ../sysdeps/i386/nptl/tls.h:27:0,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:2:
../include/stdlib.h:206:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern float __strtof_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:207:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern double __strtod_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:209:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:211:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:213:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:215:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/unix/sysv/linux/i386/lowlevellock.h:25:0,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:1:
../include/time.h:56:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      __THROW internal_function;
      ^
../include/time.h:107:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/i386/nptl/tls.h:27:0,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from <stdin>:1:
../include/stdlib.h:206:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern float __strtof_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:207:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern double __strtod_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:209:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:211:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:213:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:215:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/unix/sysv/linux/i386/lowlevellock.h:25:0,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:2:
../include/time.h:56:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      __THROW internal_function;
      ^
../include/time.h:107:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../inet/netinet/in.h:23:0,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:37,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:1:
../include/sys/socket.h:23:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int __opensock (void) internal_function attribute_hidden;
 ^
In file included from ../inet/netinet/in.h:23:0,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:37,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../sysdeps/unix/sysv/linux/i386/sysdep.h:27,
                 from <stdin>:2:
../include/sys/socket.h:23:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int __opensock (void) internal_function attribute_hidden;
 ^
In file included from ../include/link.h:44:0,
                 from ../include/dlfcn.h:4,
                 from ../sysdeps/generic/ldsodefs.h:32,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../sysdeps/i386/dl-lookupcfg.h:30:3: error: ‘stdcall’ attribute ignored [-Werror=attributes]
   internal_function attribute_hidden;
   ^
In file included from ../sysdeps/unix/sysv/linux/i386/lowlevellock.h:25:0,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from <stdin>:1:
../include/time.h:56:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      __THROW internal_function;
      ^
../include/time.h:107:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../elf/link.h:25:0,
                 from ../include/link.h:32,
                 from <stdin>:4:
../include/dlfcn.h:64:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:72:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:79:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/i386/nptl/tls.h:27:0,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from ../include/dlfcn.h:4,
                 from ../sysdeps/generic/ldsodefs.h:32,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../include/stdlib.h:206:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern float __strtof_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:207:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern double __strtod_nan (const char *, char **, char) internal_function;
 ^
../include/stdlib.h:209:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:211:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:213:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/stdlib.h:215:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
cc1: all warnings being treated as errors
In file included from ../include/link.h:44:0,
                 from <stdin>:4:
../sysdeps/i386/dl-lookupcfg.h:30:3: error: ‘stdcall’ attribute ignored [-Werror=attributes]
   internal_function attribute_hidden;
   ^
../Makerules:224: recipe for target '/home/ercan/cross/tools/sources/build-glibc/tcb-offsets.h' failed
make[2]: *** [/home/ercan/cross/tools/sources/build-glibc/tcb-offsets.h] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../inet/netinet/in.h:23:0,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:37,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from <stdin>:1:
../include/sys/socket.h:23:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int __opensock (void) internal_function attribute_hidden;
 ^
In file included from ../sysdeps/unix/sysv/linux/i386/lowlevellock.h:25:0,
                 from ../nptl/descr.h:30,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from ../include/dlfcn.h:4,
                 from ../sysdeps/generic/ldsodefs.h:32,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../include/time.h:56:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      __THROW internal_function;
      ^
../include/time.h:107:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^

ercanersoy

  • Meraklı

  • Çevrimdışı
  • **

  • 62
    • Profili Görüntüle
Ynt: glibc Çapraz Derleme
« Yanıtla #2 : 04 Ekim 2016, 23:12:50 »
Kod: [Seç]
In file included from ../inet/netinet/in.h:23:0,
                 from ../include/netinet/in.h:3,
                 from ../resolv/resolv.h:57,
                 from ../include/resolv.h:12,
                 from ../nptl/descr.h:37,
                 from ../sysdeps/i386/nptl/tls.h:115,
                 from ../sysdeps/i386/i686/nptl/tls.h:33,
                 from ../include/link.h:45,
                 from ../include/dlfcn.h:4,
                 from ../sysdeps/generic/ldsodefs.h:32,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../include/sys/socket.h:23:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int __opensock (void) internal_function attribute_hidden;
 ^
cc1: all warnings being treated as errors
../Makerules:224: recipe for target '/home/ercan/cross/tools/sources/build-glibc/tlsdesc.h' failed
make[2]: *** [/home/ercan/cross/tools/sources/build-glibc/tlsdesc.h] Error 1
<stdin>: In function ‘dummy’:
<stdin>:5:72: error: invalid application of ‘sizeof’ to incomplete type ‘struct La_i86_regs’
In file included from ../sysdeps/nptl/libc-lockP.h:24:0,
                 from ../sysdeps/nptl/libc-lock.h:184,
                 from ../include/link.h:46,
                 from <stdin>:1:
<stdin>:6:87: error: invalid use of undefined type ‘struct La_i86_regs’
<stdin>:7:87: error: invalid use of undefined type ‘struct La_i86_regs’
<stdin>:8:87: error: invalid use of undefined type ‘struct La_i86_regs’
<stdin>:9:87: error: invalid use of undefined type ‘struct La_i86_regs’
<stdin>:10:87: error: invalid use of undefined type ‘struct La_i86_regs’
<stdin>:11:73: error: invalid application of ‘sizeof’ to incomplete type ‘struct La_i86_retval’
In file included from ../sysdeps/nptl/libc-lockP.h:24:0,
                 from ../sysdeps/nptl/libc-lock.h:184,
                 from ../include/link.h:46,
                 from <stdin>:1:
<stdin>:12:88: error: invalid use of undefined type ‘struct La_i86_retval’
<stdin>:13:88: error: invalid use of undefined type ‘struct La_i86_retval’
<stdin>:14:88: error: invalid use of undefined type ‘struct La_i86_retval’
<stdin>:15:88: error: invalid use of undefined type ‘struct La_i86_retval’
<stdin>:16:89: error: invalid use of undefined type ‘struct La_i86_retval’
<stdin>:17:89: error: invalid use of undefined type ‘struct La_i86_retval’
cc1: all warnings being treated as errors
../Makerules:224: recipe for target '/home/ercan/cross/tools/sources/build-glibc/link-defines.h' failed
make[2]: *** [/home/ercan/cross/tools/sources/build-glibc/link-defines.h] Error 1
In file included from ../sysdeps/generic/ldsodefs.h:32:0,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../include/dlfcn.h:47:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../include/dlfcn.h:64:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:72:5: error: ‘stdcall’ attribute ignored [-Werror=attributes]
     internal_function;
     ^
../include/dlfcn.h:79:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
In file included from ../sysdeps/generic/ldsodefs.h:36:0,
                 from ../sysdeps/i386/ldsodefs.h:39,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../sysdeps/i386/dl-lookupcfg.h:30:3: error: ‘stdcall’ attribute ignored [-Werror=attributes]
   internal_function attribute_hidden;
   ^
In file included from ../sysdeps/i386/ldsodefs.h:39:0,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../sysdeps/generic/ldsodefs.h:251:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:255:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:380:3: error: ‘stdcall’ attribute ignored [-Werror=attributes]
   EXTERN int (*_dl_make_stack_executable_hook) (void **) internal_function;
   ^
In file included from ../sysdeps/i386/ldsodefs.h:39:0,
                 from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from <stdin>:2:
../sysdeps/generic/ldsodefs.h:587:10: error: ‘stdcall’ attribute ignored [-Werror=attributes]
          bool *, void (*) (void *), void *);
          ^
../sysdeps/generic/ldsodefs.h:589:12: error: ‘stdcall’ attribute ignored [-Werror=attributes]
            const char *);
            ^
../sysdeps/generic/ldsodefs.h:597:19: error: ‘stdcall’ attribute ignored [-Werror=attributes]
            struct link_map *);
                   ^
../sysdeps/generic/ldsodefs.h:644:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int _dl_make_stack_executable (void **stack_endp) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:740:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function __attribute__ ((__noreturn__)) attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:746:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:754:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:767:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:776:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:786:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:790:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:800:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../sysdeps/generic/ldsodefs.h:831:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:836:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../sysdeps/generic/ldsodefs.h:840:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:846:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:858:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:865:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden __attribute__ ((__noreturn__));
      ^
../sysdeps/generic/ldsodefs.h:877:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:883:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:888:9: error: ‘stdcall’ attribute ignored [-Werror=attributes]
         char **env) internal_function attribute_hidden;
         ^
../sysdeps/generic/ldsodefs.h:892:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_fini (void) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:897:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:910:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:914:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:918:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_start_profile (void) internal_function attribute_hidden;
 ^
../sysdeps/generic/ldsodefs.h:931:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:936:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:943:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:948:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:961:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:975:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:979:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern size_t _dl_next_tls_modid (void) internal_function attribute_hidden;
 ^
../sysdeps/generic/ldsodefs.h:982:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern size_t _dl_count_modids (void) internal_function attribute_hidden;
 ^
../sysdeps/generic/ldsodefs.h:985:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_determine_tlsoffset (void) internal_function attribute_hidden;
 ^
../sysdeps/generic/ldsodefs.h:990:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern int _dl_tls_setup (void) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:994:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void *_dl_allocate_tls (void *mem) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:999:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../sysdeps/generic/ldsodefs.h:1002:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:1007:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:1008:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void *_dl_allocate_tls_init (void *) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:1012:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_deallocate_tls (void *tcb, bool dealloc_tcb) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:1056:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function attribute_hidden;
      ^
../sysdeps/generic/ldsodefs.h:1063:6: error: ‘stdcall’ attribute ignored [-Werror=attributes]
      internal_function;
      ^
../sysdeps/generic/ldsodefs.h:1067:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_non_dynamic_init (void) internal_function;
 ^
../sysdeps/generic/ldsodefs.h:1070:1: error: ‘stdcall’ attribute ignored [-Werror=attributes]
 extern void _dl_aux_init (ElfW(auxv_t) *av) internal_function;
 ^
cc1: all warnings being treated as errors
../Makerules:224: recipe for target '/home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.h' failed
make[2]: *** [/home/ercan/cross/tools/sources/build-glibc/cpu-features-offsets.h] Error 1
make[2]: Leaving directory '/home/ercan/cross/tools/sources/glibc-2.24/csu'
Makefile:214: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/ercan/cross/tools/sources/glibc-2.24'
Makefile:9: recipe for target 'csu/subdir_lib' failed
make: *** [csu/subdir_lib] Error 2

Bu sorunu nasıl çözebilirim? Yanıtlarınız için şimdiden teşekkür ederim.

 

Yukarı Çık & Back to Up