Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during cross compilation for Freescale PL-16/iMX28 Platform #12

Closed
lategoodbye opened this issue Sep 27, 2013 · 1 comment
Closed
Assignees

Comments

@lategoodbye
Copy link
Contributor

Cross compiling the open-plc-utils for the PL-16 board leads to the following compile error:

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin//arm-none-linux-gnueabi-gcc -c amptone.c -Wall -Wextra -Wno-unused-parameter -DMAKEFILE -D__GETOPT_H__ -D_GETOPT_DEFINED_ -D__FREESCALE__  -DAR7x00 
amptone.c: In function 'main':
amptone.c:179: error: 'AMPTONE_COUPLING' undeclared (first use in this function)
amptone.c:179: error: (Each undeclared identifier is reported only once
amptone.c:179: error: for each function it appears in.)
make[1]: *** [amptone.o] Error 1
make[1]: Leaving directory '/home/user/freescale/open-plc-utils-master/plc'
make: *** [all] Error 1

Used settings from make.defs:

ROOTFS=~/ltib/rootfs
TOOLPATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/
CROSS=${TOOLPATH}/arm-none-linux-gnueabi-
CROSS_LINUX=$(TOOLPREFIX)

CFLAGS=-Wall -Wextra -Wno-unused-parameter -DMAKEFILE -D__GETOPT_H__ -D_GETOPT_DEFINED_ -D__FREESCALE__ $(EXTRA_CFLAGS)

Workaround - adding the following define to the files plctone.c and amptone.c:

#define AMPTONE_COUPLING 0
lategoodbye added a commit to chargebyte/open-plc-utils that referenced this issue Sep 27, 2013
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
@ghost ghost assigned razzlefratz Sep 29, 2013
@razzlefratz
Copy link
Contributor

Constant AMPTONE_COUPLING has been replaced by constant PLCOUPLING which is defined in plc.h. The concept of coupling is new and only applies to QCA Smart Grid devices. Basically, coupling specifies whether to use line-neutral or line-ground when sampling tone maps. THe move to PLCOUPLING will be uploaded later tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants