ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: ошибка при сборке кросскомпилятора
@ 2004-03-08 12:27 Alexey I. Froloff
  2004-03-08 23:21 ` Alexey I. Froloff
  2004-03-23 16:44 ` [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ Andrey Khavryuchenko
  0 siblings, 2 replies; 9+ messages in thread
From: Alexey I. Froloff @ 2004-03-08 12:27 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 5049 bytes --]

Имеем gcc3.3-3.3.3-alt1 (не приложены патчи deb-ada-gcc-name и
deb-libstdc++-doclink).  Пытаюсь собрать кросскомпилятор в
i386-mingw32msvc, вылезает следующая ошибка в самом начале stage2:

make[2]: Leaving directory `/home/raorn/src/BTE/RPM/i386-mingw32msvc-gcc/work/gcc-3.3.3-20040217/build-i386-mingw32msvc/gcc'
echo timestamp > stage1_copy
echo stage2_build > stage_last
(cd stage1 && rm -f `echo main.o libbackend.a alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgrtl.o combine.o conflict.o convert.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o doloop.o dominance.o dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hashtable.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o loop.o mbchar.o optabs.o params.o predict.o print-rtl.o print-tree.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o stmt.o stor-layout.o stringpool.o timevar.o toplev.o tracer.o tree.o tree-dump.o tree-inline.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o et-forest.o ggc-page.o i386.o winnt.o c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a  cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpptrad.o cpphash.o cpperror.o cppinit.o cppdefault.o cppmain.o hashtable.o line-map.o mkdeps.o prefix.o mbchar.o *.c *.h gen*`)
echo timestamp > clean_s1
make CC=" stage1/xgcc -Bstage1/ -B/usr/i386-mingw32msvc/bin/" \
	 STAGE_PREFIX=stage1/ \
	 ADAC="\$(CC)" AR_FOR_TARGET="i386-mingw32msvc-ar" RANLIB_FOR_TARGET="i386-mingw32msvc-ranlib" CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long" libdir=/usr/lib LANGUAGES="c proto gcov ada c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/home/raorn/src/BTE/RPM/i386-mingw32msvc-gcc/work/gcc-3.3.3-20040217/build-i386-mingw32msvc/gcc'
stage1/xgcc -Bstage1/ -B/usr/i386-mingw32msvc/bin/ -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   -DHAVE_CONFIG_H -DGENERATOR_FILE   -DCYGWIN_CROSS_DIR=\"/usr/i386-mingw32msvc\" -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/gengenrtl.c -o gengenrtl.o
In file included from ../../gcc/gengenrtl.c:23:
../../gcc/system.h:246:22: sys/wait.h: No such file or directory
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory `/home/raorn/src/BTE/RPM/i386-mingw32msvc-gcc/work/gcc-3.3.3-20040217/build-i386-mingw32msvc/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/raorn/src/BTE/RPM/i386-mingw32msvc-gcc/work/gcc-3.3.3-20040217/build-i386-mingw32msvc/gcc'
make: *** [bootstrap-lean] Error 2

И действительно, sys/wait.h в mingw32-runtime отсутствует и не
было его никогда там.  В то же время gcc-3.3 прекрасно
собирается.  Я совсем дурак или у меня просто руки слегка
кривоваты?

Секция %build выглядит следующим оразом (shamelessly stolen from
gcc3.3.spec):

%build
for f in */configure.in; do
	(cd "${f%/*}" && [ configure.in -nt configure ] && autoconf)
done
for f in */Makefile.am; do
	(cd "${f%/*}" && [ Makefile.am -nt Makefile.in ] && automake)
done

%define buildtarget build-%cross_arch
%__rm -rf %buildtarget
%__mkdir_p %buildtarget
pushd %buildtarget

CC=gcc
%remove_optflags %optflags_nocpp %optflags_notraceback

CC="$CC" \
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
GCJFLAGS="$RPM_OPT_FLAGS" \
XCFLAGS="$RPM_OPT_FLAGS" \
TCFLAGS="$RPM_OPT_FLAGS" \
	../configure --prefix=%prefix \
	--includedir=%_includedir \
	--libdir=%_libdir \
	--with-slibdir=/lib \
	--mandir=%_mandir \
	--infodir=%_infodir \
	--disable-checking \
	--enable-long-long \
	--enable-__cxa_atexit \
	--enable-languages="c,c++%{?_with_fortran:,f77}%{?_with_objc:,objc}%{?_with_treelang:,treelang}%{?_with_java:,java}%{?_with_ada:,ada}" \
	--enable-objc-gc \
	--with-system-zlib \
	--without-included-gettext \
	--without-newlib \
	--disable-multilib \
	--host=%_target_platform --build=%_target_platform --target=%cross_arch

%make_build bootstrap-lean

%if_with ada
# SMP-incompatible build.
%make -C gcc gnatlib-shared
%make -C gcc gnattools
%endif #with_ada

%if_with testsuite
%make -k check
../contrib/test_summary
%endif #with_testsuite

popd #%buildtarget


-- 
Regards,
Sir Raorn.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Q: ошибка при сборке кросскомпилятора
  2004-03-08 12:27 [devel] Q: ошибка при сборке кросскомпилятора Alexey I. Froloff
@ 2004-03-08 23:21 ` Alexey I. Froloff
  2004-03-23 16:44 ` [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ Andrey Khavryuchenko
  1 sibling, 0 replies; 9+ messages in thread
From: Alexey I. Froloff @ 2004-03-08 23:21 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

On Mon, Mar 08, 2004 at 03:27:52PM +0300, Alexey I. Froloff wrote:
> И действительно, sys/wait.h в mingw32-runtime отсутствует и не
> было его никогда там.  В то же время gcc-3.3 прекрасно
> собирается.  Я совсем дурак или у меня просто руки слегка
> кривоваты?
Я дурак и руки у меня кривые.

> %make_build bootstrap-lean
Всё должно собираться в один проход, т.е. make all (об этом
написано в доке, правда недостаточно большими буквами).  Другой
вопрос, что вылезают проблемы со сборкой libstdc++, но это уже
другая история ;-)

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ
  2004-03-08 12:27 [devel] Q: ошибка при сборке кросскомпилятора Alexey I. Froloff
  2004-03-08 23:21 ` Alexey I. Froloff
@ 2004-03-23 16:44 ` Andrey Khavryuchenko
  2004-03-23 17:03   ` [devel] Re: Q: ?????? ??? ?????? ???????????????? Andrey Rahmatullin
  2004-03-24  6:02   ` Alexey I. Froloff
  1 sibling, 2 replies; 9+ messages in thread
From: Andrey Khavryuchenko @ 2004-03-23 16:44 UTC (permalink / raw)
  To: ALT Devel discussion list

Alexey,

Catching up...

"AIF" == Alexey I Froloff wrote:

 AIF> Имеем gcc3.3-3.3.3-alt1 (не приложены патчи deb-ada-gcc-name и
 AIF> deb-libstdc++-doclink).  Пытаюсь собрать кросскомпилятор в
 AIF> i386-mingw32msvc, 

О как интересно!..  А пакет соответствующий будет?

-- 
Andrey V Khavryuchenko            http://www.kds.com.ua/
Silver Bullet Software Solutions  http://www.kds.com.ua/training/


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-23 16:44 ` [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ Andrey Khavryuchenko
@ 2004-03-23 17:03   ` Andrey Rahmatullin
  2004-03-23 17:55     ` Andrey Khavryuchenko
  2004-03-24  6:04     ` Alexey I. Froloff
  2004-03-24  6:02   ` Alexey I. Froloff
  1 sibling, 2 replies; 9+ messages in thread
From: Andrey Rahmatullin @ 2004-03-23 17:03 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

On Tue, Mar 23, 2004 at 06:44:20PM +0200, Andrey Khavryuchenko wrote:
>О как интересно!..  А пакет соответствующий будет?

$ apt-cache search mingw
mingw32-binutils - GNU Binary Utility Development Utilities
mingw32-gcc - GNU Compiler Collection
mingw32-gcc-c++ - C++ support for mingw32-gcc
mingw32-gcc-g77 - Fortran 77 support for mingw32-gcc
mingw32-gcc-objc - Objective-C support for mingw32-gcc
mingw32-runtime - Free Win32 runtime and import library definitions

Или что именно вас заинтересовало?

-- 
WBR, wRAR (ALT Linux Team)

Собственно, работоспособность в данном случае означает тестируемость. Если
будут потребители, способные это тестировать - то будет работоспособное
решение.
		-- cray in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-23 17:03   ` [devel] Re: Q: ?????? ??? ?????? ???????????????? Andrey Rahmatullin
@ 2004-03-23 17:55     ` Andrey Khavryuchenko
  2004-03-24  6:04     ` Alexey I. Froloff
  1 sibling, 0 replies; 9+ messages in thread
From: Andrey Khavryuchenko @ 2004-03-23 17:55 UTC (permalink / raw)
  To: ALT Devel discussion list

Andrey,

"AR" == Andrey Rahmatullin wrote:

 AR> On Tue, Mar 23, 2004 at 06:44:20PM +0200, Andrey Khavryuchenko wrote:
 >> О как интересно!..  А пакет соответствующий будет?

 AR> $ apt-cache search mingw
 AR> mingw32-binutils - GNU Binary Utility Development Utilities
 AR> mingw32-gcc - GNU Compiler Collection
 AR> mingw32-gcc-c++ - C++ support for mingw32-gcc
 AR> mingw32-gcc-g77 - Fortran 77 support for mingw32-gcc
 AR> mingw32-gcc-objc - Objective-C support for mingw32-gcc
 AR> mingw32-runtime - Free Win32 runtime and import library definitions

:-\  Торможу :-\

-- 
Andrey V Khavryuchenko            http://www.kds.com.ua/
Silver Bullet Software Solutions  http://www.kds.com.ua/training/


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-23 16:44 ` [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ Andrey Khavryuchenko
  2004-03-23 17:03   ` [devel] Re: Q: ?????? ??? ?????? ???????????????? Andrey Rahmatullin
@ 2004-03-24  6:02   ` Alexey I. Froloff
  1 sibling, 0 replies; 9+ messages in thread
From: Alexey I. Froloff @ 2004-03-24  6:02 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

* Andrey Khavryuchenko <akhavr@kds.com.ua> [040323 19:45]:
>  AIF> Имеем gcc3.3-3.3.3-alt1 (не приложены патчи deb-ada-gcc-name и
>  AIF> deb-libstdc++-doclink).  Пытаюсь собрать кросскомпилятор в
>  AIF> i386-mingw32msvc, 
> О как интересно!..  А пакет соответствующий будет?
Будет, когда я это безобразие добью... Может 3.3.3-alt2 чем-то
поможет...

-- 
Regards, Sir Raorn.
-------------------
>  ps afux | grep <fakeuser> | grep -v grep | awk '{print $1;}' | uniq
Опять races.                     

Есть тут один способ как-то с этим бороться, kill -1 -9 называется.
		-- ldv in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-23 17:03   ` [devel] Re: Q: ?????? ??? ?????? ???????????????? Andrey Rahmatullin
  2004-03-23 17:55     ` Andrey Khavryuchenko
@ 2004-03-24  6:04     ` Alexey I. Froloff
  2004-03-24 15:38       ` Andrey Rahmatullin
  1 sibling, 1 reply; 9+ messages in thread
From: Alexey I. Froloff @ 2004-03-24  6:04 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

* Andrey Rahmatullin <wrar@yandex.ru> [040323 20:51]:
> >О как интересно!..  А пакет соответствующий будет?
> $ apt-cache search mingw
> mingw32-binutils - GNU Binary Utility Development Utilities
> mingw32-gcc - GNU Compiler Collection
> mingw32-gcc-c++ - C++ support for mingw32-gcc
> mingw32-gcc-g77 - Fortran 77 support for mingw32-gcc
> mingw32-gcc-objc - Objective-C support for mingw32-gcc
> mingw32-runtime - Free Win32 runtime and import library definitions
Это устаревшая схема, не использующая новых возможностей
sisyphus_check ;-)

-- 
Regards, Sir Raorn.
-------------------
> А вживую эту карточку кто-нибудь прямо сейчас использует из здесь
> присутствующих?
Я буквально вчера использовал.
И сегодня вечером планирую использовать.
А что?
		-- ldv in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-24  6:04     ` Alexey I. Froloff
@ 2004-03-24 15:38       ` Andrey Rahmatullin
  2004-03-25  6:05         ` Alexey I. Froloff
  0 siblings, 1 reply; 9+ messages in thread
From: Andrey Rahmatullin @ 2004-03-24 15:38 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

On Wed, Mar 24, 2004 at 09:04:15AM +0300, Alexey I. Froloff wrote:
>> $ apt-cache search mingw
>> mingw32-binutils - GNU Binary Utility Development Utilities
>> mingw32-gcc - GNU Compiler Collection
>> mingw32-gcc-c++ - C++ support for mingw32-gcc
>> mingw32-gcc-g77 - Fortran 77 support for mingw32-gcc
>> mingw32-gcc-objc - Objective-C support for mingw32-gcc
>> mingw32-runtime - Free Win32 runtime and import library definitions
>Это устаревшая схема, не использующая новых возможностей
>sisyphus_check ;-)

Не понял.

-- 
WBR, wRAR (ALT Linux Team)

Я не уверен, что _exit_cleanup() имеет право возвращать управление.
		-- ldv in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [devel] Re: Q: ?????? ??? ?????? ????????????????
  2004-03-24 15:38       ` Andrey Rahmatullin
@ 2004-03-25  6:05         ` Alexey I. Froloff
  0 siblings, 0 replies; 9+ messages in thread
From: Alexey I. Froloff @ 2004-03-25  6:05 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

* Andrey Rahmatullin <wrar@yandex.ru> [040324 22:31]:
> >>$ apt-cache search mingw
> >>mingw32-binutils - GNU Binary Utility Development Utilities
> >>mingw32-runtime - Free Win32 runtime and import library definitions
> >Это устаревшая схема, не использующая новых возможностей
> >sisyphus_check ;-)
> Не понял.
Оно сейчас всё лежит в /usr/lib/i386-mingw32msvc/, а должно в
/usr/i386-mingw32msvc/

-- 
Regards, Sir Raorn.
-------------------
К тому же, образование цеховой команды, секреты работы которой передаются
из уст в уста, без использования письменной традиции, в сегодняшней
ситуации и по отношению к свободному ПО мне кажется совершенно
неоправданным.
		-- ab in devel-kernel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-25  6:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08 12:27 [devel] Q: ошибка при сборке кросскомпилятора Alexey I. Froloff
2004-03-08 23:21 ` Alexey I. Froloff
2004-03-23 16:44 ` [devel] Re: Q: ÏÛÉÂËÁ ÐÒÉ ÓÂÏÒËÅ ËÒÏÓÓËÏÍÐÉÌÑÔÏÒÁ Andrey Khavryuchenko
2004-03-23 17:03   ` [devel] Re: Q: ?????? ??? ?????? ???????????????? Andrey Rahmatullin
2004-03-23 17:55     ` Andrey Khavryuchenko
2004-03-24  6:04     ` Alexey I. Froloff
2004-03-24 15:38       ` Andrey Rahmatullin
2004-03-25  6:05         ` Alexey I. Froloff
2004-03-24  6:02   ` Alexey I. Froloff

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git