Discussion:
Compile error: wrong machine type
(too old to reply)
dpm
2003-09-09 01:01:07 UTC
Permalink
I'm trying to create a simple X Windows/openGL executable on an SCO Unix
machine and get the following error when running make:

/u/[path]/lib/libGL.a (g_render.o): fatal error: /u/[path]/lib/libGL.a
(g_render.o): wrong machine type
***Error code 1 (bu21)

Thanks for any help.
Larry Rosenman
2003-09-09 01:21:04 UTC
Permalink
Post by dpm
I'm trying to create a simple X Windows/openGL executable on an SCO Unix
/u/[path]/lib/libGL.a (g_render.o): fatal error: /u/[path]/lib/libGL.a
(g_render.o): wrong machine type
***Error code 1 (bu21)
where was the libGL.a compiled?
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ***@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
dpm
2003-09-09 01:36:38 UTC
Permalink
I don't know. I extracted it from a tar.Z file from a publisher's ftp site.
Post by Larry Rosenman
Post by dpm
I'm trying to create a simple X Windows/openGL executable on an SCO Unix
/u/[path]/lib/libGL.a (g_render.o): fatal error: /u/[path]/lib/libGL.a
(g_render.o): wrong machine type
***Error code 1 (bu21)
where was the libGL.a compiled?
--
Larry Rosenman http://www.lerctr.org/~ler
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
Larry Rosenman
2003-09-09 01:46:25 UTC
Permalink
Post by dpm
I don't know. I extracted it from a tar.Z file from a publisher's ftp site.
sounds like it is for a different archtecture(sp?) or
machine type (pentium vs 486 vs 386 vs heaven only knows).

What does file on libGL.a show?

LER
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ***@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
dpm
2003-09-09 17:42:15 UTC
Permalink
I entered <ar xv libGL.a>

All extracted object files were the same as g_render.o:

g_render.o: ELF 32-bit MSB
Post by Larry Rosenman
What does file on libGL.a show?
Bad idea. 'file xxx.a' only gives you a 'ar archive' as filetype. You
$ ar xv libGL.a
x - 01.o
x - 02.o
x - 03.0
$ file 01.o
01.o: iAPX 386 COFF object file not stripped - version 30821
Walter
Larry Rosenman
2003-09-09 20:07:47 UTC
Permalink
Post by dpm
I entered <ar xv libGL.a>
g_render.o: ELF 32-bit MSB
and what is one of your own compiled .o's say?
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ***@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
dpm
2003-09-09 21:37:15 UTC
Permalink
All other *.o files report back:

iAPX 386 executable not stripped - version 30821
Post by Larry Rosenman
Post by dpm
I entered <ar xv libGL.a>
g_render.o: ELF 32-bit MSB
and what is one of your own compiled .o's say?
J. L. Schilling
2003-09-10 10:54:15 UTC
Permalink
Post by dpm
I entered <ar xv libGL.a>
g_render.o: ELF 32-bit MSB
Looks to me like your libGL.a was compiled for a big-endian
machine such as MIPS or ARM. You can't use it for linking
on SCO UNIX, which is running on both a different architecture
and endianism.

Jonathan Schilling

Loading...