karlg100
23rd December 2004, 07:18 PM
This simple task is turning out to be not so simple.
I'm trying to [re]build stock .src rpms from Core3 on an x86_64 install.
i run:
rpmbuild -bb [--target x86_64] bash.spec
or:
rpmbuild -bb --target i686 bash.spec
and get similar (but not the same) problems with gcc not being able to compile. Looking at the config.log in the build directory i have the below error messages. I see a few posts from people having trouble compiling 32bit binaries, but can't seem to find a single one on building a 64bit binary. What am i missing/doing wrong here? :confused:
for --target x86_64 (or no --target) attempt:
configure:2423: checking for C compiler default output file name
configure:2426: gcc -O2 -g -pipe -m64 conftest.c >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
for --target i386 attempt:
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-redhat-linux-gnu"' -DCONF_VENDOR='"redhat"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -o mksyntax ./mksyntax.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
I'm trying to [re]build stock .src rpms from Core3 on an x86_64 install.
i run:
rpmbuild -bb [--target x86_64] bash.spec
or:
rpmbuild -bb --target i686 bash.spec
and get similar (but not the same) problems with gcc not being able to compile. Looking at the config.log in the build directory i have the below error messages. I see a few posts from people having trouble compiling 32bit binaries, but can't seem to find a single one on building a 64bit binary. What am i missing/doing wrong here? :confused:
for --target x86_64 (or no --target) attempt:
configure:2423: checking for C compiler default output file name
configure:2426: gcc -O2 -g -pipe -m64 conftest.c >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
for --target i386 attempt:
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-redhat-linux-gnu"' -DCONF_VENDOR='"redhat"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -o mksyntax ./mksyntax.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.2/../../../libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc