* XFree86-4.2.0-50.10.src.rpm errors doing build
@ 2002-06-04 0:16 Ted Goodridge, Jr
2002-06-04 19:21 ` Mike A. Harris
0 siblings, 1 reply; 5+ messages in thread
From: Ted Goodridge, Jr @ 2002-06-04 0:16 UTC (permalink / raw)
To: axp-list
Please excuse the ignorance if I'm doing something blatantly wrong, this
is my first time to build a source rpm and dealing with a specfile.
I was trying to get this source rpm to build. I modified the specfile
slightly (diff output at end of message) but got this error during the
"rpm -bc XFree86.spec"
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf -s
./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile
-DTOPDIR=../.. -DCURDIR=./config/makedepend
cd ./config/makedepend && rm -f -r Makefile Makefile.dep makedepend *.o
bootstrap
cd ./config/imake && rm -rf X11 && mkdir X11 && cd X11 && ln -s
../../../include/* .
cd ./config/makedepend && make -f Makefile.proto makedepend
make[2]: Entering directory
`/usr/src/rpm/BUILD/XFree86-4.2.0/xc/config/makedepend'
Makefile.proto:82: *** commands commence before first target. Stop.
make[2]: Leaving directory
`/usr/src/rpm/BUILD/XFree86-4.2.0/xc/config/makedepend'
make[1]: *** [depend.bootstrap] Error 2
make[1]: Leaving directory `/usr/src/rpm/BUILD/XFree86-4.2.0/xc'
make: *** [World] Error 2
make: Leaving directory `/usr/src/rpm/BUILD/XFree86-4.2.0/xc'
error: Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
This is the diff output from the original specfile and the
one that I modified:
romulus:/usr/src/rpm/SPECS# diff XFree86.spec XFree86.spec.custom
3c3
< ExcludeArch: alpha ia64
---
> #ExcludeArch: alpha ia64
1006c1006
< #define BuildXF86DRI YES
---
> %define BuildXF86DRI YES
1008c1008
< #define BuildXF86DRI NO
---
> %define BuildXF86DRI NO
1052,1053c1052,1053
< #define XF86CardDrivers mga nv tga s3virge sis rendition \
< neomagic i740 tdfx cirrus tseng trident chips
apm \
---
> %define XF86CardDrivers mga rendition \
> i740 tseng trident chips apm \
What am I doing wrong?
Thank you so much in advance,
Ted Goodridge
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XFree86-4.2.0-50.10.src.rpm errors doing build
2002-06-04 0:16 XFree86-4.2.0-50.10.src.rpm errors doing build Ted Goodridge, Jr
@ 2002-06-04 19:21 ` Mike A. Harris
2002-06-05 0:11 ` Ted Goodridge, Jr
2002-06-05 2:33 ` Ted Goodridge, Jr
0 siblings, 2 replies; 5+ messages in thread
From: Mike A. Harris @ 2002-06-04 19:21 UTC (permalink / raw)
To: axp-list
On Mon, 3 Jun 2002, Ted Goodridge, Jr wrote:
>make: Leaving directory `/usr/src/rpm/BUILD/XFree86-4.2.0/xc'
>error: Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
>
>
>RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
>
>This is the diff output from the original specfile and the
> one that I modified:
>
>romulus:/usr/src/rpm/SPECS# diff XFree86.spec XFree86.spec.custom
>3c3
>< ExcludeArch: alpha ia64
>---
>> #ExcludeArch: alpha ia64
That's ok, as the ExcludeArch is only there right now because X
wont compile on 64bit arch's with gcc 3.1 currently due to a
simple issue I've not resolved yet. Building with gcc 2.96
should be fine however, so commenting out the above is ok.
>1006c1006
>< #define BuildXF86DRI YES
>---
>> %define BuildXF86DRI YES
That is invalid. Those defines are not RPM macros being defined,
they are Imake macros which get put in the file host.def via a
here document to configure the X build process. Imake uses the C
preprocessor, so they are ultimately C preprocessor defines, and
should appear as:
#define foo bar
And to comment one out, you do so as in C:
/* #define foo bar */
>1008c1008
>< #define BuildXF86DRI NO
>---
>> %define BuildXF86DRI NO
Again, invalid.
>1052,1053c1052,1053
>< #define XF86CardDrivers mga nv tga s3virge sis rendition \
>< neomagic i740 tdfx cirrus tseng trident chips
>apm \
>---
>> %define XF86CardDrivers mga rendition \
>> i740 tseng trident chips apm \
I don't see anything wrong there. Replace the % with # on the
defines, and try to rebuild again. What compiler are you using?
--
Mike A. Harris Shipping/mailing address:
OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie,
XFree86 maintainer Ontario, Canada, P6C 5B3
Red Hat Inc.
http://www.redhat.com ftp://people.redhat.com/mharris
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: XFree86-4.2.0-50.10.src.rpm errors doing build
2002-06-04 19:21 ` Mike A. Harris
@ 2002-06-05 0:11 ` Ted Goodridge, Jr
2002-06-05 2:33 ` Ted Goodridge, Jr
1 sibling, 0 replies; 5+ messages in thread
From: Ted Goodridge, Jr @ 2002-06-05 0:11 UTC (permalink / raw)
To: axp-list
Thanks, Mike. I knew it had to be I/O error (Idiot/Operator). I'm
using GCC 2.95-somethin or other. I'm going to make the changes and
give it a whirl.
Ted
> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> Behalf Of Mike A. Harris
> Sent: Tuesday, June 04, 2002 2:22 PM
> To: axp-list@redhat.com
> Subject: Re: XFree86-4.2.0-50.10.src.rpm errors doing build
>
> On Mon, 3 Jun 2002, Ted Goodridge, Jr wrote:
>
> >make: Leaving directory `/usr/src/rpm/BUILD/XFree86-4.2.0/xc'
> >error: Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
> >
> >
> >RPM build errors:
> > Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
> >
> >This is the diff output from the original specfile and the
> > one that I modified:
> >
> >romulus:/usr/src/rpm/SPECS# diff XFree86.spec XFree86.spec.custom
> >3c3
> >< ExcludeArch: alpha ia64
> >---
> >> #ExcludeArch: alpha ia64
>
> That's ok, as the ExcludeArch is only there right now because X
> wont compile on 64bit arch's with gcc 3.1 currently due to a
> simple issue I've not resolved yet. Building with gcc 2.96
> should be fine however, so commenting out the above is ok.
>
> >1006c1006
> >< #define BuildXF86DRI YES
> >---
> >> %define BuildXF86DRI YES
>
> That is invalid. Those defines are not RPM macros being defined,
> they are Imake macros which get put in the file host.def via a
> here document to configure the X build process. Imake uses the C
> preprocessor, so they are ultimately C preprocessor defines, and
> should appear as:
>
> #define foo bar
>
> And to comment one out, you do so as in C:
>
> /* #define foo bar */
>
> >1008c1008
> >< #define BuildXF86DRI NO
> >---
> >> %define BuildXF86DRI NO
>
> Again, invalid.
>
> >1052,1053c1052,1053
> >< #define XF86CardDrivers mga nv tga s3virge sis rendition \
> >< neomagic i740 tdfx cirrus tseng trident chips
> >apm \
> >---
> >> %define XF86CardDrivers mga rendition \
> >> i740 tseng trident chips apm \
>
> I don't see anything wrong there. Replace the % with # on the
> defines, and try to rebuild again. What compiler are you using?
>
>
> --
> Mike A. Harris Shipping/mailing address:
> OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie,
> XFree86 maintainer Ontario, Canada, P6C 5B3
> Red Hat Inc.
> http://www.redhat.com ftp://people.redhat.com/mharris
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: XFree86-4.2.0-50.10.src.rpm errors doing build
2002-06-04 19:21 ` Mike A. Harris
2002-06-05 0:11 ` Ted Goodridge, Jr
@ 2002-06-05 2:33 ` Ted Goodridge, Jr
2002-06-05 4:43 ` Mike A. Harris
1 sibling, 1 reply; 5+ messages in thread
From: Ted Goodridge, Jr @ 2002-06-05 2:33 UTC (permalink / raw)
To: axp-list
Mike,
how do I get it NOT to build tdfx stuff, cause the build keeps
dying at tdfx_context.h.
Ted
> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> Behalf Of Mike A. Harris
> Sent: Tuesday, June 04, 2002 2:22 PM
> To: axp-list@redhat.com
> Subject: Re: XFree86-4.2.0-50.10.src.rpm errors doing build
>
> On Mon, 3 Jun 2002, Ted Goodridge, Jr wrote:
>
> >make: Leaving directory `/usr/src/rpm/BUILD/XFree86-4.2.0/xc'
> >error: Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
> >
> >
> >RPM build errors:
> > Bad exit status from /var/tmp/rpm-tmp.49956 (%build)
> >
> >This is the diff output from the original specfile and the
> > one that I modified:
> >
> >romulus:/usr/src/rpm/SPECS# diff XFree86.spec XFree86.spec.custom
> >3c3
> >< ExcludeArch: alpha ia64
> >---
> >> #ExcludeArch: alpha ia64
>
> That's ok, as the ExcludeArch is only there right now because X
> wont compile on 64bit arch's with gcc 3.1 currently due to a
> simple issue I've not resolved yet. Building with gcc 2.96
> should be fine however, so commenting out the above is ok.
>
> >1006c1006
> >< #define BuildXF86DRI YES
> >---
> >> %define BuildXF86DRI YES
>
> That is invalid. Those defines are not RPM macros being defined,
> they are Imake macros which get put in the file host.def via a
> here document to configure the X build process. Imake uses the C
> preprocessor, so they are ultimately C preprocessor defines, and
> should appear as:
>
> #define foo bar
>
> And to comment one out, you do so as in C:
>
> /* #define foo bar */
>
> >1008c1008
> >< #define BuildXF86DRI NO
> >---
> >> %define BuildXF86DRI NO
>
> Again, invalid.
>
> >1052,1053c1052,1053
> >< #define XF86CardDrivers mga nv tga s3virge sis rendition \
> >< neomagic i740 tdfx cirrus tseng trident chips
> >apm \
> >---
> >> %define XF86CardDrivers mga rendition \
> >> i740 tseng trident chips apm \
>
> I don't see anything wrong there. Replace the % with # on the
> defines, and try to rebuild again. What compiler are you using?
>
>
> --
> Mike A. Harris Shipping/mailing address:
> OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie,
> XFree86 maintainer Ontario, Canada, P6C 5B3
> Red Hat Inc.
> http://www.redhat.com ftp://people.redhat.com/mharris
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: XFree86-4.2.0-50.10.src.rpm errors doing build
2002-06-05 2:33 ` Ted Goodridge, Jr
@ 2002-06-05 4:43 ` Mike A. Harris
0 siblings, 0 replies; 5+ messages in thread
From: Mike A. Harris @ 2002-06-05 4:43 UTC (permalink / raw)
To: axp-list
On Tue, 4 Jun 2002, Ted Goodridge, Jr wrote:
>Date: Tue, 4 Jun 2002 21:33:23 -0500
>From: "Ted Goodridge, Jr" <tedgoodridgejr@acm.org>
>To: axp-list@redhat.com
>Content-Type: text/plain;
> charset="us-ascii"
>List-Id: Linux and Red Hat on Alpha processors <axp-list.redhat.com>
>Subject: RE: XFree86-4.2.0-50.10.src.rpm errors doing build
>
>Mike,
> how do I get it NOT to build tdfx stuff, cause the build keeps
>dying at tdfx_context.h.
It is entirely possible that the tdfx code there uses code which
is/isn't ISO C, that the older gcc 2.95 you're using wont
compile. It could be some other issue as well.
Post the full error you're seeing. Often a failed X build the
problem is not in the last 10 lines of the build, but might be a
problem that happened 15 minutes prior to that, which didn't kill
the build right away. You need to go through the whole log file
looking for errors/warnings.
tdfx_context.c contains code which is not compliant to ISO C99 I
know for sure as it complains fiercely when it compiles it (but
it works anyway).
You might want to check debian's patches to see if they patch
this file for the older gcc.
--
Mike A. Harris Shipping/mailing address:
OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie,
XFree86 maintainer Ontario, Canada, P6C 5B3
Red Hat Inc.
http://www.redhat.com ftp://people.redhat.com/mharris
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-06-05 4:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04 0:16 XFree86-4.2.0-50.10.src.rpm errors doing build Ted Goodridge, Jr
2002-06-04 19:21 ` Mike A. Harris
2002-06-05 0:11 ` Ted Goodridge, Jr
2002-06-05 2:33 ` Ted Goodridge, Jr
2002-06-05 4:43 ` Mike A. Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox