Skip to content

Issues compiling files #16

@LittleHalfling

Description

@LittleHalfling

Hi!
I'm trying to follow the instructions in the READ.ME file for the project and am working on getting the test file 'test_continuous_to_continuous.py' to run, as the steps suggest running test files from helit/frf. I am currently encountering the following error when trying to run setup.py to create frf_c.so:
veronica@veronica-virtual-machine:~/helit/frf$ sudo python2 setup.py install
[sudo] password for veronica:
running install
running bdist_egg
running egg_info
writing frf.egg-info/PKG-INFO
writing top-level names to frf.egg-info/top_level.txt
writing dependency_links to frf.egg-info/dependency_links.txt
reading manifest file 'frf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'frf.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
There is a workaround to now inherit optimization CFLAGS when compiling wheels.
To enable this, set APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND in your
environment. See LP: https://launchpad.net/bugs/2002043 for further context.
APPLY_LP2002043_UBUNTU_CFLAGS_WORKAROUND not detected.
building 'frf_c' extension
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c philox.c -o build/temp.linux-x86_64-2.7/philox.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c data_matrix.c -o build/temp.linux-x86_64-2.7/data_matrix.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c summary.c -o build/temp.linux-x86_64-2.7/summary.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c information.c -o build/temp.linux-x86_64-2.7/information.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c learner.c -o build/temp.linux-x86_64-2.7/learner.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c index_set.c -o build/temp.linux-x86_64-2.7/index_set.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c tree.c -o build/temp.linux-x86_64-2.7/tree.o
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c frf_c.c -o build/temp.linux-x86_64-2.7/frf_c.o
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-RH0SVf/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC build/temp.linux-x86_64-2.7/philox.o build/temp.linux-x86_64-2.7/data_matrix.o build/temp.linux-x86_64-2.7/summary.o build/temp.linux-x86_64-2.7/information.o build/temp.linux-x86_64-2.7/learner.o build/temp.linux-x86_64-2.7/index_set.o build/temp.linux-x86_64-2.7/tree.o build/temp.linux-x86_64-2.7/frf_c.o -o build/lib.linux-x86_64-2.7/frf_c.so
/usr/bin/ld: build/temp.linux-x86_64-2.7/learner.o (symbol from plugin): in function Idiot_new': (.text+0x0): multiple definition of BiGaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/learner.o (symbol from plugin): in function Idiot_new': (.text+0x0): multiple definition of GaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/learner.o (symbol from plugin): in function Idiot_new': (.text+0x0): multiple definition of CategoricalInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/learner.o (symbol from plugin): in function Idiot_new': (.text+0x0): multiple definition of NothingInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/index_set.o (symbol from plugin): in function IndexSet_new': (.text+0x0): multiple definition of OneCatLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/index_set.o (symbol from plugin): in function IndexSet_new': (.text+0x0): multiple definition of SplitLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/index_set.o (symbol from plugin): in function IndexSet_new': (.text+0x0): multiple definition of IdiotLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of BiGaussianSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of GaussianSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of CategoricalSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of NothingSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of BiGaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of GaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of CategoricalInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of NothingInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of OneCatLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of SplitLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/tree.o (symbol from plugin): in function PtrArray_new': (.text+0x0): multiple definition of IdiotLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of OneCatLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of SplitLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of IdiotLearner'; build/temp.linux-x86_64-2.7/learner.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of BiGaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of GaussianInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of CategoricalInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of NothingInfo'; build/temp.linux-x86_64-2.7/information.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of BiGaussianSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of GaussianSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of CategoricalSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: build/temp.linux-x86_64-2.7/frf_c.o (symbol from plugin): in function CallbackReport': (.text+0x0): multiple definition of NothingSummary'; build/temp.linux-x86_64-2.7/summary.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Do other header/source files in different directories need to be compiled to resolve this issue? What can I do to run the program?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions