Хмм и правда пропал binutils, раньше был. В принципе он вроде никак не патчится, так что должно работать и с последней версией.
Создай директории /opt/toolchains/dc/sh-elf/sh-elf/include
http://ru.wikipedia.org/wiki/Newlib
По хорошему собираться они должны сами, после написания make, но конечно как всегда бывают проблемы... Пробуй пока так, создай директории нужные.
создать в $KOS_BASE или в папке с самим чейном?
В корне cygwin: cygwin/opt/toolchains/dc/sh-elf/sh-elf/include
У тебя не установлен пакет patch.
Там же где и все пакеты cygwin, через его setup...
Дальше че делать. Не работает нихрена все равно. в папку opt уже кидал.
не понимаю, почему у меня все собиралось без проблем? может мне везет?
Rio просто истерит по напрасну
Всполошил еще и форум dcemulation...
Ты по сути выкладывай, показывай ошибки свои, что происходит то вообще? Что значит не работает? Куда что ложил? Конфиг KOS показывай.
Тот архив что выложил я, нужно распаковать в корень cygwin.
Такой вот вопросец у меня еще есть - раз gcc скачивается в исходных кодах, значит, на компе у юзверя уже должен быть компайлер, который может все это откомпилировать? Cмогу ли я скомпилить Sh-elf версию gcc, если уже стоит gcc для платформы i686-cygwin?
Ура, кое-что у меня получилось, смотрите!
PHP код:
$ bash configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking to see if cat works as expected... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f 2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... buggy but acceptable
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for version 0.10 of PPL... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
The following languages will be built: c,c++,fortran,java,objc
*** This configuration is not supported in the following subdirectories:
target-libmudflap target-libgomp target-libada gnattools
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... (cached) /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-p c-cygwin/bin/ld.exe
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... windres
checking for windmc... windmc
checking for objcopy... objcopy
checking for objdump... objdump
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... dlltool
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for ranlib... ranlib
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... windres
checking for windmc... no
checking for windmc... windmc
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
Все понятно. Ты не добавил в профиль загрузку environ.sh, поэтому у тебя ничего и не работает.
Отредактируй файл /etc/profile
Найди строку:
cd "${HOME}"
и замени ее на:
cd /usr/local/dc/kos/kos
. environ.sh
И да ты прав, чтобы собрать компиляторы, нужно чтобы эти компиляторы уже были под ту платформу, на которой они будут использоваться.
Т.е. чтобы собрать компиляторы для sh4 под win, нужно чтобы у тебя были компиляторы под win.
Заменил на такую ибо твой вариант с "./" не заработал
PHP код:
cd "/usr/local/dc/kos/kos" || echo "WARNING: Failed attempt to cd into kos home directory"
source environ.sh
Хмм и правда не работает... Если так в консоли написать то сработает...
Ну у меня прописано вообще так: ". environ.sh"
Сват, скинь какое-нить задание плиз интересное)). Типа помнишь как тогда с sc_maxim делали, написать функцию... бла-бла. Хочется поломать голову)
а кто прогером обещал быть в помощь?
Так а я что сказал что не помогу? Просто щас экзамены, сессия, вот закрою все, и напишу тебе прогу.
Скоро будет чем заняться
Да пофиг, если честно. Плюс завтра последний экзамен.
Я так понимаю это связано с новой версий Дримшелл. Ну ты напишешь тогда, ок?