Compiling on Linux

Hi

I got the latest version of wixel-sdk via git and installed the sdcc compiler:

@wus-desktop2:~/Projects/wixel-sdk$ sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb  3 2010) (UNIX)
@wus-desktop2:~/Projects/wixel-sdk$ make -v
GNU Make 3.81
Copyright (C) 2006  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 run make I get the following error (google was not very helpful):

@wus-desktop2:~/Projects/wixel-sdk$ make
Compiling libraries/src/usb_cdc_acm/usb_cdc_acm.rel

libraries/src/usb_cdc_acm/usb_cdc_acm.c:128: syntax error: token -> 'USB_DESCRIPTOR_CONFIGURATION' ; column 39
make: *** [libraries/src/usb_cdc_acm/usb_cdc_acm.rel] Error 1

I am running 64bit linux.

Any Ideas?

Hello, wus.

I’m not sure exactly what is causing that error, but I think that even if you fix that error you will have other problems because you are using an old version of SDCC. There were significant changes between SDCC versions 2.9.0 and 3.0.0 which mean that 2.9.0 will not be able to compile the Wixel SDK without some modifications. Please try upgrading your SDCC to version 3.0.0 or later. If SDCC 3.0.0 is not available as a package in your package manager, you might have to install it from source:
sourceforge.net/projects/sdcc/fi … linux-x86/

–David Grayson

Dear David

Your suggestion was really helpful (I guess I missed a memo). After installing sdcc 3.0 the error is gone and my source is compiling.

Kind regards,
-S