Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13342 closed defect (fixed)

polyml fails to build on Mac OS X 10.5 Leopard

Reported by: lord.dimwit@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc: mww@…
Port:

Description

Poly/ML 5.0 fails to build on Leopard.

Output from "port install polyml":

$ sudo port install polyml
--->  Configuring polyml
--->  Building polyml with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_polyml/work/polyml.5.0" && make all " returned error 2
Command output:  g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT sharedata.lo -MD -MP -MF .deps/sharedata.Tpo -c sharedata.cpp  -fno-common -DPIC -o .libs/sharedata.o
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT sharedata.lo -MD -MP -MF .deps/sharedata.Tpo -c sharedata.cpp -o sharedata.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include  -O2 -I/usr/X11/include -MT memmgr.lo -MD -MP -MF ".deps/memmgr.Tpo" -c -o memmgr.lo memmgr.cpp; \
	then mv -f ".deps/memmgr.Tpo" ".deps/memmgr.Plo"; else rm -f ".deps/memmgr.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT memmgr.lo -MD -MP -MF .deps/memmgr.Tpo -c memmgr.cpp  -fno-common -DPIC -o .libs/memmgr.o
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT memmgr.lo -MD -MP -MF .deps/memmgr.Tpo -c memmgr.cpp -o memmgr.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include  -O2 -I/usr/X11/include -MT pexport.lo -MD -MP -MF ".deps/pexport.Tpo" -c -o pexport.lo pexport.cpp; \
	then mv -f ".deps/pexport.Tpo" ".deps/pexport.Plo"; else rm -f ".deps/pexport.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT pexport.lo -MD -MP -MF .deps/pexport.Tpo -c pexport.cpp  -fno-common -DPIC -o .libs/pexport.o
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT pexport.lo -MD -MP -MF .deps/pexport.Tpo -c pexport.cpp -o pexport.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include  -O2 -I/usr/X11/include -MT x86_dep.lo -MD -MP -MF ".deps/x86_dep.Tpo" -c -o x86_dep.lo x86_dep.cpp; \
	then mv -f ".deps/x86_dep.Tpo" ".deps/x86_dep.Plo"; else rm -f ".deps/x86_dep.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT x86_dep.lo -MD -MP -MF .deps/x86_dep.Tpo -c x86_dep.cpp  -fno-common -DPIC -o .libs/x86_dep.o
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT x86_dep.lo -MD -MP -MF .deps/x86_dep.Tpo -c x86_dep.cpp -o x86_dep.o >/dev/null 2>&1
sed -f masm2gas < x86asm.asm > x86asmtemp.S
/bin/sh ../libtool --mode=compile gcc -Di386 -DMACOSX -O2 -c -o x86asmtemp.lo x86asmtemp.S
 gcc -Di386 -DMACOSX -O2 -c x86asmtemp.S  -fno-common -DPIC -o .libs/x86asmtemp.o
 gcc -Di386 -DMACOSX -O2 -c x86asmtemp.S -o x86asmtemp.o >/dev/null 2>&1
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include  -O2 -I/usr/X11/include -MT machoexport.lo -MD -MP -MF ".deps/machoexport.Tpo" -c -o machoexport.lo machoexport.cpp; \
	then mv -f ".deps/machoexport.Tpo" ".deps/machoexport.Plo"; else rm -f ".deps/machoexport.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Di386 -DMACOSX -Wall -I/opt/local/include -I/usr/X11/include -O2 -I/usr/X11/include -MT machoexport.lo -MD -MP -MF .deps/machoexport.Tpo -c machoexport.cpp  -fno-common -DPIC -o .libs/machoexport.o
machoexport.h:49: error: 'uint' has not been declared
machoexport.h:49: error: 'uint' has not been declared
machoexport.h:49: error: 'uint' has not been declared
machoexport.cpp:239: error: 'uint' has not been declared
machoexport.cpp:239: error: 'uint' has not been declared
machoexport.cpp:239: error: 'uint' has not been declared
make[2]: *** [machoexport.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

If I go in and add a "typedef unsigned int uint" to the code, the binary compiles cleanly, but upon running, I get this error message:

The exported object file does not match this version of the library

Change History (5)

comment:1 Changed 17 years ago by skymoo (Adam Mercer)

Cc: dem5302@… added
Milestone: Port Bugs

comment:2 Changed 17 years ago by nox@…

Summary: Poly/ML Fails to Compilepolyml fails to build on Mac OS X 10.5 Leopard

comment:3 Changed 17 years ago by mww@…

Cc: mww@… added

comment:4 Changed 17 years ago by mww@…

Cc: dem5302@… removed
Resolution: fixed
Status: newclosed

polyml is now at version 5.1 which should build on 10.5 (according to their site);

please re-open if 5.1 does not build!

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.