Opened 4 years ago

Closed 3 years ago

#62646 closed defect (fixed)

py39-matplotlib-basemap @1.2.2_0: cannot install

Reported by: brolcz Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: reneeotten (Renee Otten), michaelld (Michael Dickens), Schamschula (Marius Schamschula)
Port: py-matplotlib-basemap, py-numpy

Description

when attempting to update this port, it fails.

I am using mac os x Mojave 10.14.6. xcodetools version is 11.3.1.

Here is the error message snippet in the log file:

:info:build error: Command "/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.macosx-10.14-x86_64-3.9/numpy/distutils/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/_geoslib.c -o build/temp.macosx-10.14-x86_64-3.9/src/_geoslib.o -MMD -MF build/temp.macosx-10.14-x86_64-3.9/src/_geoslib.o.d -msse -msse2 -msse3" failed with exit status 1
:info:build ########### EXT COMPILER OPTIMIZATION ###########
:info:build Platform      : 
:info:build   Architecture: x64
:info:build   Compiler    : clang
:info:build CPU baseline  : 
:info:build   Requested   : 'min'
:info:build   Enabled     : SSE SSE2 SSE3
:info:build   Flags       : -msse -msse2 -msse3
:info:build   Extra checks: none
:info:build CPU dispatch  : 
:info:build   Requested   : 'max -xop -fma4'
:info:build   Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
:info:build   Generated   : none
:info:build CCompilerOpt._cache_write[796] : write cache to path -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib-basemap/py39-matplotlib-basemap/work/matplotlib-basemap-3076ec9/build/temp.macosx-10.14-x86_64-3.9/ccompiler_opt_cache_ext.py
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib-basemap/py39-matplotlib-basemap/work/basemap-1.2.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 setup.py --no-user-cfg build -j1 
:info:build Exit code: 1
:error:build Failed to build py39-matplotlib-basemap: command execution failed
:debug:build Error code: CHILDSTATUS 1414 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-matplotlib-basemap/py39-matplotlib-basemap/main.log for details.

Thanks!

Attachments (1)

main.log (130.8 KB) - added by brolcz 4 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 4 years ago by mf2k (Frank Schima)

Port: py-matplotlib-basemap added; py39-matplotlib-basemap removed

comment:2 Changed 4 years ago by reneeotten (Renee Otten)

I am not sure why I am CCed on this ticket... did this occur after the latest update of py-matplotlib, or...?

Upstream states for the current release of py-matplotlib-base:

"This is quite likely the last release ever of basemap. Please move development efforts over to Cartopy!

This release fixes some incompatibilities with matplotlib v3.3+ and also newer versions of libgeos (tested against v1.6.1). Also fixes some incompatibilities with the make.py."

so I wouldn't necessarily expect any fixes for this if it is related to the update of matplotlib. It appears that Cartopy is the suggested replacement/successor? But it looks like it has never build correctly. Perhaps someone will take a look at this and will be able to fix it - likely it will not be me anytime soon though.

comment:3 in reply to:  description Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: reneeotten added; reneeotten@… removed

Replying to brolcz:

Here is the error message snippet in the log file:

I don't think you've shown us the relevant error, which I believe would have been earlier in the log. This is why we ask that you attach the full log whenever you file a bug report.

Replying to reneeotten:

I am not sure why I am CCed on this ticket...

Perhaps because you were the last person to modify the port in [463260db76420784f28e1e6aa2d0b8cbca81c751/macports-ports].

But it looks like it has never build correctly.

I don't think that page tells us that. It tells us that the most recent builds did not succeed. It doesn't make any statements about whether any past build ever succeeded. It also does not claim that the most recently attempted build is for the most recent version of the port. Presumably it at least built on your system before you committed the last update.

Since the most recent builds are long enough ago that the logs have been deleted, I'm rerunning some builds now. Looks like at least on 10.14 one of the problems is:

clang: error: unknown argument: '-mavx5124fmaps'
clang: error: unknown argument: '-mavx5124vnniw'

https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/83552/steps/install-port/logs/stdio

Changed 4 years ago by brolcz

Attachment: main.log added

comment:4 Changed 4 years ago by brolcz

Hello, thanks. I have attached the log. Sorry if I tagged you incorrectly, Renee. I didn't find any maintainers for basemap, so I thought maybe it shoudl be the person who maintained matplotlib.

comment:5 Changed 4 years ago by efji

I have exactly the same problem and it appeared many weeks ago. This ticket is the first one I found and the only one. It is quite strange since, according to this page : https://ports.macports.org/port/py39-matplotlib-basemap/builds nobody has been able to install this package on any platform since january! clang: error: unknown argument: '-mavx5124fmaps' seems to be the key, but what can we do ? matplotlib is a very important package for a lot of people and I do not understand why this is not fixed. Is it a problem with my configuration ? Help please...

comment:6 in reply to:  5 ; Changed 4 years ago by reneeotten (Renee Otten)

Replying to efji:

matplotlib is a very important package for a lot of people and I do not understand why this is not fixed. Is it a problem with my configuration ?

just to be clear, py-matplotlib works perfectly fine, this ticket is about matplotlib-basemap, which is not supported anymore by upstream, they suggest to move to py-cartopy. This port is nomaintainer so that's likely part of the reason that it hasn't been fixed yet besides that this is the first ticket about it.

I looked a bit in the weekend and to me it seems the issue is due to "implicit declarations" in some of the numpy functions used, at least the message is:

/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:9:9: error: implicit declaration of function '_mm512_4fmadd_ps' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

but I couldn't get it to work quickly and don't use the package myself so am likely not going to spend much time on this.

comment:7 Changed 4 years ago by kencu (Ken)

python27 works:

$ port -v installed | grep basemap
  py27-matplotlib-basemap @1.2.2_0 (active) platform='darwin 18' archs='x86_64' date='2021-04-12T18:23:37-0700'

and python37 and python38 versions are also on the packages sever:

http://packages.macports.org/py37-matplotlib-basemap/

http://packages.macports.org/py38-matplotlib-basemap/

So (IMHO) you might use one of those. I have no idea if anyone will ever fix the python39 version. It doesn't build for me, and I also tried the tip-of-tree and that doesn't build either, so it's totally an upstream issue and they have said that the software is not getting any more updates.

comment:8 Changed 4 years ago by kencu (Ken)

I deleted the (non-building) python39 subport.

We get away with adding new python versions without really testing them often enough, but every once in a while, it comes back to bite you on the behind...

comment:9 Changed 4 years ago by efji

@Ken great! Everything is working now. Thanks a lot.

comment:10 in reply to:  6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld added
Port: py-numpy added

Replying to reneeotten:

I looked a bit in the weekend and to me it seems the issue is due to "implicit declarations" in some of the numpy functions used, at least the message is:

/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/numpy/distutils/checks/cpu_avx512_knm.c:9:9: error: implicit declaration of function '_mm512_4fmadd_ps' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

This error was also previously noted in comment:ticket:62243:3, so maybe it is a numpy bug. Michael?

comment:11 in reply to:  8 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Schamschula added

Replying to kencu:

I deleted the (non-building) python39 subport.

It was re-added today.

comment:12 Changed 3 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.