D
D
dlinyj2013-09-10 23:48:35
linux
dlinyj, 2013-09-10 23:48:35

Building a toolchain for sdhc wifi. The compiler does not compile + who has any progress on the topic?

Continuing the topic of hacking wifi sdhc cards, I wanted to build linux and put it on a torrent for the people, with ready-made tools for downloading these flash drives. To do this, I decided to assemble a toolchain in it. Here ( a specific topic) is an excellent manual, but as usual there is one ambush.

Everything went smoothly, until the compiler itself was assembled, specifically up to this line:

make all-gcc all-target-libgcc && make install-gcc install-target-libgcc


To be specific, everything spills out when building libgcc. Those. the gcc compile command succeeds, but now

make all-target-libgcc


Gives this error:
....
checking for armv5l-unknown-linux-uclibceabi-strip... armv5l-unknown-linux-uclibceabi-strip
checking whether ln -s works... yes
checking for armv5l-unknown-linux-uclibceabi-gcc...  /home/dlinyj/sdhc_wifi/gcc-build/./gcc/xgcc -B/home/dlinyj/sdhc_wifi/gcc-build/./gcc/ -B/home/dlinyj/sdhc_wifi/toolchain/armv5l-unknown-linux-uclibceabi/bin/ -B/home/dlinyj/sdhc_wifi/toolchain/armv5l-unknown-linux-uclibceabi/lib/ -isystem /home/dlinyj/sdhc_wifi/toolchain/armv5l-unknown-linux-uclibceabi/include -isystem /home/dlinyj/sdhc_wifi/toolchain/armv5l-unknown-linux-uclibceabi/sys-include   
checking for suffix of object files... configure: error: in `/home/dlinyj/sdhc_wifi/gcc-build/armv5l-unknown-linux-uclibceabi/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1


Let's see what the log file is:

[email protected] ~/sdhc_wifi/gcc-build $ find . -name config.log
./armv5l-unknown-linux-uclibceabi/libgcc/config.log


I will not give a megafile here, I will show only a piece of a glitch:

| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3605: error: in `/home/dlinyj/sdhc_wifi/gcc-build/armv5l-unknown-linux-uclibceabi/libgcc':
configure:3608: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


The full version here

The irony is that one camraden complains about a similar problem in the topic below and no one helped him there. Of course, before writing here, I googled and found this stackoverflow.com/questions/12650493/checking-for-suffix-of-object-files-configure-error-cannot-compute-suffix-o . It is only necessary to take into account that we are not compiling the compiler for the x86 platform and the fact that our compiler version is 4.8.1.

Tried running ./contrib/download_prerequisites. Additional buns were installed and unpacked. I even tried to transfer them to a folder with a toolchain - you can cook ...
I understand that it is not stupid to follow the instructions in the linux-way, and you need to understand well what you are doing. But I wanted to somehow get by with little bloodshed, and already start writing my own programs for this device. What are some ideas? Maybe someone has already overcome the trouble ...

Plus, comrades, do ours have any results and can we also make some kind of group, like VoGeeky ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Odinokij_Kot, 2013-09-12
@Odinokij_Kot

maybe the topic will be www.mikrocontroller.net/topic/303547#3265644 the
Germans are also racking their brains.
And the Japanese has already assembled his core github.com/Kazu-zamasu/PQIAirCard_Script/tree/master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question