Gentoo Archives: gentoo-alt

From: Al <oss.elmar@××××××××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Prefix/Cygwin: zlib, GCC, which version?
Date: Tue, 05 Oct 2010 12:10:36
Message-Id: AANLkTimUX+JH77UAoHqf_LUW=npFTxvW2oJaLogsP7dP@mail.gmail.com
1 Hi,
2
3 after bootstrapping gcc-4.4.4-r1 re-emerging zlib displays this first
4
5 <snippy>
6 Checking for shared library support...
7 Tested i686-pc-cygwin1.7-gcc -w -c -O2 -pipe -fPIC ztest2672.c
8 Tested -O2 -pipe -fPIC -o ztest2672.so ztest2672.o
9 ./configure: line 243: -O2: command not found
10 No shared library support; try without defining CC and CFLAGS
11 Building static library libz.a version 1.2.5 with i686-pc-cygwin1.7-gcc.
12 </snippy>
13
14 and breaks with this
15
16 <snippy>
17 cp libz.a /home/prefix/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//home/prefix/gentoo/usr/lib
18 cp /home/prefix/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//home/prefix/gentoo/usr/lib
19 cp: missing destination file operand after
20 `/home/prefix/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//home/prefix/gentoo/usr/lib'
21 </snippy>
22
23 Makefile gives the reason:
24
25 STATICLIB=libz.a
26 SHAREDLIB=
27 SHAREDLIBV=
28 SHAREDLIBM=
29 [...]
30 cp $(STATICLIB) $(DESTDIR)$(libdir)
31 cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)
32
33 Hence, $SHAREDLIBV has not been defined, that's why "cp" has only one
34 argument. Configure detects no shared library support for
35 i686-pc-cygwin1.7-gcc at all.
36
37 What is going wrong here?
38
39 Is the error in zlib or in GCC?
40
41 How could I prove that GCC has a missing shared library support?
42
43 Do you suspect any of my settings wrong? They worked for the whole
44 bootstrapping process.
45
46 Could it be the version of GCC?
47 http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml
48 suggests "=gcc-4.2*". Why?
49
50 Thank you very much
51
52 Al
53
54
55
56
57
58
59
60 --
61 Caution crosser:  Runnig Gentoo/Prefix on Cygwin/Vista.
62 All stupid questions are related to that context.

Replies

Subject Author
[gentoo-alt] Re: Prefix/Cygwin: zlib, GCC, which version? Al <oss.elmar@××××××××××.com>
[gentoo-alt] Re: Prefix/Cygwin: zlib, GCC, which version? Al <oss.elmar@××××××××××.com>