Mail Archives: djgpp/2012/05/03/12:45:17
Continuing the saga after getting
djcrx-2.04pre-5.x86_64
djcross-binutils-2.19-9ap.x86_64
djcross-gcc-4.7.0-1ap.x86_64
djcross-gcc-tools-4.7.0-1ap.x86_64
djcross-gcc-c++-4.7.0-1ap.x86_64
Compiled and installed for CentOS 6.2, I am trying to get
djcrx-2.04pre_20111027-14ap.src.rpm compiled.
$ rpmbuild --rebuild djcrx-2.04pre_20111027-14ap.src.rpm
<snip>
gcc -g -O2 -m32 djasm-n.c -o ../../hostbin/djasm.exe
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/libgcc_s.so when searching for
-lgcc_s
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/libgcc_s.so when searching for
-lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [../../hostbin/djasm.exe] Error 1
make: *** [subs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.4iPYvR (%build)
$ file /usr/lib/gcc/x86_64-redhat-linux/4.4.6/libgcc_s.so
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/libgcc_s.so: symbolic link to
`/lib64/libgcc_s.so.1'
$ file /lib64/libgcc_s.so.1
/lib64/libgcc_s.so.1: symbolic link to `libgcc_s-4.4.6-20110824.so.1'
$ file /lib64/libgcc_s-4.4.6-20110824.so.1
/lib64/libgcc_s-4.4.6-20110824.so.1: ELF 64-bit LSB shared object,
x86-64, version 1 (SYSV), dynamically linked, stripped
$ rpm -qf /lib64/libgcc_s-4.4.6-20110824.so.1
libgcc-4.4.6-3.el6.x86_64
$ sudo yum install libgcc.i686
$ sudo yum install libstdc++-devel-4.4.6-3.el6.i686
$ rpmbuild --rebuild djcrx-2.04pre_20111027-14ap.src.rpm
Wrote: /home/tanner/rpmbuild/RPMS/x86_64/djcrx-2.04pre_20111027-14ap.x86_64.rpm
Wrote:
/home/tanner/rpmbuild/RPMS/x86_64/djgpp-dist-2.04pre_20111027-14ap.x86_64
$ cat hello.c
#include <stdio.h>
main()
{
printf("Hello World!\n");
}
$ i586-pc-msdosdjgpp-gcc hello.c
$ file a.exe
a.exe: MS-DOS executable, COFF for MS-DOS, DJGPP go32 DOS extender
Nice!
--
Bob Tanner <tanner AT real-time DOT com> | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785 DDFC CF94 7CE8 AA87 3A9D 3895 26F1 0DDB E378
- Raw text -