trouble building i386 rpms on x86_64 system: TexLive example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm running into lots of weird little problems trying to rebuild rpms
on an x8_64 system. I use the command

setarch i386 rpmbuild --rebuild --target=x86_64,i386 whatever.src.rpm

and this creates good results for both i386 and x86_64 about 70% of
the time.  In the rest of the cases, I get rpms for x86_64, not the
other.

In this example, I'm trying to rebuild TeXLive from the Fedora testing
area   http://fedoraproject.org/wiki/Releases/FeatureTexLive.

In order to make this build, I needed up to date cairo, teckit, and
t1lib.  For x86_64 it does work, not i386 as you see.  I wonder if
most/all of the i386 rpms you see in the fedora repositories in the
x86_64 directory are actually built on i386 systems.  Here's the last
part of the output. It appears to me some 64 bit libraries and objects
creep into the build process. You think so too?

cd lib && make -w CC='gcc' CFLAGS='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables ' LDFLAGS=''
make[3]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/lib'
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c basechsuffix.c -o basechsuffix.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c chartostring.c -o chartostring.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c coredump.c -o coredump.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c eofeoln.c -o eofeoln.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c fprintreal.c -o fprintreal.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c inputint.c -o inputint.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c input2int.c -o input2int.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c main.c -o main.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c openclose.c -o openclose.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c printversion.c -o printversion.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c uexit.c -o uexit.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c usage.c -o usage.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c version.c -o version.o
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c zround.c -o zround.o
rm -f lib.a
ar rc lib.a basechsuffix.o chartostring.o coredump.o eofeoln.o
fprintreal.o inputint.o input2int.o main.o openclose.o printversion.o
uexit.o usage.o version.o zround.o
ranlib lib.a
make[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/lib'
cd web2c && make -w CC='gcc' CFLAGS='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables ' LDFLAGS=''  fixwrites
make[3]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c fixwrites.c
fixwrites.c: In function 'main':
fixwrites.c:309: warning: ignoring return value of 'fgets', declared
with attribute warn_unused_result
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c kps.c
gcc -o fixwrites   fixwrites.o kps.o
/usr/bin/ld: warning: i386 architecture of input file `fixwrites.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `kps.o' is
incompatible with i386:x86-64 output
make[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
cd web2c && make -w CC='gcc' CFLAGS='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables ' LDFLAGS=''  splitup
make[3]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c splitup.c
gcc -o splitup   splitup.o kps.o
/usr/bin/ld: warning: i386 architecture of input file `splitup.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `kps.o' is
incompatible with i386:x86-64 output
make[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
cd web2c && make -w CC='gcc' CFLAGS='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables ' LDFLAGS=''  web2c
make[3]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
Expect one shift/reduce conflict.
bison -y -d -v ./web2c.y
./web2c.y:871.25-881.38: warning: unused value: $2
conflicts: 1 shift/reduce
test -f y.tab.c && mv -f y.tab.c y_tab.c
test -f y.tab.h && mv -f y.tab.h y_tab.h
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c main.c
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c y_tab.c
./web2c.y: In function 'yyparse':
./web2c.y:788: warning: implicit declaration of function 'get_result_type'
flex -l ./web2c.l
gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I../.. -I.. -I./..  -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables  -c lex.yy.c
lex.yy.c: In function 'yylex':
lex.yy.c:869: warning: label 'find_rule' defined but not used
./web2c.l:225: warning: ignoring return value of 'fwrite', declared
with attribute warn_unused_result
./web2c.l: At top level:
lex.yy.c:2174: warning: 'yy_flex_strlen' defined but not used
gcc -o web2c   kps.o main.o y_tab.o lex.yy.o
/usr/bin/ld: warning: i386 architecture of input file `kps.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `main.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `y_tab.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `lex.yy.o' is
incompatible with i386:x86-64 output
make[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c/web2c'
date >stamp-tangle
srcdir=. /bin/sh ./web2c/convert tangleboot
./web2c/convert: line 105:  8945 Done                    cat
./web2c/common.defines tangleboot.p
      8946 Segmentation fault      | ./web2c/web2c -hcpascal.h -ctangleboot
      8947 Segmentation fault      | ./web2c/fixwrites tangleboot >tangleboot.c
./web2c/convert: conversion of tangleboot.p failed, moving dregs:
./web2c/convert:   mv tangleboot.c tangleboot.h /tmp
mv: cannot stat `tangleboot.h': No such file or directory
make[2]: *** [tangleboot.c] Error 1
make[2]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk/web2c'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/texlive-2007/texk'
make: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.47467 (%build)


-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux