Opened 5 years ago

Closed 5 years ago

#58972 closed defect (worksforme)

gr-osmosdr: build error

Reported by: vamsi765 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: gr-osmosdr

Description

Building the gr-osmosdr give me the following error:

sudo port install gr-osmosdr
--->  Computing dependencies for gr-osmosdr
--->  Fetching archive for gr-osmosdr
--->  Attempting to fetch gr-osmosdr-20170704_7+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd.darwin_18.x86_64.tbz2 from https://packages.macports.org/gr-osmosdr
--->  Attempting to fetch gr-osmosdr-20170704_7+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/gr-osmosdr
--->  Attempting to fetch gr-osmosdr-20170704_7+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/gr-osmosdr
--->  Fetching distfiles for gr-osmosdr
--->  Verifying checksums for gr-osmosdr
--->  Extracting gr-osmosdr
--->  Applying patches to gr-osmosdr
--->  Configuring gr-osmosdr
--->  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_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gr-osmosdr failed

Log:

:info:build ld: file not found: /opt/local/lib/libgnuradio-runtime.3.7.12.0.dylib for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [lib/libgnuradio-osmosdr.0.1.5git.dylib] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/work/build'
:info:build make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gr-osmosdr/gr-osmosdr/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build gr-osmosdr: command execution failed
:debug:build Error code: CHILDSTATUS 43367 2
: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"

I have gnu radio version:

gnuradio @3.7.13.5_1+docs+grc+jack+log4cpp+logging+portaudio+qtgui+sdl+swig+uhd+wavelet+zeromq (active)

But it still somehow looking for older version[3.7.12.0] of gnu radio.

I have cleaned and build many times, along with gnuradio.

Attachments (5)

main.log (493.7 KB) - added by vamsi765 5 years ago.
Log file for the error
CMakeCache.txt (126.8 KB) - added by vamsi765 5 years ago.
Cache file with after commands
osmosdr_CMakeCache.txts (66.9 KB) - added by vamsi765 5 years ago.
OsmoSDR cmake cache log
gnuradio-build.log.txt.bz2 (398.4 KB) - added by vamsi765 5 years ago.
gr-osmosdr-build.log.txt.bz2 (17.0 KB) - added by vamsi765 5 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 5 years ago by kencu (Ken)

Cc: michaelld removed
Keywords: ld error removed

comment:2 Changed 5 years ago by kencu (Ken)

Milestone: MacPorts 2.6.0

comment:3 Changed 5 years ago by kencu (Ken)

Michael will probably want to see your entire log, so if you have a moment, please upload it. -- Thanks!

Changed 5 years ago by vamsi765

Attachment: main.log added

Log file for the error

comment:4 Changed 5 years ago by michaelld (Michael Dickens)

Can you attach the file $(port work gnuradio)/build/CMakeCache.txt?

What does the following return: /bin/ls -lAF /opt/local/lib/libgnuradio-runtime*

comment:5 Changed 5 years ago by vamsi765

port work doesn't seem to work:

> port work gnuradio
> 
> /bin/ls -lAF /opt/local/lib/libgnuradio-runtime*
-rwxr-xr-x  1 root  admin  771956 Sep  6 17:12 /opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib*
lrwxr-xr-x  1 root  admin      34 Sep  7 11:08 /opt/local/lib/libgnuradio-runtime.dylib@ -> libgnuradio-runtime.3.7.13.5.dylib

This seems to be correct version that was installed.

comment:6 Changed 5 years ago by michaelld (Michael Dickens)

OK; how about this then:

sudo port -f uninstall "gnuradio*"
sudo port clean --all "gnuradio*"
sudo port -k install gnuradio

then the file $(port work gnuradio)/build/CMakeCache.txt will exist & you can attach it. Thx!

Changed 5 years ago by vamsi765

Attachment: CMakeCache.txt added

Cache file with after commands

comment:7 Changed 5 years ago by michaelld (Michael Dickens)

Great. Now:

cp $(port logfile gnuradio) ~/Desktop/gnuradio-build.log.txt
bzip2 ~/Desktop/gnuradio-build.log.txt

and attach the file ~/Desktop/gnuradio-build.log.txt.bz2

Then do:

sudo port clean --all gr-osmosdr
sudo port install gr-osmosdr

then, assuming it fails:

cp $(port logfile gr-osmosdr) ~/Desktop/gr-osmosdr-build.log.txt
bzip2 ~/Desktop/gr-osmosdr-build.log.txt

and then attach the file ~/Desktop/gr-osmosdr-build.log.txt.bz2

And also the file $(port work gr-osmosdr)/build/CMakeCache.txt.

Changed 5 years ago by vamsi765

Attachment: osmosdr_CMakeCache.txts added

OsmoSDR cmake cache log

Changed 5 years ago by vamsi765

Attachment: gnuradio-build.log.txt.bz2 added

Changed 5 years ago by vamsi765

comment:8 Changed 5 years ago by michaelld (Michael Dickens)

Sorry for the delay. I'm guessing one of the gr-* ports need to be rebuilt ... so can you do:

for tl in $(find /opt/local/lib -name "libgnuradio*" -type f -depth 1) ; do echo $tl ; otool -L $tl | grep libgnuradio-runtime ; done

and report back what it prints out?

comment:9 Changed 5 years ago by vamsi765

> for tl in $(find /opt/local/lib -name "libgnuradio*" -type f -depth 1) ; do echo $tl ; otool -L $tl | grep libgnuradio-runtime ; done
/opt/local/lib/libgnuradio-pager.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-fec.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-pmt.3.7.13.5.dylib
/opt/local/lib/libgnuradio-vocoder.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-foo.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-digital.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-fft.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-noaa.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib
/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib:
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-uhd.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-test.1.0.0git.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.11git.dylib (compatibility version 3.7.11, current version 0.0.0)
/opt/local/lib/libgnuradio-qtgui.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-fcd.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-audio.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-ieee802_11.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-fcdproplus.3.7.2.0.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12.0.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-filter.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-paint.1.0.0git.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-iris.1.0.0git.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-trellis.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-rds.3.7.0git.dylib.mp_1565094080
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-wavelet.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-video-sdl.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-zeromq.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-mac.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12git.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-analog.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-dtv.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-rds.3.7.0git.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.12.0.dylib (compatibility version 3.7.12, current version 0.0.0)
/opt/local/lib/libgnuradio-blocks.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-channels.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)
/opt/local/lib/libgnuradio-atsc.3.7.13.5.dylib
	/opt/local/lib/libgnuradio-runtime.3.7.13.5.dylib (compatibility version 3.7.13, current version 0.0.0)

comment:10 Changed 5 years ago by vamsi765

Might be because I have tried to install directly from Git. Did try to uninstall with its makefile, no good.

comment:11 Changed 5 years ago by michaelld (Michael Dickens)

Try doing the following:

port provides /opt/local/lib/libgnuradio-foo.dylib \
/opt/local/lib/libgnuradio-test.1.0.0git.dylib \
/opt/local/lib/libgnuradio-ieee802_11.dylib \
/opt/local/lib/libgnuradio-fcdproplus.3.7.2.0.dylib \
/opt/local/lib/libgnuradio-paint.1.0.0git.dylib \
/opt/local/lib/libgnuradio-iris.1.0.0git.dylib \
/opt/local/lib/libgnuradio-mac.dylib \
/opt/local/lib/libgnuradio-rds.3.7.0git.dylib

then, for those which do exist, "uninstall" the port, then "install" it again. That should take care of the GR linking issue. I'm guessing that some of your GR OOT installs are not done by MP ... which is fine. I think those that matter were done by MP and hence can be redone to get the correct GR library linkage.

comment:12 Changed 5 years ago by vamsi765

That did the trick! gr-fcdproplus was using old gnuradio version

Last edited 5 years ago by vamsi765 (previous) (diff)

comment:13 Changed 5 years ago by michaelld (Michael Dickens)

Resolution: worksforme
Status: assignedclosed

Great! I'm wondering if I should rev-bump ports that depend on GR, since it seems like the ABI / library name has changed. I'm going to close this ticket but will investigate further.

Note: See TracTickets for help on using tickets.