14.3.2 compiler error Topic is solved

If you have a simple question and just want an answer.
Post Reply
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

14.3.2 compiler error

Post by akp »

Hi

I am trying to build code that builds fine in 14.2.4 in 14.3.2. My code is based on AN00203 (which builds fine in both versions). However, I am getting a weird compiler error I would like to report but I am not sure how to generate a minimal example. Any clue as to what kind of construct in my code would error out in the compiler with this message:

Code: Select all

xcc1: internal compiler error
Failed in ..\Common\Constant\constant.cpp, line 665
	v.choice != TYPE_DERIVED_ENUM && "should isTypeIntegral(v) be used instead of isTypeInteger(v) below?"
For bug reporting instructions, please see:
http://www.xmos.com/support
xmake[1]: *** [.build/src/main.xc.o] Error 1


View Solution
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Found it. I was mixing the enumerated type ethernet_speed_t with its integer equivalents like a cowboy.

/** Type representing the PHY link speed and duplex */
typedef enum ethernet_speed_t {
LINK_10_MBPS_FULL_DUPLEX, /**< 10 Mbps full duplex */
LINK_100_MBPS_FULL_DUPLEX, /**< 100 Mbps full duplex */
LINK_1000_MBPS_FULL_DUPLEX, /**< 1000 Mbps full duplex */
NUM_ETHERNET_SPEEDS /**< Count of speeds in this enum */
} ethernet_speed_t;
Post Reply