From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by sourceware.org (Postfix) with ESMTPS id 3D6D03858D34 for ; Wed, 8 Jul 2020 17:42:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3D6D03858D34 Received: by mail-io1-xd2e.google.com with SMTP id o5so47805707iow.8 for ; Wed, 08 Jul 2020 10:42:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+vvygt4MUu7JEXKDDodPK+EX1Wq0smzR7gZahbukWeo=; b=ivchVhMwTanlNQX0FJiGwzhE08gOzm7HivPk1HvWXzf25dl0gcFovZjpUGJ1Ueo9Ia AKyKYr6zwm39vH+6gwemwmsocgRFwR//OYCdPjmRRvqdm0F0Uy+JPEZpeAwBYhx2My+d 0zydYB0YL2mxXbvy1EfA4DJ52wmd4t6PYbHXENNXvIR54SvaBCBUAET1WZvC+cPV4iBB oiWwelBymdmVn3KQFOfnscRmzARafEp3B5Ch5TReQ4cHl2J2sx1d+wNiY4/Y0Lpt0duW oLC0J/6ts5jrsxNY0ueEo5gmo2v09YIiflCgvnaTmZF8MM8a4oHaI6ulBQAF9vVZnVei W56Q== X-Gm-Message-State: AOAM533ZEd6Mhp4kYKCc+KP9J4AmLAv1RT3IRDkQDRhIiBfYhL6+5nbR DiKY4UTQg0FVqrZO/tSLAdpq6VsRIfClSaN0ycU= X-Google-Smtp-Source: ABdhPJwWXZuauL3M/BupkiAjoMNflStQ/u5Hdbt5PrZqm663prPrL9dZnGarMzSwKpuYzzZe18vLh5KIkZJ6ffsIRSs= X-Received: by 2002:a5d:8143:: with SMTP id f3mr22546957ioo.157.1594230173626; Wed, 08 Jul 2020 10:42:53 -0700 (PDT) MIME-Version: 1.0 References: <43f454a5-b427-bdcf-b58e-698917f1c290@embedded-brains.de> In-Reply-To: From: Eshan Dhawan Date: Wed, 8 Jul 2020 23:12:41 +0530 Message-ID: Subject: Re: fenv() support broken with GCC 10 on ARM To: Sebastian Huber Cc: Newlib X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 17:42:55 -0000 On Wed, Jul 8, 2020 at 10:57 PM Sebastian Huber < sebastian.huber@embedded-brains.de> wrote: > On 08/07/2020 15:00, Sebastian Huber wrote: > > > Hello, > > > > I get the following linker errors with GCC and the latest Newlib on ARM= : > > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/bin/ld: > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-vfp.o):/scratch/git-rtems-source-builder/rtems= /build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/arm-r= tems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:61: > > > multiple definition of `__softfloat_float_rounding_mode'; > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-softfp.o):/scratch/git-rtems-source-builder/rt= ems/build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/ar= m-rtems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:61: > > > first defined here > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/bin/ld: > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-vfp.o):/scratch/git-rtems-source-builder/rtems= /build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/arm-r= tems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:60: > > > multiple definition of `__softfloat_float_exception_mask'; > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-softfp.o):/scratch/git-rtems-source-builder/rt= ems/build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/ar= m-rtems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:60: > > > first defined here > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/bin/ld: > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-vfp.o):/scratch/git-rtems-source-builder/rtems= /build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/arm-r= tems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:59: > > > multiple definition of `__softfloat_float_exception_flags'; > > > /build/rtems/6/lib/gcc/arm-rtems6/10.1.1/../../../../arm-rtems6/lib/thumb= /cortex-m3/libm.a(lib_a-fenv-softfp.o):/scratch/git-rtems-source-builder/rt= ems/build/arm-rtems6-gcc-50666d2-newlib-f095752-x86_64-linux-gnu-1/build/ar= m-rtems6/thumb/cortex-m3/newlib/targ-include/machine/fenv-softfloat.h:59: > > > first defined here > > Could you tell the the Newlib configurations you used So I could regenerate the issue :) -Eshan > Affected are ARM and MIPS: > > grep -r 'int __softfloat_float_' . > newlib/libc/machine/arm/machine/fenv-softfloat.h:int > __softfloat_float_exception_flags; > newlib/libc/machine/arm/machine/fenv-softfloat.h:int > __softfloat_float_exception_mask; > newlib/libc/machine/arm/machine/fenv-softfloat.h:int > __softfloat_float_rounding_mode; > newlib/libc/machine/mips/machine/fenv-softfloat.h:int > __softfloat_float_exception_flags; > newlib/libc/machine/mips/machine/fenv-softfloat.h:int > __softfloat_float_exception_mask; > newlib/libc/machine/mips/machine/fenv-softfloat.h:int > __softfloat_float_rounding_mode; > > There needs to be a declaration only in the header file and a definition > somewhere else.