I've pushed a fix for this and it seems to work on Mac OS X. Recent changes added a call from the assembly code into a C function in the run-time system. This seems to have caused problems on a number of platforms so I've changed it to do an indirect call through a data structure.

David

On 27/10/2020 20:03, Chun Tian wrote:
Hi,

when I try to build latest polyml trunk (master) on macOS 10.15, I got the 
following errors:

Making all in libpolyml
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -O3 -DMACOSX 
-DGIT_VERSION=\"v5.8.1-286-gcea4c79c\" -Wall 
-DMODULEDIR=\"/usr/local/lib/polyml/modules\"    -DMACOSX  -MT x86assembly_gas64.lo -MD 
-MP -MF .deps/x86assembly_gas64.Tpo -c -o x86assembly_gas64.lo x86assembly_gas64.S
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -O3 -DMACOSX 
-DGIT_VERSION=\"v5.8.1-286-gcea4c79c\" -Wall 
-DMODULEDIR=\"/usr/local/lib/polyml/modules\" -DMACOSX -MT x86assembly_gas64.lo -MD -MP 
-MF .deps/x86assembly_gas64.Tpo -c x86assembly_gas64.S  -fno-common -DPIC -o 
.libs/x86assembly_gas64.o
x86assembly_gas64.S:223:5: error: unsupported symbol modifier in branch 
relocation
     call X86TrapHandler@plt
     ^
make[2]: *** [x86assembly_gas64.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

My last (successful) build was: Poly/ML 5.8.2 Testing (Git version 
v5.8.1-68-gb4786634). GCC is from Xcode 12.1:

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.21)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Please let me know if any further information is needed.

Regards,

Chun Tian


_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to