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

makefile en linux, $CPU se superpone con entorno global #environment #441

Open
alfredogluque opened this issue Aug 29, 2016 · 0 comments
Open

Comments

@alfredogluque
Copy link

Hola todos, tuve un problema al compilar, que da un error:
arm-none-eabi-gcc -c (.....) -DARCH=cortexM4 -DCPUTYPE=lpc43xx -DCPU=x86_64 -DBOARD=edu_ciaa_nxp ./modules/posix/src/ciaaPOSIX_errno.c -o ./out/obj/ciaaPOSIX_errno.o ./modules/base/inc/ciaaPlatforms.h:179:2: error: #error the entered architecture is not supported...

El problema resulta que, al menos en la distribución OpenSuse, ya existe una variable de entorno $CPU, y el makefile intenta escribir la misma variable y falla, entonces siempre $CPU = x86_64

Workaround: En línea de comandos, ejecutar:
~> unset CPU
~> eclipse

Propuesta de solución (ver conversación en Embebidos32)
Reemplazar, en todos los makefiles y en el makefile.config, la variable 'CPU' por 'CIAA_CPU'

Saludos! -- Alfredo Luque

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

No branches or pull requests

2 participants