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

Problems building the cross toolchain #1

Closed
oliverbrandt opened this issue Nov 3, 2018 · 2 comments
Closed

Problems building the cross toolchain #1

oliverbrandt opened this issue Nov 3, 2018 · 2 comments

Comments

@oliverbrandt
Copy link

Using the raspi-armeb branch I ran configure with the following arguments: ~/src/aros/AROS/configure --target=raspi-armeb --with-serial-debug --enable-ccache --with-portssources=~/src/aros/ports --with-gcc-version=6.3.0

Running make the build fails in /home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/gen/host/tools/crosstools/gcc/armeb-aros/libgcc on creating the cross toolchain:

configure:3653: checking for suffix of object files
configure:3675: /home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/gen/host/tools/crosstools/gcc/./gcc/xgcc -B/home
/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/gen/host/tools/crosstools/gcc/./gcc/ -B/home/oliver/src/aros/aros-ras
pi-armeb/bin/linux-x86_64/tools/crosstools/armeb-aros/bin/ -B/home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/too
ls/crosstools/armeb-aros/lib/ -isystem /home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/tools/crosstools/armeb-ar
os/include -isystem /home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/tools/crosstools/armeb-aros/sys-include    -
c -g -O2  conftest.c >&5
Assembler messages:
Error: unknown architecture armv7ve

Error: unrecognized option -march=armv7ve
configure:3679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3693: error: in `/home/oliver/src/aros/aros-raspi-armeb/bin/linux-x86_64/gen/host/tools/crosstools/gcc/armeb-a
ros/libgcc':
configure:3696: error: cannot compute suffix of object files: cannot compile

Do you have any idea why this happens and how to fix it?

@michalsc
Copy link
Owner

michalsc commented Nov 4, 2018

You need to build AROS with newer version of binutils. The one which is picked up by default is too old and it does not know about armv7ve architecture. Please build AROS with binutils 2.30:

configure --target=raspi-armeb --with-gcc-version=6.3.0 --with-binutils-version=2.30

@oliverbrandt
Copy link
Author

Thanks! That did the trick and now I am able to build the image.

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