On January 25, 2020, at 22:24, Sourabh Sagar <sourabhsagar7...@gmail.com> wrote:

>
>
>Hello Sir/Mam,
>I am a Linux enthusiast following up Linux-from-scratch(LFSv9.0) to
>learn internal of Linux on 'Debain 10 buster x86_64'.
>Following up I encounter an unknown error on Glibc 1st pass compilation
>stating that
>        gcc ../sysdeps/unix/sysv/linux/x86/time.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      
>-I../include -I/mnt/lfs/sources/glibc-2.30/build/time  
>-I/mnt/lfs/sources/glibc-2.30/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-linux-gnu/8/include -isystem 
>/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed -isystem /tools/include  
>-D_LIBC_REENTRANT -include /mnt/lfs/sources/glibc-2.30/build/libc-modules.h 
>-DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC -DSHARED     
>-DTOP_NAMESPACE=glibc -o /mnt/lfs/sources/glibc-2.30/build/time/time.os -MD 
>-MP -MF /mnt/lfs/sources/glibc-2.30/build/time/time.os.dt -MT 
>/mnt/lfs/sources/glibc-2.30/build/time/time.os
>In file included from <command-line>:
>../sysdeps/unix/sysv/linux/x86/time.c:43:30: error: 'time' alias between 
>functions of incompatible types 'time_t(time_t *)' {aka 'long int(long int 
>*)'} and 'time_t (*(void))(time_t *)' {aka 'long int (*(void))(long int *)'} 
>[-Werror=attribute-alias]
> libc_ifunc_hidden (time_type,time,
>                              ^~~~
>./../include/libc-symbols.h:140:26: note: in definition of macro 
>'_strong_alias'
>   extern __typeof (name) aliasname __attribute__ ((alias (#name))) \
>                          ^~~~~~~~~
>./../include/libc-symbols.h:937:3: note: in expansion of macro 'strong_alias'
>   strong_alias (__libc_##name, name);
>   ^~~~~~~~~~~~
>./../include/libc-symbols.h:1025:3: note: in expansion of macro 
>'__ifunc_hidden'
>   __ifunc_hidden (redirected_name, name, expr, void, INIT_ARCH)
>   ^~~~~~~~~~~~~~
>../sysdeps/unix/sysv/linux/x86/time.c:43:1: note: in expansion of macro 
>'libc_ifunc_hidden'
> libc_ifunc_hidden (time_type,time,
> ^~~~~~~~~~~~~~~~~
>In file included from <command-line>:
>./../include/libc-symbols.h:936:23: note: aliased declaration here
>
>  __ifunc (type_name, __libc_##name, expr, arg, init)   \
>                       ^~~~~~~
>./../include/libc-symbols.h:903:25: note: in definition of macro 
>'__ifunc_resolver'
>   __typeof (type_name) *name##_ifunc (arg)    \
>                         ^~~~
>./../include/libc-symbols.h:936:3: note: in expansion of macro '__ifunc'
>   __ifunc (type_name, __libc_##name, expr, arg, init)   \
>   ^~~~~~~
>./../include/libc-symbols.h:1025:3: note: in expansion of macro 
>'__ifunc_hidden'
>   __ifunc_hidden (redirected_name, name, expr, void, INIT_ARCH)
>   ^~~~~~~~~~~~~~
>../sysdeps/unix/sysv/linux/x86/time.c:43:1: note: in expansion of macro 
>'libc_ifunc_hidden'
> libc_ifunc_hidden (time_type,time,
> ^~~~~~~~~~~~~~~~~
>cc1: all warnings being treated as errors
>make[2]: *** [/mnt/lfs/sources/glibc-2.30/build/sysd-rules:93: 
>/mnt/lfs/sources/glibc-2.30/build/time/time.os] Error 1
>make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.30/time'
>make[1]: *** [Makefile:259: time/subdir_lib] Error 2
>make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.30'
>make: *** [Makefile:9: all] Error 2
>Here is output of version-check script on my system
># ./version_check.sh
>GNU bash, version 5.0.3(1)-release
>------Error: /bin/sh doesn't point to bash-----
>Binutils: GNU ld (GNU Binutils for Debian) 2.31.1
>bison (GNU Bison) 3.3.2
>/usr/bin/yacc ---> /usr/bin/bison.yacc
>bzip2,  Version 1.0.6, 6-Sept-2010.
>Coreutils: chown (GNU coreutils) 8.30
>diff (GNU diffutils) 3.7
>find (GNU findutils) 4.6.0.225-235f
>GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
>/usr/bin/awk ---> /usr/bin/gawk
>gcc (Debian 8.3.0-6) 8.3.0
>g++ (Debian 8.3.0-6) 8.3.0
>
>ldd (Debian GLIBC 2.28-10) 2.28
>grep (GNU grep) 3.3
>gzip 1.9
>cat (GNU coreutils) 8.30
>m4 (GNU M4) 1.4.18
>GNU Make 4.2.1
>GNU patch 2.7.6
>Python 3.7.3
>Perl version='5.28.1';
>sed (GNU sed) 4.7
>tar (GNU tar) 1.30
>texi2any (GNU texinfo) 6.5
>xz (XZ Utils) 5.2.4
>Permission of source & tools directory are shown below
>$ ll $LFS/
>total 36
>drwx------  2 root root 16384 Jan 20 12:46 lost+found
>drwxrwxrwt  6 lfs  root  4096 Jan 21 18:06 sources
>drwxr-xr-x 11 lfs  root  4096 Jan 23 00:31 tools
>-rwxr-xr-x  1 root root  1319 Jan 20 15:42 version_check.sh
>-rw-r--r--  1 root root  5367 Jan 20 16:06 wget-list
>An early response from concerned stakeholders would be appreciated.
>Thank you
>

We don't have stakeholders. Do we?

Anyway, I noticed an oddity in that output, the bit about "all warnings being 
treated as errors." What command line did you use? And did you follow 
everything exactly to this point?

 Flareon Zulu
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to