Skip to content

SingleSource/Regression/C/Regression-C-float16-smoke FAILs to link #64247

Open
@rorth

Description

@rorth

When building LLVM 17.0.0 rc1 on both Linux/x86_64 (Ubuntu 20.04) and Solaris 11.4/amd64, the SingleSource/Regression/C/Regression-C-float16-smoke test FAILed to link:

FAILED: SingleSource/Regression/C/Regression-C-float16-smoke 
[...]
Undefined                       first referenced
 symbol                             in file
__extendhfsf2                       SingleSource/Regression/C/CMakeFiles/Regression-C-float16-smoke.dir/float16-smoke.c.o
__truncsfhf2                        SingleSource/Regression/C/CMakeFiles/Regression-C-float16-smoke.dir/float16-smoke.c.o
ld: fatal: symbol referencing errors

The issue is the same, although the root cause is different in both cases. Those functions live in libgcc and were only introduced in GCC 12.

  • However, on Ubuntu 20.04 the newest available version of GCC is 10.
  • On Solaris 11.4, several versions of GCC are bundled in parallel, up to and including GCC 12 (which would be enough). However, there's a bug in clang that doesn't select the newest version of GCC available but a random one (first in directory order), so on the build machine GCC 10 was chosen.

This test somehow needs to check for the availability of those functions. This test-suite build failure is a regression from LLVM 16.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Needs Triage

Relationships

None yet

Development

No branches or pull requests

Issue actions