RISC-V: warning: fedisableexcept is not implemented and will always fail

Open
#345 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
testing-qa

Research direction

Reproduce the report with example.cpp and the shown riscv64-linux-gnu-g++-11 cross-compilation command. Start by tracing Boost.Test's floating-point exception handling that leads to feenableexcept and fedisableexcept, then establish whether the expected result is to avoid these calls on RISC-V and verify that the linker warnings no longer appear.

Written by the indexing model from the issue text.

Description

Cross-compiling a minimal Boost Test example for RISC-V:

#define BOOST_TEST_MODULE Example Test
#include <boost/test/included/unit_test.hpp>

BOOST_AUTO_TEST_CASE( test1 )
{
    int i = 1;
    BOOST_CHECK( i*i == 1 );
}
riscv64-linux-gnu-g++-11 --version
riscv64-linux-gnu-g++-11 (Ubuntu 11.2.0-16ubuntu1) 11.2.0

riscv64-linux-gnu-g++-11 example.cpp
/usr/lib/gcc-cross/riscv64-linux-gnu/11/../../../../riscv64-linux-gnu/bin/ld: /tmp/ccvQglzN.o: in function `.L0 ':
riscv_boost_test.cpp:(.text+0xd300): warning: fedisableexcept is not implemented and will always fail
/usr/lib/gcc-cross/riscv64-linux-gnu/11/../../../../riscv64-linux-gnu/bin/ld: riscv_boost_test.cpp:(.text+0xd2ac): warning: feenableexcept is not implemented and will always fail
Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/test

All issues in boostorg/test

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.