Skip to content

Compilation fails with the new gcc-rx compiler version 14.2.0 #455

@sayyadumar

Description

@sayyadumar

The following is my setup:

sayyad@sayyad-tux:~/projects/rx/RX$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble

sayyad@sayyad-tux:~/projects/rx/RX$ rx-elf-gcc --version
rx-elf-gcc (GCC_Build_9b12496d2) 14.2.0.202505-GNURX 20240801
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When i try to compile with the ./all_project_build.sh -debug , I get the following errors,

sayyad@sayyad-tux:~/projects/rx/RX$ ./all_project_build.sh -debug
Start project (debug):  RX600/drw2d 
Build project:  RX600/drw2d 
Start project (debug):  ADC_sample RX140 
Build project:  ADC_sample RX140 
Start project (debug):  ADC_sample RX220 
Build project:  ADC_sample RX220 
Start project (debug):  ADC_sample RX231 
Build project:  ADC_sample RX231 
Start project (debug):  ADC_sample RX24T 
Build project:  ADC_sample RX24T 
Start project (debug):  ADC_sample RX26T 
In file included from ../../common/renesas.hpp:449,
                 from ../../ADC_sample/main.cpp:10:
../../RX26T/system_io.hpp: In static member function ‘static void device::system_io<OSCT>::boost_master_clock()’:
**../../RX26T/system_io.hpp:188:25: error: there are no arguments to ‘__init_tfu’ that depend on a template parameter, so a declaration of ‘__init_tfu’ must be available [-fpermissive]
  188 |                         __init_tfu();**
      |                         ^~~~~~~~~~

This error can be fixed by defining the missing function, which i did. But after fixing that i get further errors,

In file included from /home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/bits/postypes.h:40,
                 from /home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/bits/char_traits.h:42,
                 from /home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/string:42,
                 from ../../common/format.hpp:60,
                 from ../../RX62x/flash_io.hpp:27,
                 from ../../common/renesas.hpp:450:
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:148:11: error: ‘fwide’ has not been declared in ‘::’
  148 |   using ::fwide;
      |           ^~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:149:11: error: ‘fwprintf’ has not been declared in ‘::’
  149 |   using ::fwprintf;
      |           ^~~~~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:150:11: error: ‘fwscanf’ has not been declared in ‘::’
  150 |   using ::fwscanf;
      |           ^~~~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:160:11: error: ‘swprintf’ has not been declared in ‘::’
  160 |   using ::swprintf;
      |           ^~~~~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:162:11: error: ‘swscanf’ has not been declared in ‘::’
  162 |   using ::swscanf;
      |           ^~~~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:164:11: error: ‘vfwprintf’ has not been declared in ‘::’
  164 |   using ::vfwprintf;
      |           ^~~~~~~~~
/home/sayyad/toolchains/gcc_14.2.0.202505_rx_elf/rx-elf/include/c++/14.2.0.202505-GNURX/cwchar:169:11: error: ‘vswprintf’ has not been declared in ‘::’
  169 |   using ::vswprintf;

This looks like a libc error, so i thought passing the -specs=nano.specs would help, but this complains about missing _sbrk function.

Could you please take a look? If you want i can help too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions