On Wed, Jun 2, 2021 at 2:12 PM kcrisman <[email protected]> wrote: > > Some interesting bits of these directly related to the errors in question - > similar final linking error in both cases. > > temp.macosx-11-arm64-3.9/src/map.o > build/temp.macosx-11-arm64-3.9/src/outline.o > build/temp.macosx-11-arm64-3.9/src/path.o -L/opt/homebrew/Cellar/jpeg/9d/lib > -L/usr/local/Cellar/openjpeg/2.4.0/lib > -L/opt/homebrew/Cellar/libtiff/4.3.0/lib > -L/opt/homebrew/Cellar/zlib/1.2.11/lib > -L/opt/homebrew/Cellar/freetype/2.10.4/lib > -L/usr/local/Cellar/little-cms2/2.12/lib > -L/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/lib > -L/opt/homebrew/Cellar/ntl/11.4.4/lib -L/opt/homebrew/Cellar/readline/8.1/lib > -L/opt/homebrew/lib > -L/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib > -L/usr/local/lib -L/usr/lib -lopenjp2 -lz -ltiff -lxcb -o > build/lib.macosx-11-arm64-3.9/PIL/_imaging.cpython-39-darwin.so > ld: warning: ignoring file > /usr/local/Cellar/openjpeg/2.4.0/lib/libopenjp2.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > > Is it possibly relevant that this computer was cloned via Time Machine from > an Intel laptop? I note that it is looking in the Intel version of Homebrew > for openjpeg. It looks like I can try to get openjpeg from the ARM Homebrew > now. I'll try reinstalling pillow and building and report back. But here it > is for reference. > > Looking for `libopenjp2` using pkg-config. > Appending path /usr/local/Cellar/openjpeg/2.4.0/lib > Appending path /usr/local/Cellar/openjpeg/2.4.0/include/openjpeg-2.4
so this is probably where the trouble comes from - pkg-config points to wrong directory. Perhaps you need to run brew install openjpeg (or brew reinstall openjpeg) to correct this (although it could be a Homebrew bug, not fixable this way) Dima > > Anyway, apparently something similar going on here. > > building 'cholmod' extension > gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common > -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -O2 -g > -I/usr/local/include > -I/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/include > -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 > -c src/C/cholmod.c -o build/temp.macosx-11-arm64-3.9/src/C/cholmod.o > src/C/cholmod.c:511:17: warning: comparison of integers of different signs: > 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] > if (L->minor<n) PY_ERR(PyExc_ArithmeticError, "singular matrix"); > ~~~~~~~~^~ > src/C/cholmod.c:616:17: warning: comparison of integers of different signs: > 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] > if (L->minor<n) PY_ERR(PyExc_ArithmeticError, "singular matrix"); > ~~~~~~~~^~ > src/C/cholmod.c:780:17: warning: comparison of integers of different signs: > 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] > if (L->minor<n) { > ~~~~~~~~^~ > src/C/cholmod.c:912:17: warning: comparison of integers of different signs: > 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] > if (L->minor<n) { > ~~~~~~~~^~ > src/C/cholmod.c:1001:16: warning: comparison of integers of different > signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] > for (k=0; k<L->nsuper; k++){ > ~^~~~~~~~~~ > 5 warnings generated. > gcc -bundle -undefined dynamic_lookup -isysroot > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk > -L/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/lib > -Wl,-rpath,/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/lib > -O2 -g build/temp.macosx-11-arm64-3.9/src/C/cholmod.o -L/usr/local/lib > -L/opt/homebrew/Cellar/openblas/0.3.15_1/lib -lcholmod -lcolamd -lamd > -lsuitesparseconfig -lopenblas -lopenblas -o > build/lib.macosx-11-arm64-3.9/cvxopt/cholmod.cpython-39-darwin.so > ld: warning: ignoring file /usr/local/lib/libcholmod.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libcolamd.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libamd.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libsuitesparseconfig.dylib, > building for macOS-arm64 but attempting to link with file built for > macOS-x86_64 > > for Pillow there is another linker warning as well, and several similar ones > in cvxopt. > > ld: warning: ignoring file > /usr/local/Cellar/little-cms2/2.12/lib/liblcms2.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > > building 'umfpack' extension > ld: warning: ignoring file /usr/local/lib/libamd.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libcolamd.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libsuitesparseconfig.dylib, > building for macOS-arm64 but attempting to link with file built for > macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libumfpack.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libcholmod.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > > building 'amd' extension > gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common > -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -O2 -g > -I/usr/local/include > -I/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/include > -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 > -c src/C/amd.c -o build/temp.macosx-11-arm64-3.9/src/C/amd.o > gcc -bundle -undefined dynamic_lookup -isysroot > /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk > -L/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/lib > -Wl,-rpath,/Users/karl.crisman/Downloads/BrewSage/sage-9.4.beta0/local/lib > -O2 -g build/temp.macosx-11-arm64-3.9/src/C/amd.o -L/usr/local/lib -lamd > -lsuitesparseconfig -o > build/lib.macosx-11-arm64-3.9/cvxopt/amd.cpython-39-darwin.so > ld: warning: ignoring file /usr/local/lib/libamd.dylib, building for > macOS-arm64 but attempting to link with file built for macOS-x86_64 > ld: warning: ignoring file /usr/local/lib/libsuitesparseconfig.dylib, > building for macOS-arm64 but attempting to link with file built for > macOS-x86_64 > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/9f6d0388-c647-41fa-ba11-7780a2156837n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq09zgo1OLOHKNHPraR04SYNOy0KZSc-9gMYZtEnnZ8uwQ%40mail.gmail.com.
