https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166

            Bug ID: 103166
           Summary: [12 regression] wrong dependency on getentropy on
                    newlib-based targets
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Since r12-5066, I've noticed numerous link failures on aarch64-none-elf like:

FAIL: g++.dg/concepts/expression.C  -std=gnu++17 (test for excess errors)
Excess errors:
/libstdc++-v3/src/c++11/random.cc:179: undefined reference to `getentropy'
/libstdc++-v3/src/c++11/random.cc:179:(.text._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x10):
relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
`getentropy'
/libstdc++-v3/src/c++11/random.cc:452: undefined reference to `getentropy'
/libstdc++-v3/src/c++11/random.cc:452:(.text._ZNSt13random_device7_M_initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x68):
relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
`getentropy'
/aci-gcc-fsf/sources/newlib/newlib/libc/stdlib/arc4random.c:89: undefined
reference to `getentropy'
/aci-gcc-fsf/sources/newlib/newlib/libc/stdlib/arc4random.c:89:(.text+0x558):
relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
`getentropy'

Maybe there's something wrong with the detection of HAVE_GETENTROPY in
configure?

Reply via email to