* compile gcc on tru64
@ 2008-01-04 15:31 zubi
2008-01-05 13:02 ` Michael Kraemer
[not found] ` <slrn4fo3kf9.dhg8.p2h56vc7@pax07e3.mipool.uni-jena.de>
0 siblings, 2 replies; 6+ messages in thread
From: zubi @ 2008-01-04 15:31 UTC (permalink / raw)
I'm trying to build a recent version of gcc on an aging tru64 v5.1B
machine. It has an older version
of gcc (older than 2.95.3) and a compaq C compiler (V6.5-207).
configure runs successfully with no variables. Running the makefile I
get
LOCK: -f stage_final
|| echo stage3 > stage_final
sh: syntax error at line 1: '||' unexepcted
*** Exit 2
Stop.
I have no variables set for CC, CPFLAGS etc. I set environment
variable CC to point to the
C compiler and run "make -i". It runs for a while but ultimately
fails while repeatedly complaining:
Checking for C compiler default output file name... configure: error:
C compiler cannot create executables
Any ideas?
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: compile gcc on tru64 2008-01-04 15:31 compile gcc on tru64 zubi @ 2008-01-05 13:02 ` Michael Kraemer [not found] ` <slrn4fo3kf9.dhg8.p2h56vc7@pax07e3.mipool.uni-jena.de> 1 sibling, 0 replies; 6+ messages in thread From: Michael Kraemer @ 2008-01-05 13:02 UTC (permalink / raw) zubi schrieb: > I'm trying to build a recent version of gcc on an aging tru64 v5.1B > machine. It has an older version > of gcc (older than 2.95.3) and a compaq C compiler (V6.5-207). > > configure runs successfully with no variables. Running the makefile I > get > > LOCK: -f stage_final > || echo stage3 > stage_final > sh: syntax error at line 1: '||' unexepcted > *** Exit 2 > Stop. just a wild guess: It may be some missing or superfluous "\" at the end of a line. Sometimes Makefiles are broken or never ran on the desired target platform, and this kind of sloppiness goes undetected on the developer's machine. > I have no variables set for CC, CPFLAGS etc. I set environment > variable CC to point to the > C compiler and run "make -i". It runs for a while but ultimately > fails while repeatedly complaining: > > Checking for C compiler default output file name... configure: error: > C compiler cannot create executables > Another wild guess: Repeatedly I found "configure" checks to fail because the test procedures sometimes create "conftest" as a file, and sometimes as a directory. To get rid of it, "rm -f" may not be enough, a "rm -rf" might be necessary, so change the script(s) accordingly. That was on HP-UX, but might apply to Tru64 as well. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <slrn4fo3kf9.dhg8.p2h56vc7@pax07e3.mipool.uni-jena.de>]
* Re: compile gcc on tru64 [not found] ` <slrn4fo3kf9.dhg8.p2h56vc7@pax07e3.mipool.uni-jena.de> @ 2008-01-12 13:36 ` Steven Hirsch 2008-01-12 19:30 ` Thomas Dickey 0 siblings, 1 reply; 6+ messages in thread From: Steven Hirsch @ 2008-01-12 13:36 UTC (permalink / raw) E. Braun wrote: > zubi <mashtin.bakir@gmail.com> wrote: > >> LOCK: -f stage_final >> || echo stage3 > stage_final >> sh: syntax error at line 1: '||' unexepcted >> *** Exit 2 >> Stop. >> >> I have no variables set for CC, CPFLAGS etc. I set environment >> variable CC to point to the >> C compiler and run "make -i". It runs for a while but ultimately > > Use GNU Make from ftp://ftp.gnu.org/pub/gnu/make/ instead of the original make. > Additionaly, take note of > http://gcc.gnu.org/install/configure.html > http://gcc.gnu.org/install/specific.html#alpha-dec-osf > > Usually, the following procedure should suffice to create a current Gnu C/C++: > > cd gcc-4.2.2 > mkdir o > cd o > ../configure --enable-languages=c,c++ --disable-nls > gmake bootstrap I'd only add that, on some platforms, it helps to have GNU bash available as the shell. But I agree that it's most likely a brain-dead OEM make binary. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compile gcc on tru64 2008-01-12 13:36 ` Steven Hirsch @ 2008-01-12 19:30 ` Thomas Dickey 2011-10-12 14:33 ` ChrisQ 0 siblings, 1 reply; 6+ messages in thread From: Thomas Dickey @ 2008-01-12 19:30 UTC (permalink / raw) Steven Hirsch <snhirsch@gmail.com> wrote: >> >> cd gcc-4.2.2 >> mkdir o >> cd o >> ../configure --enable-languages=c,c++ --disable-nls >> gmake bootstrap > I'd only add that, on some platforms, it helps to have GNU bash available as > the shell. But I agree that it's most likely a brain-dead OEM make binary. In the case of gcc, it's arguably brain-dead developers at fault (who removed support for non-GNU make several years ago). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compile gcc on tru64 2008-01-12 19:30 ` Thomas Dickey @ 2011-10-12 14:33 ` ChrisQ 2011-10-12 15:07 ` Rainer Orth 0 siblings, 1 reply; 6+ messages in thread From: ChrisQ @ 2011-10-12 14:33 UTC (permalink / raw) On 01/12/08 19:30, Thomas Dickey wrote: > Steven Hirsch<snhirsch@gmail.com> wrote: >>> >>> cd gcc-4.2.2 >>> mkdir o >>> cd o >>> ../configure --enable-languages=c,c++ --disable-nls >>> gmake bootstrap > >> I'd only add that, on some platforms, it helps to have GNU bash available as >> the shell. But I agree that it's most likely a brain-dead OEM make binary. > > In the case of gcc, it's arguably brain-dead developers at fault (who removed > support for non-GNU make several years ago). > On sun machines, I found that the distributed tar doesn't work and you must use gnu tar, otherwise, some files and directories won't be properly expanded. Most likely the same for tru64. I built 2.95 for Tru64 cross to 68k around 2003 and it was a real saga, fwir, but eventually did get it all working. The machine is in store at present, but could check out to see what config options and other s/w was involved, if you can't get it running otherwise. Generally, for gcc builds, you need to have a load of other gnu stuff preinstalled / built on the machine. flex, bison, make gtar, spring to mind, but there are probably more... Regards, Chris ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compile gcc on tru64 2011-10-12 14:33 ` ChrisQ @ 2011-10-12 15:07 ` Rainer Orth 0 siblings, 0 replies; 6+ messages in thread From: Rainer Orth @ 2011-10-12 15:07 UTC (permalink / raw) ChrisQ <meru@devnull.com> writes: > On 01/12/08 19:30, Thomas Dickey wrote: >> Steven Hirsch<snhirsch@gmail.com> wrote: >>>> >>>> cd gcc-4.2.2 >>>> mkdir o >>>> cd o Please don't try to build in a subdir of the srcdir, but rather use e.g. a parellel one, like <mydir>/gcc-4.6.0 and <mydir>/gcc-4.6.0-obj. The other configuration is tested rarely if at all by maintainers and far more likely not to work. Apart from that, unless there are very important reasons to do otherwise, try the latest released version (4.6.1 currently) first since all bugfixes and improvements go there first, only sometimes to be backported to older releases. >>>> ../configure --enable-languages=c,c++ --disable-nls >>>> gmake bootstrap >> >>> I'd only add that, on some platforms, it helps to have GNU bash available as >>> the shell. But I agree that it's most likely a brain-dead OEM make binary. >> >> In the case of gcc, it's arguably brain-dead developers at fault (who removed >> support for non-GNU make several years ago). I've you've have fought with the differences in vendor makes on large projects, you may understand better why they chose to require gmake. > On sun machines, I found that the distributed tar doesn't work and you must > use > gnu tar, otherwise, some files and directories won't be properly > expanded. Most > likely the same for tru64. I rarely build from tarballs these days, but this may indeed be an issue. > I built 2.95 for Tru64 cross to 68k around 2003 and it was a real saga, > fwir, but > eventually did get it all working. The machine is in store at present, but > could > check out to see what config options and other s/w was involved, if you > can't get > it running otherwise. My advise (I happen to be the Tru64 UNIX gcc maintainer) is to start with as few configure options as possible (preferably only necessary paths and locations of support libs like gmp/mpfr/mpc), and leave everything else as a default. If this doesn't work, please file a bug report. I've often found that configure options that might have had some justification years ago are still carried forward and often only cause trouble. > Generally, for gcc builds, you need to have a load of other gnu stuff > preinstalled / > built on the machine. flex, bison, make gtar, spring to mind, but there are > probably > more... Please read and follow the install docs corresponding to the release you're trying to install (gcc.gnu.org is for svn mainline only) prior to attempting a build. You don't need flex and bison these days since the generated files are in the tarballs. The list increase if you try to build from svn or want to modify sources. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-10-12 15:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 15:31 compile gcc on tru64 zubi
2008-01-05 13:02 ` Michael Kraemer
[not found] ` <slrn4fo3kf9.dhg8.p2h56vc7@pax07e3.mipool.uni-jena.de>
2008-01-12 13:36 ` Steven Hirsch
2008-01-12 19:30 ` Thomas Dickey
2011-10-12 14:33 ` ChrisQ
2011-10-12 15:07 ` Rainer Orth
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox