gcc3.3.x dla RA

Rad rad.ldyskusyjne w wp.pl
Śro, 17 Gru 2003, 18:21:23 CET


Mam pytanie co jest wymagane aby zbudować z CVS gcc3.3.x na i586 dla PLD 
RA. Pytam dlatego, że mam z tym problemy.
Poniżej zapis tego co zrobiłem (powtórkowy):

[radek w pldmachine rpm]$ cvs get SPECS/gcc.spec
U SPECS/gcc.spec
[radek w pldmachine rpm]$ cd SPECS
[radek w pldmachine SPECS]$ ./getsrc gcc.spec
Trying to download sources for gcc-%{GCC_VERSION}-0.3
Nieznane makro w nazwie: %{GCC_VERSION}
Podaj wartość tego wyrażenia:
3.3.2
Nieznane makro w nazwie: %{GCC_VERSION}
Podaj wartość tego wyrażenia:
3.3.2
Searching for file: gcc-3.3.2.tar.bz2
         Already have this file.                                       OK
Nieznane makro w nazwie: %{KSI_VERSION}
Podaj wartość tego wyrażenia:
1.1.*
Searching for file: ksi-1.1.*.tar.gz
         Trying CVS... 
FAILED
         Trying source URL...                                          OK
Searching for file: gcc-non-english-man-pages.tar.bz2
         Already have this file.                                       OK
Searching for file: gcc-info.patch
         Already have this file.                                       OK
Searching for file: gcc-paths.patch
         Already have this file.                                       OK
Searching for file: gcc-nolocalefiles.patch
         Already have this file.                                       OK
Searching for file: gcc-ada-link-new-libgnat.patch
         Already have this file.                                       OK
Searching for file: gcc-pr12965.patch
         Already have this file.                                       OK
Searching for file: gcc32-ada-link.patch
         Already have this file.                                       OK
Searching for file: gcc32-boehm-gc-libs.patch
         Already have this file.                                       OK
Searching for file: gcc32-bogus-inline.patch
         Already have this file.                                       OK
Searching for file: gcc32-c++-nrv-test.patch
         Already have this file.                                       OK
Searching for file: gcc32-c++-tsubst-asm.patch
         Already have this file.                                       OK
Searching for file: gcc32-debug-pr7241.patch
         Already have this file.                                       OK
Searching for file: gcc32-duplicate-decl.patch
         Already have this file.                                       OK
Searching for file: gcc32-dwarf2-pr6381.patch
         Already have this file.                                       OK
Searching for file: gcc32-dwarf2-pr6436-test.patch
         Already have this file.                                       OK
Searching for file: gcc32-fde-merge-compat.patch
         Already have this file.                                       OK
Searching for file: gcc32-i386-memtest-test.patch
         Already have this file.                                       OK
Searching for file: gcc32-inline-label.patch
         Already have this file.                                       OK
Searching for file: gcc32-java-no-rpath.patch
         Already have this file.                                       OK
Searching for file: gcc32-test-rh65771.patch
         Already have this file.                                       OK
Searching for file: gcc32-test-rotate.patch
         Already have this file.                                       OK
Searching for file: gcc-3.3.1-propolice.patch
         Already have this file.                                       OK
Download opreation completed: all files retrieved successfully
[radek w pldmachine SPECS]$ rpm -ba gcc.spec
błąd: niespełnione zależności:
         binutils >= 2.14 jest wymagany przez gcc-3.3.2-0.3
         gcc(ada) jest wymagany przez gcc-3.3.2-0.3
         gcc-ada jest wymagany przez gcc-3.3.2-0.3
[radek w pldmachine SPECS]$ cd ..
[radek w pldmachine rpm]$ cvs get SPECS/binutils.spec
U SPECS/binutils.spec
[radek w pldmachine rpm]$ cd SPECS
[radek w pldmachine SPECS]$ ./getsrc binutils.spec
Trying to download sources for binutils-2.14.90.0.7-3
Searching for file: binutils-2.14.90.0.7.tar.bz2
         Already have this file.                                       OK
Searching for file: binutils-non-english-man-pages.tar.bz2
         Already have this file.                                       OK
Searching for file: binutils-gasp.patch
         Already have this file.                                       OK
Searching for file: binutils-info.patch
         Already have this file.                                       OK
Searching for file: binutils-array-sects-compat.patch
         Already have this file.                                       OK
Searching for file: binutils-eh-frame-ro.patch
         Already have this file.                                       OK
Searching for file: binutils-ia64-bootstrap.patch
         Already have this file.                                       OK
Searching for file: binutils-libtool-relink.patch
         Already have this file.                                       OK
Searching for file: binutils-gas-alpha-segv.patch
         Already have this file.                                       OK
Download opreation completed: all files retrieved successfully
[radek w pldmachine SPECS]$ rpm -ba binutils.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.39269
+ umask 022
+ cd /home/users/radek/rpm/BUILD
+ cd /home/users/radek/rpm/BUILD
+ rm -rf binutils-2.14.90.0.7
+ /usr/bin/bzip2 -dc 
/home/users/radek/rpm/SOURCES/binutils-2.14.90.0.7.tar.bz2
+ tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd binutils-2.14.90.0.7
+ /bin/id -u
+ [ 500 = 0 ]
+ true .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo Patch #0 (binutils-gasp.patch):
Patch #0 (binutils-gasp.patch):
+ patch -p1 -s
+ < /home/users/radek/rpm/SOURCES/binutils-gasp.patch
+ echo Patch #1 (binutils-info.patch):
Patch #1 (binutils-info.patch):
+ patch -p1 -s
+ < /home/users/radek/rpm/SOURCES/binutils-info.patch
+ echo Patch #2 (binutils-array-sects-compat.patch):
Patch #2 (binutils-array-sects-compat.patch):
+ patch -p1 -s
+ < /home/users/radek/rpm/SOURCES/binutils-array-sects-compat.patch
+ echo Patch #5 (binutils-libtool-relink.patch):
Patch #5 (binutils-libtool-relink.patch):
+ patch -p1 -s
+ < /home/users/radek/rpm/SOURCES/binutils-libtool-relink.patch
+ echo Patch #6 (binutils-gas-alpha-segv.patch):
Patch #6 (binutils-gas-alpha-segv.patch):
+ patch -p1 -s
+ < /home/users/radek/rpm/SOURCES/binutils-gas-alpha-segv.patch
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.42994
+ umask 022
+ cd /home/users/radek/rpm/BUILD
+ cd binutils-2.14.90.0.7
+ TARGETS=
+ TARGETS=x86_64-linux
+ cp -f /usr/share/automake/config.guess /usr/share/automake/config.sub .
+ CFLAGS=-O2 -march=i586
+ export CFLAGS
+ CC=i586-pld-linux-gcc
+ export CC
+ [ -n x86_64-linux ]
+ echo --enable-targets=x86_64-linux
+ ./configure i586-pld-linux --enable-shared --disable-debug 
--prefix=/usr --libdir=/usr/lib --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-targets=x86_64-linux
creating cache ./config.cache
checking host system type... i586-pld-linux-gnu
checking target system type... i586-pld-linux-gnu
checking build system type... i586-pld-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for i586-pld-linux-ar... no
checking for ar... ar
checking for i586-pld-linux-as... no
checking for as... as
checking for i586-pld-linux-dlltool... no
checking for dlltool... dlltool
checking for i586-pld-linux-ld... no
checking for ld... ld
checking for i586-pld-linux-nm... no
checking for nm... nm
checking for i586-pld-linux-ranlib... no
checking for ranlib... ranlib
checking for i586-pld-linux-windres... no
checking for windres... windres
checking for i586-pld-linux-objcopy... no
checking for objcopy... objcopy
checking for i586-pld-linux-objdump... no
checking for objdump... objdump
checking for i586-pld-linux-ar... no
checking for ar... ar
checking for i586-pld-linux-as... no
checking for as... as
checking for i586-pld-linux-dlltool... no
checking for dlltool... dlltool
checking for i586-pld-linux-ld... no
checking for ld... ld
checking for i586-pld-linux-nm... no
checking for nm... nm
checking for i586-pld-linux-ranlib... no
checking for ranlib... ranlib
checking for i586-pld-linux-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
+ /usr/bin/make tooldir=/usr all info
Configuring in libiberty
configure: loading cache .././config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i586-pld-linux-gnu
checking host system type... i586-pld-linux-gnu
checking for i586-pld-linux-ar... ar
checking for i586-pld-linux-ranlib... ranlib
checking whether ln -s works... yes
checking for i586-pld-linux-gcc... i586-pld-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-pld-linux-gcc accepts -g... yes
checking for i586-pld-linux-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-libiberty] Błąd 1
błąd: Bad exit status from /var/tmp/rpm-tmp.42994 (%build)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.42994 (%build)
[radek w pldmachine SPECS]$



[radek w pldmachine SPECS]$ cat binutils.spec |grep BuildReq
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gettext-devel
BuildRequires:  perl-tools-pod
BuildRequires:  sparc32
BuildRequires:  texinfo >= 4.2
- added sparc32 to BuildRequires on sparc, sparc64.
- added flex and bison to BuildRequires
[radek w pldmachine SPECS]$ rpm -q automake
automake-1.7.6-1
[radek w pldmachine SPECS]$ rpm -q bison
bison-1.875-4
[radek w pldmachine SPECS]$ rpm -q flex
flex-2.5.4a-27
[radek w pldmachine SPECS]$ rpm -q gettext-devel
gettext-devel-0.10.40-4
[radek w pldmachine SPECS]$ rpm -q perl-tools-pod
pakiet perl-tools-pod nie jest zainstalowany
[radek w pldmachine SPECS]$ rpm -q sparc32
pakiet sparc32 nie jest zainstalowany
[radek w pldmachine SPECS]$ rpm -q texinfo
texinfo-4.2-5
[radek w pldmachine SPECS]$


poldek> ll perl-tools-pod
błąd: perl-tools-pod: nie ma takiego pakietu

skąd wziąść powyższy pakiet?


poldek> ll sparc32
błąd: sparc32: nie ma takiego pakietu

sparc32 - czy to w ogóle jest potrzebne na intelu?

Gdzieś tu utknąłem, nie wiem do końca co z gcc(ada) i gcc-ada ale 
znalazłem już gdzieś wyjaśnienie.

Z góry dzięki za okazaną pomoc
Radek




Więcej informacji o liście dyskusyjnej pld-users-pl