bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression: "wchar: fix bug when checking for ‘inline’" breaks distcc us


From: Thomas Deutschmann
Subject: Regression: "wchar: fix bug when checking for ‘inline’" breaks distcc usage
Date: Tue, 4 Sep 2018 12:48:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Thunderbird/52.9.1

Hi,

I noticed that the following change has broken distcc usage:

> From 285334ca5ac8f537bc183abd121aa68984e5a515 Mon Sep 17 00:00:00 2001
> From: Paul Eggert
> Date: Sun, 1 Jul 2018 18:57:01 -0700
> Subject: wchar: fix bug when checking for ‘inline’

(https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=285334ca5ac8f537bc183abd121aa68984e5a515)

When using distcc, configure will now fail with

> configure:21565: checking whether <wchar.h> uses 'inline' correctly
> configure:21590: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=sandybridge 
> -mtune=sandybridge  conftest1.c >&5
> configure:21593: $? = 0
> configure:21612: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=sandybridge 
> -mtune=sandybridge  conftest2.c >&5
> configure:21615: $? = 0
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
>  conftest2.o: in function `main':
> conftest2.c:(.text.startup+0x0): multiple definition of `main'; 
> conftest1.o:conftest1.c:(.text.startup+0x0): first defined here
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
>  conftest1.o: in function `main':
> conftest1.c:(.text.startup+0x1): undefined reference to `zero'
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
>  conftest2.o: in function `main':
> conftest2.c:(.text.startup+0x1): undefined reference to `zero'
> collect2: error: ld returned 1 exit status
> distcc[20786] ERROR: compile (null) on localhost failed
> configure:21628: result: no
> configure:21631: error: <wchar.h> cannot be used with this compiler 
> (x86_64-pc-linux-gnu-gcc -O2 -pipe -march=sandybridge -mtune=sandybridge ).
> This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
> C99 mode. You have four options:
>   - Add the flag -fgnu89-inline to CC and reconfigure, or
>   - Fix your include files, using parts of
>     
> <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>,
>  or
>   - Use a gcc version older than 4.3, or
>   - Don't use the flags -std=c99 or -std=gnu99.
> Configuration aborted.

The error message isn't true:

- Host and all distcc systems are running gcc-8.2.0 (but I saw that already 
with gcc-7.3.0(

- Host and all distcc systems are running same glibc and binutils version


Reverting the patch will restore distcc usage.

Downstream-Bug (With additional logs): https://bugs.gentoo.org/665214


-- 
Regards,
Thomas Deutschmann / Gentoo Linux Developer
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]