[Clfs-support] Clfs-support Digest, Vol 99, Issue 1
Sefa Nur Yücel
yucelsefanur at gmail.com
Mon Aug 22 09:30:01 PDT 2016
GCC version is 4.1.2. When I compiled GCC on new terminal, I didn't connect with root. But I tried a lot of times with root , I always have same errors.
I saw these errors when compiler libiberty. Firstly, I supposed, C documents didn't found library like ctype, stdio. But it was false, because anything didn't change.
I didn't see the website. I will look.
Thanks.
Sefa
> On 22 Aug 2016, at 19:03, clfs-support-request at lists.clfs.org wrote:
>
> Send Clfs-support mailing list submissions to
> clfs-support at lists.clfs.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
> or, via email, send a message with subject or body 'help' to
> clfs-support-request at lists.clfs.org
>
> You can reach the person managing the list at
> clfs-support-owner at lists.clfs.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Clfs-support digest..."
>
>
> Today's Topics:
>
> 1. CLFS (Sefa Nur Y?cel)
> 2. Re: CLFS (Andrew Bradford)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 22 Aug 2016 16:56:10 +0300
> From: Sefa Nur Y?cel <yucelsefanur at gmail.com>
> To: clfs-support at lists.clfs.org
> Subject: [Clfs-support] CLFS
> Message-ID:
> <CAL7KzWn4OrAyz6c3Rw_1bKqSF4YH9+1a-QbsxtT=MuFAz8NXKg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> My name is Sefa Nur, I'm trying to make CLFS.It is the my first time so I
> slog on it.
> Now, I try to compile GCC and always I see the errors(in enclosed).
> Could you help me?
>
>> /mnt/clfs/sources/gcc-build$ sudo make all-gcc
>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/libiberty'
>> make[2]: Entering directory '/mnt/clfs/sources/gcc-build/
> libiberty/testsuite'
>> make[2]: Nothing to be done for 'all'.
>> make[2]: Leaving directory '/mnt/clfs/sources/gcc-build/
> libiberty/testsuite'
>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/libiberty'
>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/intl'
>> make[1]: Nothing to be done for 'all'.
>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/intl'
>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/libiberty'
>> make[2]: Entering directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/libiberty/testsuite'
>> make[2]: Nothing to be done for 'all'.
>> make[2]: Leaving directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/libiberty/testsuite'
>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/libiberty'
>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/fixincludes'
>> gcc -g -O2 -o fixincl fixincl.o fixtests.o fixfixes.o server.o
> procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
>> fixincl.o: In function `test_for_changes':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1237: undefined
> reference to `__fgetc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1264: undefined
> reference to `__fputc_unlocked'
>> fixincl.o: In function `extract_quoted_files':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:757: undefined
> reference to `__fputc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:763: undefined
> reference to `__fputc_unlocked'
>> fixincl.o: In function `write_replacement':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1208: undefined
> reference to `__fputc_unlocked'
>> fixincl.o: In function `extract_quoted_files':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:766: undefined
> reference to `__fputc_unlocked'
>> fixfixes.o: In function `format_write':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:187: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:201: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:208: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:187: undefined
> reference to `__fputc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:201: undefined
> reference to `__fputc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:208: undefined
> reference to `__fputc_unlocked'
>> fixfixes.o: In function `char_macro_use_fix':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:373: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:374: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:375: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:375: undefined
> reference to `__fputc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:374: undefined
> reference to `__fputc_unlocked'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:373: undefined
> reference to `__fputc_unlocked'
>> fixfixes.o: In function `char_macro_def_fix':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:469: undefined
> reference to `__stdout'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:469: undefined
> reference to `__fputc_unlocked'
>> ../libiberty/libiberty.a(regex.o): In function `init_syntax_once':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> libiberty/../../../gcc-4.1.1/libiberty/regex.c:284: undefined reference to
> `__ctype_b'
>> ../libiberty/libiberty.a(regex.o): In function `byte_regex_compile':
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3279: undefined reference to
> `__ctype_b'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3280: undefined reference to
> `__ctype_b'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3281: undefined reference to
> `__ctype_b'
>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3282: undefined reference to
> `__ctype_b'
>> ../libiberty/libiberty.a(regex.o):/mnt/clfs/sources/
> gcc-build/build-x86_64-cross-linux-gnu/libiberty/../../../
> gcc-4.1.1/libiberty/regex.c:3284: more undefined references to `__ctype_b'
> follow
>> collect2: error: ld returned 1 exit status
>> Makefile:106: recipe for target 'full-stamp' failed
>> make[1]: *** [full-stamp] Error 1
>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/
> build-x86_64-cross-linux-gnu/fixincludes'
>> Makefile:2318: recipe for target 'all-build-fixincludes' failed
>> make: *** [all-build-fixincludes] Error 2
>
>
> Best Regards,
>
> Sefa
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20160822/3f73f3b2/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 22 Aug 2016 10:37:47 -0400
> From: Andrew Bradford <andrew at bradfordembedded.com>
> To: CLFS Support <clfs-support at lists.clfs.org>
> Subject: Re: [Clfs-support] CLFS
> Message-ID:
> <20160822143747.jqgeghkqtku363ln at kaim-eeyore.kodakalaris.net>
> Content-Type: text/plain; charset=utf-8
>
> Hi Sefa,
>
> Which book and what version of that book are you using? GCC 4.1.1 is
> quite old.
>
> Why are you using sudo to compile?
>
> Which pass of GCC building is this failure happening on?
>
> Have you looked at this GCC bugzilla entry which seems like a similar
> failure to yours [1]? Are you sure that your host system's glibc
> version and the headers you have installed for your libc on the host
> match?
>
> [1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14157
>
> Thanks,
> Andrew
>
>> On 08/22 16:56, Sefa Nur Y?cel wrote:
>> Hi,
>>
>> My name is Sefa Nur, I'm trying to make CLFS.It is the my first time so I
>> slog on it.
>> Now, I try to compile GCC and always I see the errors(in enclosed).
>> Could you help me?
>>
>>> /mnt/clfs/sources/gcc-build$ sudo make all-gcc
>>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/libiberty'
>>> make[2]: Entering directory '/mnt/clfs/sources/gcc-build/
>> libiberty/testsuite'
>>> make[2]: Nothing to be done for 'all'.
>>> make[2]: Leaving directory '/mnt/clfs/sources/gcc-build/
>> libiberty/testsuite'
>>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/libiberty'
>>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/intl'
>>> make[1]: Nothing to be done for 'all'.
>>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/intl'
>>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/libiberty'
>>> make[2]: Entering directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/libiberty/testsuite'
>>> make[2]: Nothing to be done for 'all'.
>>> make[2]: Leaving directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/libiberty/testsuite'
>>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/libiberty'
>>> make[1]: Entering directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/fixincludes'
>>> gcc -g -O2 -o fixincl fixincl.o fixtests.o fixfixes.o server.o
>> procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
>>> fixincl.o: In function `test_for_changes':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1237: undefined
>> reference to `__fgetc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1264: undefined
>> reference to `__fputc_unlocked'
>>> fixincl.o: In function `extract_quoted_files':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:757: undefined
>> reference to `__fputc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:763: undefined
>> reference to `__fputc_unlocked'
>>> fixincl.o: In function `write_replacement':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:1208: undefined
>> reference to `__fputc_unlocked'
>>> fixincl.o: In function `extract_quoted_files':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixincl.c:766: undefined
>> reference to `__fputc_unlocked'
>>> fixfixes.o: In function `format_write':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:187: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:201: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:208: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:187: undefined
>> reference to `__fputc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:201: undefined
>> reference to `__fputc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:208: undefined
>> reference to `__fputc_unlocked'
>>> fixfixes.o: In function `char_macro_use_fix':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:373: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:374: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:375: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:375: undefined
>> reference to `__fputc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:374: undefined
>> reference to `__fputc_unlocked'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:373: undefined
>> reference to `__fputc_unlocked'
>>> fixfixes.o: In function `char_macro_def_fix':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:469: undefined
>> reference to `__stdout'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> fixincludes/../../../gcc-4.1.1/fixincludes/fixfixes.c:469: undefined
>> reference to `__fputc_unlocked'
>>> ../libiberty/libiberty.a(regex.o): In function `init_syntax_once':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> libiberty/../../../gcc-4.1.1/libiberty/regex.c:284: undefined reference to
>> `__ctype_b'
>>> ../libiberty/libiberty.a(regex.o): In function `byte_regex_compile':
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3279: undefined reference to
>> `__ctype_b'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3280: undefined reference to
>> `__ctype_b'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3281: undefined reference to
>> `__ctype_b'
>>> /mnt/clfs/sources/gcc-build/build-x86_64-cross-linux-gnu/
>> libiberty/../../../gcc-4.1.1/libiberty/regex.c:3282: undefined reference to
>> `__ctype_b'
>>> ../libiberty/libiberty.a(regex.o):/mnt/clfs/sources/
>> gcc-build/build-x86_64-cross-linux-gnu/libiberty/../../../
>> gcc-4.1.1/libiberty/regex.c:3284: more undefined references to `__ctype_b'
>> follow
>>> collect2: error: ld returned 1 exit status
>>> Makefile:106: recipe for target 'full-stamp' failed
>>> make[1]: *** [full-stamp] Error 1
>>> make[1]: Leaving directory '/mnt/clfs/sources/gcc-build/
>> build-x86_64-cross-linux-gnu/fixincludes'
>>> Makefile:2318: recipe for target 'all-build-fixincludes' failed
>>> make: *** [all-build-fixincludes] Error 2
>>
>>
>> Best Regards,
>>
>> Sefa
>
>> _______________________________________________
>> Clfs-support mailing list
>> Clfs-support at lists.clfs.org
>> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.clfs.org
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org
>
>
> ------------------------------
>
> End of Clfs-support Digest, Vol 99, Issue 1
> *******************************************
More information about the Clfs-support
mailing list