Скомпилированные Binutils: < /p>
Код: Выделить всё
../configure --target=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32
make -j7
sudo make install
< /code>
"Скомпилирован" заголовки: < /p>
sudo mkdir -p /usr/local/x86_64-w64-mingw32/lib
../configure --host=x86_64-w64-mingw32 --prefix=/usr/local/x86_64-w64-mingw32
sudo make install
sudo ln -s /usr/local/x86_64-w64-mingw32 /usr/local/mingw
sudo ln -s /usr/local/x86_64-w64-mingw32/lib /usr/local/x86_64-w64-mingw32/lib64
< /code>
Скомпилированный GCC: < /p>
../configure --target=x86_64-w64-mingw32 --enable-targets=all
make all-gcc -j7
sudo make install-gcc
< /code>
Теперь я пытаюсь скомпилировать ЭЛТ, но меня зацикливаются на конфигурации. Я пытаюсь: < /p>
../configure --host=x86_64-w64-mingw32 --enable-lib32 --prefix=/usr/local/x86_64-w64-mingw32
< /code>
и get: < /p>
...
configure: error: cannot compute suffix of object files: cannot compile
See 'config.log' for more details
...
/tmp/ccNpE5Ge.s:20: Error: unknown pseudo-op: `.scl'
/tmp/ccNpE5Ge.s:20: Error: Missing symbol name in directive
/tmp/ccNpE5Ge.s:20: Error: unrecognized symbol type "32"
/tmp/ccNpE5Ge.s:20: Error: unknown pseudo-op: `.endef'
configure:4455: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "mingw-w64-runtime"
| #define PACKAGE_TARNAME "mingw-w64-runtime"
| #define PACKAGE_VERSION "4.0b"
| #define PACKAGE_STRING "mingw-w64-runtime 4.0b"
| #define PACKAGE_BUGREPORT "mingw-w64-public@lists.sourceforge.net"
| #define PACKAGE_URL ""
| #define PACKAGE "mingw-w64-runtime"
| #define VERSION "4.0b"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:4470: error: in '.../mingw-w64-crt/build':
configure:4472: error: cannot compute suffix of object files: cannot compile
See 'config.log' for more details
...
< /code>
wot < /p>
Может быть, мне нужно было указать префикс для бинутилов и GCC? Я пытался безрезультатно. < /P>
Любая помощь будет оценена. Хотя я не думаю, что это актуально, я использую Ubuntu 24.04.2 lts.
Подробнее здесь: https://stackoverflow.com/questions/797 ... nnot-compi
Мобильная версия