kimbrechts

glibc install on Alpine Linux

Mar 26th, 2020
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.52 KB | None | 0 0
  1. gcc ../sysdeps/unix/sysv/linux/x86/gettimeofday.c -c -std=gnu11 -fgnu89-inline  -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno   -fPIC   -ftls-model=initial-exec   -U_FORTIFY_SOURCE   -I../include -I/tmp/glibc-2.31/glibc-build/time  -I/tmp/glibc-2.31/glibc-build  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/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/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/include -isystem /usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/include-fixed -isystem /usr/include  -D_LIBC_REENTRANT -include /tmp/glibc-2.31/glibc-build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC -DSHARED     -DTOP_NAMESPACE=glibc -o /tmp/glibc-2.31/glibc-build/time/gettimeofday.os -MD -MP -MF /tmp/glibc-2.31/glibc-build/time/gettimeofday.os.dt -MT /tmp/glibc-2.31/glibc-build/time/gettimeofday.os
  2. In file included from <command-line>:
  3. ../sysdeps/unix/sysv/linux/gettimeofday.c:55:29: error: 'gettimeofday' alias between functions of incompatible types 'int(struct timeval * restrict,  void * restrict)' and 'int (*(void))(struct timeval *, void *)' [-Werror=attribute-alias=]
  4.    55 | weak_alias (__gettimeofday, gettimeofday)
  5.       |                             ^~~~~~~~~~~~
  6. ./../include/libc-symbols.h:152:26: note: in definition of macro '_weak_alias'
  7.   152 |   extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))) \
  8.       |                          ^~~~~~~~~
  9. ../sysdeps/unix/sysv/linux/gettimeofday.c:55:1: note: in expansion of macro 'weak_alias'
  10.    55 | weak_alias (__gettimeofday, gettimeofday)
  11.       | ^~~~~~~~~~
  12. In file included from <command-line>:
  13. ../sysdeps/unix/sysv/linux/gettimeofday.c:41:13: note: aliased declaration here
  14.    41 | libc_ifunc (__gettimeofday,
  15.       |             ^~~~~~~~~~~~~~
  16. ./../include/libc-symbols.h:903:25: note: in definition of macro '__ifunc_resolver'
  17.   903 |   __typeof (type_name) *name##_ifunc (arg)    \
  18.       |                         ^~~~
  19. ./../include/libc-symbols.h:1019:32: note: in expansion of macro '__ifunc'
  20.  1019 | #define libc_ifunc(name, expr) __ifunc (name, name, expr, void, INIT_ARCH)
  21.       |                                ^~~~~~~
  22. ../sysdeps/unix/sysv/linux/gettimeofday.c:41:1: note: in expansion of macro 'libc_ifunc'
  23.    41 | libc_ifunc (__gettimeofday,
  24.       | ^~~~~~~~~~
  25. cc1: all warnings being treated as errors
  26. make[2]: *** [/tmp/glibc-2.31/glibc-build/sysd-rules:93: /tmp/glibc-2.31/glibc-build/time/gettimeofday.os] Error 1
  27. make[2]: Leaving directory '/tmp/glibc-2.31/time'
  28. make[1]: *** [Makefile:470: time/subdir_lib] Error 2
  29. make[1]: Leaving directory '/tmp/glibc-2.31'
  30. make: *** [Makefile:9: all] Error 2
Add Comment
Please, Sign In to add comment