Problem: Installation problem xAct_1.2.0 on MAC

118 views
Skip to first unread message

Ben Koch

unread,
Jan 27, 2022, 11:38:16 AM1/27/22
to xAct Tensor Computer Algebra
Hi,

My operating system is macOS Big Sur 11.6.2 x86 (64 bit) 
and my mathematica is 12.1.1.0

I'm trying to install xAct_1.2.0 following the instructions given on 
This works until step 6:

when I type:

 ../../../../../SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions/mcc xperm.tm -o xpermtm.c

I get tons of warnings and error messages, which I will attach below.

Could someone help me with this please.

Cheers

ben

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

xpermtm.c.tm.c: In file included from xperm.tm:24:

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1789:7: error: fields must have a constant size: 'variable length array in structure' extension will never be supported

                int L[n];       /* We assume that elements of L cannot

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1794:7: error: fields must have a constant size: 'variable length array in structure' extension will never be supported

                int s[n];

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1795:7: error: fields must have a constant size: 'variable length array in structure' extension will never be supported

                int d[n];

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1797:7: error: fields must have a constant size: 'variable length array in structure' extension will never be supported

                int o[n];

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1813:52: error: function definition is not allowed here

        void TAB(int *L, int Ll, int *s1, int *d1, int n) {

                                                          ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1828:57: error: function definition is not allowed here

        void F2(int *TAB1, int *g, int *TAB2, int *sgd, int n) {

                                                               ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1839:64: error: function definition is not allowed here

        void F1(int *L, int Ll, int *g, int *list, int *listl, int n) {

                                                                      ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:1885:44: error: function definition is not allowed here

        int consistency(int *array, int m, int n) {

                                                  ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:2026:7: warning: implicit declaration of function 'F1' is invalid in C99 [-Wimplicit-function-declaration]

                F1(ALPHA[c].L, ALPHA[c].Ll, g, IMAGES, &IMAGESl, n);

                ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:2132:7: warning: implicit declaration of function 'F2' is invalid in C99 [-Wimplicit-function-declaration]

                    F2(s1, g, d1, perm1, n);

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:2159:7: warning: implicit declaration of function 'F2' is invalid in C99 [-Wimplicit-function-declaration]

                    F2(ALPHA[l].s, g, ALPHA[l].d, perm1, n);

                    ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:2165:18: warning: implicit declaration of function 'consistency' is invalid in C99 [-Wimplicit-function-declaration]

                result= consistency(array, arrayl, n);

                        ^

/Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/xperm.c:2188:3: warning: implicit declaration of function 'F2' is invalid in C99 [-Wimplicit-function-declaration]

                F2(ALPHA[l].s, g, ALPHA[l].d, perm1, n);

                ^

5 warnings and 8 errors generated.

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)

ld: warning: ignoring file /Applications/Mathematica.app/Contents/AddOns/Applications/xAct/xPerm/mathlink/../../../../../SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions/libMLi4.a, building for macOS-i386 but attempting to link with file built for macOS-x86_64

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd (3 slices)

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libc++.tbd (3 slices)

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd (3 slices)

Undefined symbols for architecture i386:

  "_main", referenced from:

     implicit entry/start for main executable

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)


Reply all
Reply to author
Forward
0 new messages