* [parisc-linux] Trouble Building GCC @ 2006-11-02 0:38 Alan Mock 2006-11-02 1:17 ` John David Anglin 0 siblings, 1 reply; 3+ messages in thread From: Alan Mock @ 2006-11-02 0:38 UTC (permalink / raw) To: parisc-linux I am having trouble bootstrapping gcc. My questions are how do I get gcc to bootstrap using hppa1.1 and how do I disable building ada? I configured using --enable-languages=c,c++ as the only flag and encountered the following error. /usr/bin/ld: warning: hppa2.0w architecture of input file `libgcc/./ gthr-gnat_s.o' is incompatible with hppa1.1 output /usr/bin/ld: warning: hppa2.0w architecture of input file `libgcc/./ unwind-c_s.o' is incompatible with hppa1.1 output /usr/bin/ld: warning: hppa2.0w architecture of input file `./ crtendS.o' is incompatible with hppa1.1 output /usr/bin/ld: ./crtbeginS.o(.data.rel+0x0): cannot handle R_PARISC_DIR64 for __dso_handle /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/gcc/gccbuild/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/gcc/gccbuild/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/gcc/gccbuild/gcc' make: *** [bootstrap] Error 2 With many more warning: lines above what is shown. To fix this I tried passing --target=hppa-unknown-linux-gnu --enable-languages=c,c+ + to configure so that it will not try to build an hppa2.0 compiler, however that produces an error message saying that gnat can't be found, so I guess it is trying to build the ada frontend. Thanks, Alan _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [parisc-linux] Trouble Building GCC 2006-11-02 0:38 [parisc-linux] Trouble Building GCC Alan Mock @ 2006-11-02 1:17 ` John David Anglin [not found] ` <119aab440611021000i5c283d29mdda5682afdf2b2c8@mail.gmail.com> 0 siblings, 1 reply; 3+ messages in thread From: John David Anglin @ 2006-11-02 1:17 UTC (permalink / raw) To: Alan Mock; +Cc: parisc-linux > I am having trouble bootstrapping gcc. My questions are how do I get > gcc to bootstrap using hppa1.1 and how do I disable building ada? I > configured using --enable-languages=c,c++ as the only flag and > encountered the following error. > > /usr/bin/ld: warning: hppa2.0w architecture of input file `libgcc/./ > gthr-gnat_s.o' is incompatible with hppa1.1 output > /usr/bin/ld: warning: hppa2.0w architecture of input file `libgcc/./ > unwind-c_s.o' is incompatible with hppa1.1 output > /usr/bin/ld: warning: hppa2.0w architecture of input file `./ > crtendS.o' is incompatible with hppa1.1 output > /usr/bin/ld: ./crtbeginS.o(.data.rel+0x0): cannot handle > R_PARISC_DIR64 for __dso_handle You have to force the target to 32 bits when using a 64-bit kernel. Otherwise, the build machinary will try to build a 64-bit version of GCC. However, parisc-linux only supports a 32-bit userspace at the moment ;( There's probably a bug in config.guess. Under hpux, it selects between 32 and 64 bits based on the bootstrap compiler. However, this is a bit of a hack and there's some work going on to try to integrate the 32 and 63-bit tool chains. > With many more warning: lines above what is shown. To fix this I > tried passing --target=hppa-unknown-linux-gnu --enable-languages=c,c+ > + to configure so that it will not try to build an hppa2.0 compiler, > however that produces an error message saying that gnat can't be > found, so I guess it is trying to build the ada frontend. c,c++ should be "c,c++". This should fix the gnat error. I typically something like the following to configure GCC: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared --prefix=/home/dave/opt/gnu/gcc/gcc-4.2.0 --with-local-prefix=/home/dave/opt/gnu --enable-threads=posix --enable-__cxa_atexit --host=hppa-linux --enable-clocale=gnu --enable-java-gc=boehm --enable-java-awt="xlib" --enable-languages="c,c++,objc,fortran,java,ada,obj-c++" The --host option also sets --target. Here my build directory is adjacent to my GCC tree. Using debian and I believe gentoo, GCC 4.1 packages are available. So, you really shouldn't have to build GCC unless you are interested in working on or learning about GCC. 4.2 and 4.3 aren't ready for prime time. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <119aab440611021000i5c283d29mdda5682afdf2b2c8@mail.gmail.com>]
* Re: [parisc-linux] Trouble Building GCC [not found] ` <119aab440611021000i5c283d29mdda5682afdf2b2c8@mail.gmail.com> @ 2006-11-02 20:17 ` Joel Soete 0 siblings, 0 replies; 3+ messages in thread From: Joel Soete @ 2006-11-02 20:17 UTC (permalink / raw) To: Carlos O'Donell; +Cc: John David Anglin, Alan Mock, parisc-linux Carlos O'Donell wrote: > On 11/1/06, John David Anglin <dave@hiauly1.hia.nrc.ca> wrote: >> Using debian and I believe gentoo, GCC 4.1 packages are available. >> So, you really shouldn't have to build GCC unless you are interested >> in working on or learning about GCC. 4.2 and 4.3 aren't ready for >> prime time. > > I recommended he start by learning to build the compiler. > imho, a good source of information for that was for me the learning the way the debian packages (gcc-4.1 and gcc-4.2 aka gcc-snapshot) are build (verbose build and log the stuff was helpfull). More over, for me, those pakages are particulary well design: uptream sources, debian patches, ... and consequently easy to understand ;-) Ciao, Joel > Cheers, > Carlos. > _______________________________________________ > parisc-linux mailing list > parisc-linux@lists.parisc-linux.org > http://lists.parisc-linux.org/mailman/listinfo/parisc-linux > > _______________________________________________ parisc-linux mailing list parisc-linux@lists.parisc-linux.org http://lists.parisc-linux.org/mailman/listinfo/parisc-linux ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-02 20:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 0:38 [parisc-linux] Trouble Building GCC Alan Mock
2006-11-02 1:17 ` John David Anglin
[not found] ` <119aab440611021000i5c283d29mdda5682afdf2b2c8@mail.gmail.com>
2006-11-02 20:17 ` Joel Soete
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox