Error compiling in a library #define "hal/uhci_ll.h"
Posted: Fri Dec 15, 2023 2:41 pm
I have this error before never give me an error, but now yes:
Code: Select all
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h: In function 'void uhci_ll_set_seper_chr(uhci_dev_t*, uhci_seper_chr_t*)':
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:57:51: error: no matching function for call to
$_anon_104(volatile uhci_dev_s::<unnamed union>&)'
57 | typeof(hw->esc_conf0) esc_conf0_reg = hw->esc_conf0;
| ^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:190:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(const uhci_dev_s::<unnamed union>&)' (near match)
190 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:190:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:57:51: error: binding reference of type 'const uhci_dev_s::<unnamed union>&' to 'volatile uhci_dev_s::<unnamed union>' discards qualifiers
57 | typeof(hw->esc_conf0) esc_conf0_reg = hw->esc_conf0;
| ~~~~^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:190:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(uhci_dev_s::<unnamed union>&&)' (near match)
190 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:190:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:57:51: error: cannot bind rvalue reference of type 'uhci_dev_s::<unnamed union>&&' to lvalue of type 'volatile uhci_dev_s::<unnamed union>'
57 | typeof(hw->esc_conf0) esc_conf0_reg = hw->esc_conf0;
| ~~~~^~~~~~~~~
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h: In function 'void uhci_ll_set_swflow_ctrl_sub_chr(uhci_dev_t*, uhci_swflow_ctrl_sub_chr_t*)':
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:78:51: error: no matching function for call to
$_anon_95(volatile uhci_dev_s::<unnamed union>&)'
78 | typeof(hw->escape_conf) escape_conf_reg = hw->escape_conf;
| ^~~~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:142:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(const uhci_dev_s::<unnamed union>&)' (near match)
142 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:142:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:78:51: error: binding reference of type 'const uhci_dev_s::<unnamed union>&' to 'volatile uhci_dev_s::<unnamed union>' discards qualifiers
78 | typeof(hw->escape_conf) escape_conf_reg = hw->escape_conf;
| ~~~~^~~~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:142:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(uhci_dev_s::<unnamed union>&&)' (near match)
142 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:142:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:78:51: error: cannot bind rvalue reference of type 'uhci_dev_s::<unnamed union>&&' to lvalue of type 'volatile uhci_dev_s::<unnamed union>'
78 | typeof(hw->escape_conf) escape_conf_reg = hw->escape_conf;
| ~~~~^~~~~~~~~~~
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:80:51: error: no matching function for call to
$_anon_108(volatile uhci_dev_s::<unnamed union>&)'
80 | typeof(hw->esc_conf2) esc_conf2_reg = hw->esc_conf2;
| ^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:208:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(const uhci_dev_s::<unnamed union>&)' (near match)
208 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:208:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:80:51: error: binding reference of type 'const uhci_dev_s::<unnamed union>&' to 'volatile uhci_dev_s::<unnamed union>' discards qualifiers
80 | typeof(hw->esc_conf2) esc_conf2_reg = hw->esc_conf2;
| ~~~~^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:208:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(uhci_dev_s::<unnamed union>&&)' (near match)
208 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:208:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:80:51: error: cannot bind rvalue reference of type 'uhci_dev_s::<unnamed union>&&' to lvalue of type 'volatile uhci_dev_s::<unnamed union>'
80 | typeof(hw->esc_conf2) esc_conf2_reg = hw->esc_conf2;
| ~~~~^~~~~~~~~
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:81:51: error: no matching function for call to
$_anon_110(volatile uhci_dev_s::<unnamed union>&)'
81 | typeof(hw->esc_conf3) esc_conf3_reg = hw->esc_conf3;
| ^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:217:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(const uhci_dev_s::<unnamed union>&)' (near match)
217 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:217:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:81:51: error: binding reference of type 'const uhci_dev_s::<unnamed union>&' to 'volatile uhci_dev_s::<unnamed union>' discards qualifiers
81 | typeof(hw->esc_conf3) esc_conf3_reg = hw->esc_conf3;
| ~~~~^~~~~~~~~
In file included from C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:22,
from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:217:11: note: candidate: 'constexpr uhci_dev_s::<unnamed union>::<constructor>(uhci_dev_s::<unnamed union>&&)' (near match)
217 | union {
| ^
C:/Users/sopor/esp32/esp-idf/components/soc/esp32s3/include/soc/uhci_struct.h:217:11: note: conversion of argument 1 would be ill-formed:
In file included from C:/workspace/Core_4G/HAL/Example/esp32/dma/GDMA_HAL_UHCI_UART_EXAMPLE/src/board/board.h:20,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.h:55,
from C:/workspace/Core_4G/HAL/EHAL/uart/esp32/specific_uart.cpp:22:
C:/Users/sopor/esp32/esp-idf/components/hal/esp32s3/include/hal/uhci_ll.h:81:51: error: cannot bind rvalue reference of type 'uhci_dev_s::<unnamed union>&&' to lvalue of type 'volatile uhci_dev_s::<unnamed union>'
81 | typeof(hw->esc_conf3) esc_conf3_reg = hw->esc_conf3;