[Kolab-devel] bash in gcc build can not find stage2/xgcc
Richard Bos
radoeka at xs4all.nl
Tue Jan 4 21:25:14 CET 2005
Hello Martin,
Op dinsdag 4 januari 2005 15:57, schreef u:
> Am Dienstag, 4. Januar 2005 12:46 schrieb Richard Bos:
>
> Hi,
>
> > /home/richard/kolab-server-2.0-beta-1/sources
> >
> > The files are build in a linked /kolab (perhaps that matters):
> > kolab-server-2.0-beta-1 # ls -ld /kolab
> > lrwxrwxrwx 1 root root 44 Dec 30 11:43 /kolab ->
> > /home/richard/kolab-server-2.0-beta-1/kolab/
>
> Is your /home partition a nfs mount?
>
> > > > stage2/xgcc -Bstage2/ -B/kolab/i686-pc-linux-gnu/bin/ -pipe -O2
> > > > -fomit-frame-pointer -funroll-loops -mtune=pentium3 -DIN_GCC -W
> > > > -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> > > > -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H
> > > > -DGENERATOR_FILE -o genmodes \
> > > > genmodes.o errors.o ../libiberty/libiberty.a
> > > > /kolab/lib/openpkg/bash: stage2/xgcc: No such file or directory
> > > >
> > > > Is this a problem with the gcc build tool? Why
> > > > /kolab/lib/openpkg/bash not able to find stage2/xgcc. Is it looking
> > > > in the wrong place?
>
> No you are reading the error message in the wrong manner. Actually it is
> not stage2/xgcc which is missing but it does not find libiberty.a.
okay. I build it a second time and now the error message is slighty
different.
It's still on the same line, but this time there are more include arguments
(for completeness I put the first build error on below, the first error might
have
been caused by a full file system. During the 2nd build I monitored the
filesystem
usage and there was enough space all the time. This may clarify the different
compile lines).
3146 stage2/xgcc -Bstage2/ -B/kolab/i686-pc-linux-gnu/bin/ -c -pipe -O2
-fomit-frame-pointer
-funroll-loops -mtune=pentium3 -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition
-DHAVE_CONFIG_H -DGENERATOR_FILE -I .
-I. -I/kolab/RPM/TMP/gcc-3.4.2/obj/../gcc
-I/kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/.
-I/kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/../include /kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/genconstants.c
-o genconstants.o
3147 /kolab/lib/openpkg/bash: stage2/xgcc: No such file or directory
3148 make[4]: *** [genconstants.o] Error 127
3149 make[3]: *** [stage3_build] Error 2
3150 make[2]: *** [quickstrap] Error 2
3151 make[1]: *** [all-gcc] Error 2
3152 make: *** [bootstrap-lean] Error 2
3153 error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.27992 (%build)
The directories mentioned in the -I arguments seems to exist:
drwxr-xr-x 14 kolab kolab 12600 Dec 30
12:29 /kolab/RPM/TMP/gcc-3.4.2/obj/../gcc
drwxr-xr-x 14 kolab kolab 12600 Dec 30
12:29 /kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/.
drwxr-xr-x 2 kolab kolab 768 Sep 7
01:29 /kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/../include
-rw-r--r-- 1 kolab kolab 2439 Jun 1
2003 /kolab/RPM/TMP/gcc-3.4.2/obj/../gcc/genconstants.c
But a find for stage2 results in:
/kolab # find | grep stage2
./RPM/TMP/gcc-3.4.2/obj/gcc/cp/stage2
./RPM/TMP/gcc-3.4.2/obj/gcc/stage2_build
./RPM/TMP/gcc-3.4.2/obj/gcc/fixinc/stage2
./RPM/TMP/gcc-3.4.2/obj/gcc/stage2_copy
and
a find for xgcc results in:
/kolab # find | grep xgcc
./RPM/TMP/gcc-3.4.2/obj/gcc/xgcc
/kolab # find | grep stage2 | xargs ls -ld
lrwxrwxrwx 1 kolab kolab 9 Dec 30
12:31 ./RPM/TMP/gcc-3.4.2/obj/gcc/cp/stage2 -> ../stage2
lrwxrwxrwx 1 kolab kolab 9 Dec 30
12:31 ./RPM/TMP/gcc-3.4.2/obj/gcc/fixinc/stage2 -> ../stage2
-rw-r--r-- 1 kolab kolab 10 Dec 30
13:21 ./RPM/TMP/gcc-3.4.2/obj/gcc/stage2_build
-rw-r--r-- 1 kolab kolab 10 Dec 30
13:21 ./RPM/TMP/gcc-3.4.2/obj/gcc/stage2_copy
It looks like that the path (I assume it is a directory) to stage2 is:
/kolab/RPM/TMP/gcc-3.4.2/obj/gcc/stage2
There is no stage2 in:
/kolab/RPM/TMP/gcc-3.4.2/obj/gcc # ls st*
stage1_build stage2_copy stmp-fixinc stor-layout.o
stage1_copy stage_last stmp-int-hdrs stringpool.o
stage2_build stmp-dirs stmt.o stub-objc.o
In the obmtool-gcc log file it seems that the build is performed in:
21 + cd gcc-3.4.2
22 + mkdir obj
23 + cd obj
(that is /kolab/RPM/TMP/gcc-3.4.2/obj/)
It looks to me that the line 3146 should be:
3146 gcc/xgcc -Bstage2 ....
instead of: stage2/xgcc -Bstage2 ....
isn't it?
If I test this I get:
obj # gcc/xgcc -Bstage2/ .....
gcc: installation problem, cannot exec `cc1': No such file or directory
How can I test this?
or the directory stage2 should be linked to gcc. What is best?
> > > Are you installing as user root?
> >
> > Indeed.
>
> Good!
>
> Which platform OS are you using? Slackware?
>
> BTW: I am using a symbolic link for /kolab regularily.
>
> Regards,
> -- martin
--
Richard
3146 stage2/xgcc -Bstage2/ -B/kolab/i686-pc-linux-gnu/bin/ -pipe -O2
-fomit-frame-pointer
-funroll-loops -mtune=pentium3 -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition
-DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \
3147 genmodes.o errors.o ../libiberty/libiberty.a
3148 /kolab/lib/openpkg/bash: stage2/xgcc: No such file or directory
3149 make[4]: *** [genmodes] Error 127
3150 make[3]: *** [stage3_build] Error 2
3151 make[2]: *** [quickstrap] Error 2
3152 make[1]: *** [all-gcc] Error 2
3153 make: *** [bootstrap-lean] Error 2
3154 error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.14989 (%build)
More information about the devel
mailing list