Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jan 2015 17:09:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196491] comms/gnuradio on 10.1-release not working
Message-ID:  <bug-196491-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196491

            Bug ID: 196491
           Summary: comms/gnuradio on 10.1-release not working
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hamradio@FreeBSD.org
          Reporter: oliver@beefrankly.org
             Flags: maintainer-feedback?(hamradio@FreeBSD.org)
          Assignee: hamradio@FreeBSD.org

after upgrading my ports to the latest release on CURRENT I noticed gnuradio
stopped working. First I thought something messed up with my compiler settings. 

I tested with a 10.1-release fresh install on a vm to be sure it is not my
system. 


$ cd /usr/ports/comms/gnuradio/
$ make install clean

or

$ pkg install gnuradio

leads to: 

$ python -c "import gnuradio.gr"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line
45, in <module>
    from hier_block2 import *
  File "/usr/local/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py",
line 23, in <module>
    import pmt
  File "/usr/local/lib/python2.7/site-packages/pmt/__init__.py", line 55, in
<module>
    from pmt_to_python import pmt_to_python as to_python
  File "/usr/local/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22,
in <module>
    import numpy
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 170, in
<module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13,
in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18,
in <module>
    from .polynomial import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", line
19, in <module>
    from numpy.linalg import eigvals, lstsq, inv
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", line
51, in <module>
    from .linalg import *
  File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line
29, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found


I tested:

$ python -c "from numpy.linalg import lapack_lite, _umath_linalg"
$ 

works fine. 


Maybe this is a similar issue, so I assume gnuradio is build with other
compiler settings: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=184135

But py-numpy seems to work fine. Also the import that fails in the script.

Truss excerpt:  python -c "import numpy.linalg" 

access("/usr/local/lib/gcc48/libgfortran.so.3",0) = 0 (0x0)
open("/usr/local/lib/gcc48/libgfortran.so.3",O_CLOEXEC,030373770) = 10 (0xa)
fstat(10,{ mode=-rwxr-xr-x ,inode=1851572,size=5096224,blksize=32768 }) = 0
(0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,10,0x0) = 34368167936
(0x80080a000)
mmap(0x0,3231744,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) =
34431950848 (0x8044de000)
mmap(0x8044de000,1126400,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,10,0x0)
= 34431950848 (0x8044de000)
mmap(0x8047f1000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,10,0x113000)
= 34435174400 (0x8047f1000)
munmap(0x80080a000,4096)                         = 0 (0x0)
close(10)                                        = 0 (0x0)
access("/usr/local/lib/gcc48/libgcc_s.so.1",0)   = 0 (0x0)
open("/usr/local/lib/gcc48/libgcc_s.so.1",O_CLOEXEC,030373770) = 10 (0xa)

Truss excerpt: python -c "import gnuradio.gr"

access("/usr/local/lib/gcc48/libgfortran.so.3",0) = 0 (0x0)
open("/usr/local/lib/gcc48/libgfortran.so.3",O_CLOEXEC,030373770) = 14 (0xe)
fstat(14,{ mode=-rwxr-xr-x ,inode=1851572,size=5096224,blksize=32768 }) = 0
(0x0)

access("/lib/libgcc_s.so.1",0)                   = 0 (0x0)
open("/lib/libgcc_s.so.1",O_CLOEXEC,030373770)   = 6 (0x6)
fstat(6,{ mode=-r--r--r-- ,inode=47351049,size=56384,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,6,0x0) = 34368167936
(0x80080a000)
mmap(0x0,2154496,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) =
34427904000 (0x804102000)
mmap(0x804102000,57344,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,6,0x0)
= 34427904000 (0x804102000)
mmap(0x80430f000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,6,0xd000)
= 34430054400 (0x80430f000)
munmap(0x80080a000,4096)                         = 0 (0x0)
close(6)                                         = 0 (0x0)


So it seems as gnuradio import uses the wrong(?) libgcc_s.so.1 file (not the
gcc48-Version) but uses the gcc48 libgfortran version.


$ pkg info gnuradio
gnuradio-3.7.4_1
Name           : gnuradio
Version        : 3.7.4_1
Installed on   : Sat Jan  3 03:25:38 CET 2015
Origin         : comms/gnuradio
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : hamradio comms astro
Licenses       : GPLv3
Maintainer     : hamradio@FreeBSD.org
WWW            : http://gnuradio.org/redmine/projects/gnuradio
Comment        : Amateur Radio Software defined radio
Options        :
    TESTING        : off
    USRP           : on
Shared Libs required:
    libuhd.so.003
    libqwt.so.5
    libpython2.7.so.1
    libportaudio.so.2
    liborc-0.4.so.0
    libjack.so.0
    libgslcblas.so.0
    libgsl.so.0
    libfftw3f_threads.so.3
    libfftw3f.so.3
    libboost_unit_test_framework.so.1.55.0
    libboost_thread.so.1.55.0
    libboost_system.so.1.55.0
    libboost_program_options.so.1.55.0
    libboost_filesystem.so.1.55.0
    libboost_date_time.so.1.55.0
    libasound.so.2
    libSDL-1.2.so.0
    libQtGui.so.4
    libQtCore.so.4
Shared Libs provided:
    libvolk.so.0.0.0
    libgnuradio-wxgui.so.3.7.4
    libgnuradio-wavelet.so.3.7.4
    libgnuradio-vocoder.so.3.7.4
    libgnuradio-video-sdl.so.3.7.4
    libgnuradio-uhd.so.3.7.4
    libgnuradio-trellis.so.3.7.4
    libgnuradio-runtime.so.3.7.4
    libgnuradio-qtgui.so.3.7.4
    libgnuradio-pmt.so.3.7.4
    libgnuradio-pager.so.3.7.4
    libgnuradio-noaa.so.3.7.4
    libgnuradio-filter.so.3.7.4
    libgnuradio-fft.so.3.7.4
    libgnuradio-fec.so.3.7.4
    libgnuradio-fcd.so.3.7.4
    libgnuradio-digital.so.3.7.4
    libgnuradio-channels.so.3.7.4
    libgnuradio-blocks.so.3.7.4
    libgnuradio-audio.so.3.7.4
    libgnuradio-atsc.so.3.7.4
    libgnuradio-analog.so.3.7.4
Annotations    :
Flat size      : 119MiB
Description    :
GNU Radio is a collection of software that when combined with
minimal hardware, allows the construction of radios where the
actual waveforms transmitted and received are defined by software.
What this means is that it turns the digital modulation schemes
used in today's high performance wireless devices into software problems. 

WWW: http://gnuradio.org/redmine/projects/gnuradio

$

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer hamradio@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196491-13>