#66389 closed defect (fixed)
gr-osmosdr @20210117-cffef690_3 Build error
Reported by: | dwyerk (Kevin Dwyer) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | sck-nogas (Scott C. Kennedy), Patater (Jaeden Amero) | |
Port: | gr-osmosdr |
Description
gr-osmosdr fails to build with SWIG errors.
I'm running: sudo port install gr-osmosdr
Which results in:
---> Building gr-osmosdr Error: Failed to build gr-osmosdr: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port gr-osmosdr failed
Build environment:
:debug:sysinfo macOS 13.0.1 (darwin/22.1.0) arch i386 :debug:sysinfo MacPorts 2.8.0 :debug:sysinfo Xcode 14.1, CLT 14.1.0.0.1.1666437224
First of the errors from the logs:
gr-osmosdr/work/build/swig/CMakeFiles/osmosdr_swig.dir/osmosdr_swigPYTHON_wrap.cxx:5077:152: error: unknown type name 'SWIGPY_SLICEOBJECT'
Attachments (1)
Change History (8)
Changed 2 years ago by dwyerk (Kevin Dwyer)
comment:1 Changed 2 years ago by jmroot (Joshua Root)
Owner: | set to michaelld |
---|---|
Status: | new → assigned |
comment:2 Changed 2 years ago by dwyerk (Kevin Dwyer)
comment:3 Changed 2 years ago by dwyerk (Kevin Dwyer)
Also not entirely clear but SWIG-4.1.0 deprecated the -py3
argument, which osmosdr passes, so we might have to also add
%feature("python:annotations", "c");
comment:4 Changed 23 months ago by sck-nogas (Scott C. Kennedy)
Cc: | sck-nogas added |
---|
comment:5 Changed 21 months ago by michaelld (Michael Dickens)
@dwyerk : Thank you for this work!
1) Your SWIGPY_SLICEOBJECT
tweak does indeed do the trick. I will add a patch to fix that. I'm -so- glad someone tracked this down for us!
2) Reviewing the current state of SWIG 4.1, I agree that we should add the %feature
as you note. The -py3
removal is safe & has to be done in gnuradio
(3.8.5) port and it's simple to add in the %feature
there as well to the top level gnuradio.i
SWIG file. I'm fixing that gnuradio
first & then I'll fix gr-osmosdr
.
comment:6 Changed 21 months ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 21 months ago by Patater (Jaeden Amero)
Cc: | Patater added |
---|
Digging around in the osmosdr code I found this really suspicious bit of code:
This patch at least lets it build. I copied the newer syntax that swig uses into this section. Presumably this is because macports is on to SWIG-4.1.0?