public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE: i386-unknown-linux -> powerpc-unknown-linux
@ 2000-04-11  9:46 Stephane Dalton
  0 siblings, 0 replies; 3+ messages in thread
From: Stephane Dalton @ 2000-04-11  9:46 UTC (permalink / raw)
  To: David N. Welton; +Cc: crossgcc

	[Stephane Dalton]  
	Hi David, I've ran into the same problem as you... but after taking
a careful look at what configure was doing I came to the conclusion (I might
be completely wrong here) that what is failing is the test system.

	I've tried the compilers (c c++) generated by this sequence and it
seems to run without problem.  I've not tried to link and that maybe where
the  libstdc++ come in the game is needed for some C++ fonctionalities.

	Hope it helps a bit...

	Good luck

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Re: i386-unknown-linux -> powerpc-unknown-linux
  2000-04-11  9:02 David N. Welton
@ 2000-04-12  1:06 ` Kai Ruottu
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Ruottu @ 2000-04-12  1:06 UTC (permalink / raw)
  To: David N. Welton; +Cc: crossgcc

"David N. Welton" wrote:
> 
> Ran make all LANGUAGES="c c++", and it does ok for a while, and then
> dies with:
> 
> make[2]: Entering directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty'
> make[2]: *** No targets specified and no makefile found.  Stop.
> make[2]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty'
> make[1]: *** [../libiberty/libiberty.a] Error 2
> make[1]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libstdc++'
> make: *** [all-target-libstdc++] Error 2

 It didn't succeed in producing the 'libiberty.a', because the linking
didn't succeed in the
test case. Building 'libiberty' needs a fully working toolset, not just
a compiler. It must
test the 'crt*.o', 'libc.a' etc. in order to find the missing functions.
No undefined symbols
in a normal compilation is the prerequisite...

>   /home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty:
>   -rw-rw-r--    1 davidw   davidw       4006 Apr 11 17:46 config.log
> 
> I really don't have any hope of figuring out exactly where in the
> morass of gnarled, twisty, convoluted configuration and build scripts
> there lies some problem that I have overlooked, which causes the build
> to fail.

 The 'config.log' will tell that...

> I would also like to mention that the docs available are not really
> reflective of what needs to be done, in actuality.  For instance,
> headers and some libs from glibc seem to be necessary (--with-libs and
> --with-includes), if the information I have received is correct.

 The GCC manual states that the target libs and headers should be
preinstalled
before starting to build GCC, so all those '--with-libs' and
'--with-includes'
are for some special cases, not to the plain vanilla case of building a
'normal'
cross-compiler (which has the target headers and libs prebuilt). If the
C-library
isn't prebuilt, as the case may be with newlib or glibc, and for some
peculiar
reason any prebuilt libs for the target cannot be found or are not
wanted to be
used (I hated downloading the 20 Mbytes of unstripped libs for
PowerPC/Linux,
'YellowDog'-something, but when building from sources would have
complicated
the things, I had to tolerate the stupidity -- production libs should be
available and they should be stripped, but if only unstripped
'experimental?'
libs with the debug information in them are only available... In Sweden
they
are going to take breadband links to every home, but in Finland people
are
stupidly wanting 'wireless links' with 5-year old modem speeds... 20 M
is much
for a modem user, at least 1 hour to download with 56 kbits/s)

 How (if at all) you fixed the symlinks in the (prebuilt?) glibc
binaries, and
if you fixed the 'libc.so' (a ld-script, not a binary), and if you added
the
'-rpath-link' to the '*link:'-spec in 'specs' to point to the 'dynamic
linker'
('ld.so.1'), they will have their influence to the result. All these
things will
be needed to make the cross-toolset to work...

 When the compiler ('gcc/xgcc') is ready to run, the binutils are ready
and
installed, and the target headers and libs should be ok and installed,
testing
the toolset with something like the 'enquire.c' in the 'gcc' subdir is
recommended :

     $ ./xgcc -B./ -Wl,-verbose -O0 -o enquire enquire.c > EnqTest.Log
2>&1
     $ more EnqTest.Log
 
 The '-verbose' given to the linker will show all the tries and
succeedings
while linking, and is quite an easy way to check what is the problem...
Unresolved symbols like 'dl_something' come from not finding the
'ld.so.1',
all other troubles from not having the libs ok, like unfixed 'libc.so',
symlinks pointing to nowhere and so on...

Cheers, Kai


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* i386-unknown-linux -> powerpc-unknown-linux
@ 2000-04-11  9:02 David N. Welton
  2000-04-12  1:06 ` Kai Ruottu
  0 siblings, 1 reply; 3+ messages in thread
From: David N. Welton @ 2000-04-11  9:02 UTC (permalink / raw)
  To: crossgcc

Configured binutils:

/configure --target=powerpc-unknown-linux --prefix=/home/davidw/crossgcc --with-libs=/home/davidw/crossgcc/usr/lib/ --with-includes=/home/davidw/crossgcc/usr/include/

made and installed without problems.

Configured gcc, without problems, from a 'build' subdirectory.

../configure --target=powerpc-unknown-linux --prefix=/home/davidw/crossgcc --with-libs=/home/davidw/crossgcc/usr/lib/ --with-includes=/home/davidw/crossgcc/usr/include/

this is using the latest out of CVS.

Ran make all LANGUAGES="c c++", and it does ok for a while, and then
dies with:

make[3]: Entering directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio/testsuite'
make[3]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio/testsuite'
make[2]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio'
make[1]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio'
make[1]: Entering directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libstdc++'
cd ../libio ; make "SHELL=/bin/sh" "INSTALL=/bin/sh /home/davidw/download/egcs/install-sh -c" "INSTALL_DATA=/bin/sh /home/davidw/download/egcs/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /home/davidw/download/egcs/install-sh -c " "prefix=/home/davidw/crossgcc" "exec_prefix=/home/davidw/crossgcc" "tooldir=/home/davidw/crossgcc/powerpc-unknown-linux" "gxx_include_dir=/home/davidw/crossgcc/include/g++-3" "libsubdir=/home/davidw/crossgcc/lib/gcc-lib/powerpc-unknown-linux/2.96" "gcc_version=2.96" "gcc_version_trigger=/home/davidw/download/egcs/gcc/version.c" "AR=powerpc-unknown-linux-ar" "AR_FLAGS=rc" "CC=/home/davidw/download/egcs/build/gcc/xgcc -B/home/davidw/download/egcs/build/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/" "CXX=/home/davidw/download/egcs/build/gcc/g++ -B/home/davidw/download/egcs/build/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2 -fvtable-thunks -D_GNU_SOURCE" "NM=powerpc-unknown-linux-nm" "RANLIB=powerpc-unknown-linux-ranlib" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/home/davidw/download/egcs/build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES=" "RUNTESTFLAGS=" iostream.list
make[2]: Entering directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio'
make[2]: `iostream.list' is up to date.
make[2]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libio'
cd ../libiberty ; make "SHELL=/bin/sh" "INSTALL=/bin/sh /home/davidw/download/egcs/install-sh -c" "INSTALL_DATA=/bin/sh /home/davidw/download/egcs/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /home/davidw/download/egcs/install-sh -c " "prefix=/home/davidw/crossgcc" "exec_prefix=/home/davidw/crossgcc" "tooldir=/home/davidw/crossgcc/powerpc-unknown-linux" "gxx_include_dir=/home/davidw/crossgcc/include/g++-3" "libsubdir=/home/davidw/crossgcc/lib/gcc-lib/powerpc-unknown-linux/2.96" "gcc_version=2.96" "gcc_version_trigger=/home/davidw/download/egcs/gcc/version.c" "AR=powerpc-unknown-linux-ar" "AR_FLAGS=rc" "CC=/home/davidw/download/egcs/build/gcc/xgcc -B/home/davidw/download/egcs/build/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/" "CXX=/home/davidw/download/egcs/build/gcc/g++ -B/home/davidw/download/egcs/build/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2 -fvtable-thunks -D_GNU_SOURCE" "NM=powerpc-unknown-linux-nm" "RANLIB=powerpc-unknown-linux-ranlib" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates" "LOADLIBES=" "LDFLAGS=" "MAKEINFO=/home/davidw/download/egcs/build/texinfo/makeinfo/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES=" "RUNTESTFLAGS="
make[2]: Entering directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory `/home/davidw/download/egcs/build/powerpc-unknown-linux/libstdc++'
make: *** [all-target-libstdc++] Error 2

Compilation exited abnormally with code 2 at Tue Apr 11 17:46:31

And, infact, 

  /home/davidw/download/egcs/build/powerpc-unknown-linux/libiberty:
  total 9
  drwxrwsr-x    2 davidw   davidw       1024 Apr 11 17:46 .
  drwxrwsr-x    6 davidw   davidw       1024 Apr 11 16:51 ..
  -rw-r--r--    1 davidw   davidw        259 Apr 11 17:46 confdefs.h
  -rw-rw-r--    1 davidw   davidw          0 Apr 11 16:50 config.cache
  -rw-rw-r--    1 davidw   davidw       4006 Apr 11 17:46 config.log
  -rw-rw-r--    1 davidw   davidw         58 Apr 11 16:52 multilib.out
  -rw-rw-r--    1 davidw   davidw         71 Apr 11 16:50 xhost-mkfrag

Is devoid of any Makefile...

I really don't have any hope of figuring out exactly where in the
morass of gnarled, twisty, convoluted configuration and build scripts
there lies some problem that I have overlooked, which causes the build
to fail.

I would also like to mention that the docs available are not really
reflective of what needs to be done, in actuality.  For instance,
headers and some libs from glibc seem to be necessary (--with-libs and
--with-includes), if the information I have received is correct.

Thankyou for your time,
-- 
David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
davidw@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-04-12  1:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-11  9:46 i386-unknown-linux -> powerpc-unknown-linux Stephane Dalton
  -- strict thread matches above, loose matches on Subject: below --
2000-04-11  9:02 David N. Welton
2000-04-12  1:06 ` Kai Ruottu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).