#981220 gcc-xtensa-lx106: libgcc doesn't contain soft float functions

Package:
gcc-xtensa-lx106
Source:
gcc-xtensa-lx106
Description:
GNU Compiler Collection for Xtensa lx106 core
Submitter:
Keith Packard
Date:
2021-01-27 20:51:04 UTC
Severity:
normal
#981220#5
Date:
2021-01-27 20:36:19 UTC
From:
To:
It seems that libgcc built for this toolchain is missing the soft float
emulation functions?

This program fails to link:

cat > test.c << EOF
#include <string.h>
#include <stdio.h>
#include <math.h>

int main(void)
{
        char foo[50];
        double q;
        strcpy(foo, "3.1415");
        sscanf(foo, "%lf", &q);
        return (int) (sin(q) * 100);
}
EOF
xtensa-lx106-elf-gcc --specs=picolibc.specs test.c -lm