ich möchte den gdb für ARM selber kompilieren und habe das
https://github.com/bminor/binutils-gdb.git geklont. Mit './configure'
und 'make' kann ich den gdb für Linux bauen. Aber wenn ich z.B. den
Branch users/ARM/embedded-gdb-8.1-branch-2018q2 auschecke und mit den
gleichen Kommandos kompilieren will gibt es nur Fehler:
1 | jojo@sn-1:~/projects/binutils-gdb$ make
|
2 | make[1]: Entering directory '/home/jojo/projects/binutils-gdb'
|
3 | Configuring in ./libiberty
|
4 | configure: loading cache ./config.cache
|
5 | configure: error: `LDFLAGS' has changed since the previous run:
|
6 | configure: former value: ` '
|
7 | configure: current value: `-static-libstdc++ -static-libgcc '
|
8 | configure: error: in `/home/jojo/projects/binutils-gdb/libiberty':
|
9 | configure: error: changes in the environment can compromise the build
|
10 | configure: error: run `make distclean' and/or `rm ./config.cache' and start over
|
11 | Makefile:8285: recipe for target 'configure-libiberty' failed
|
12 | make[1]: *** [configure-libiberty] Error 1
|
13 | make[1]: Leaving directory '/home/jojo/projects/binutils-gdb'
|
14 | Makefile:849: recipe for target 'all' failed
|
15 | make: *** [all] Error 2
|
make distclean wie in der Meldung hat auch nicht geholfen. Fehlt da
nochwas für das libiberty oder braucht configure irgendwelche Argumente
für das arm-none-eabi ? Und kann man damit auch das exe für Windows
bauen?
edit:
habe noch gefunden das ich wohl ein ./configure --build=arm-none-eabi
brauche, aber das geht auch nicht (arm toolchain ist im Suchpfad)
1 | jojo@sn-1:~/projects/binutils-gdb$ make
|
2 | make[1]: Entering directory '/home/jojo/projects/binutils-gdb'
|
3 | Configuring in ./libiberty
|
4 | configure: loading cache ./config.cache
|
5 | configure: error: `build_alias' has changed since the previous run:
|
6 | configure: former value: `x86_64-pc-linux-gnu'
|
7 | configure: current value: `arm-none-eabi'
|
8 | configure: error: `host_alias' has changed since the previous run:
|
9 | configure: former value: `x86_64-pc-linux-gnu'
|
10 | configure: current value: `arm-none-eabi'
|
11 | configure: error: `target_alias' has changed since the previous run:
|
12 | configure: former value: `x86_64-pc-linux-gnu'
|
13 | configure: current value: `arm-none-eabi'
|
14 | configure: error: `LDFLAGS' has changed since the previous run:
|
15 | configure: former value: ` '
|
16 | configure: current value: `-static-libstdc++ -static-libgcc '
|
17 | configure: error: in `/home/jojo/projects/binutils-gdb/libiberty':
|
18 | configure: error: changes in the environment can compromise the build
|
19 | configure: error: run `make distclean' and/or `rm ./config.cache' and start over
|
20 | Makefile:8284: recipe for target 'configure-libiberty' failed
|
21 | make[1]: *** [configure-libiberty] Error 1
|
22 | make[1]: Leaving directory '/home/jojo/projects/binutils-gdb'
|
23 | Makefile:848: recipe for target 'all' failed
|
24 | make: *** [all] Error 2
|
irgendwas muss da wohl noch gelöscht werden, aber 'make distclean'
säubert nicht alles?