While working through Lab5 from
https://github.com/opencpi/training/tree/master/PDFs/presentations
https://github.com/opencpi/training/tree/master/PDFs/presentations, I
encountered the following error when building the unit test:
$ ocpidev create test time_demux
$ cp -a ../training/provided/lab5/time_demux.test/*
./components/time_demux.test/
$ ocpidev build test time_demux --rcc-platform centos7
make: Entering directory ./training_project/components/time_demux.test' Creating executable for "test_data_generator" running on platform centos7 from target-centos7/test_data_generator.o g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory make: *** [target-centos7/test_data_generator] Error 1 make: Leaving directory
./training_project/components/time_demux.test'
I am using OpenCPI v1.4 on centos7, and I installed it with the following
commands:
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo=
https://opencpi.github.io/repo/opencpi-v1.4.0.repo
$ sudo yum install -y epel-release
$ sudo yum install -y libXft.i686 libXext.i686
$ sudo yum install -y 'opencpi*'
My OpenCPI environmental variables are:
$ env | sort | grep OCPI
OCPI_CDK_DIR=/opt/opencpi/cdk
OCPI_PREREQUISITES_DIR=/opt/opencpi/prerequisites
OCPI_TOOL_ARCH=x86_64
OCPI_TOOL_DIR=centos7
OCPI_TOOL_OS=linux
OCPI_TOOL_OS_VERSION=c7
OCPI_TOOL_PLATFORM=centos7
OCPI_TOOL_PLATFORM_DIR=/opt/opencpi/cdk/../projects/core/rcc/platforms/centos7
OCPI_XILINX_LICENSE_FILE=2100@server
Thanks,
Josh Schindehette
Hi Josh,
Can you please go into that test subdirectory and do the following and report the results:
$ make clean
$ make test AT=
It seems to be trying to compile the support application "test_data_generator" but is passing along a strange option to the compiler; we don't have any software library with "assets.a" in it. We have many other libraries that get linked in; here's my example:
$ make test AT=
cp /boot/vmlinuz-3.10.0-957.el7.x86_64 mytestvmlinuz
mkdir target-centos7
echo Compiling source file: test_data_generator.cxx for platform centos7
Compiling source file: test_data_generator.cxx for platform centos7
g++ -g -pipe -Wall -Wfloat-equal -Wextra -fno-strict-aliasing -Wformat -Wuninitialized -Winit-self -grecord-gcc-switches -fstack-protector -Wno-conversion -Wno-sign-conversion --param=ssp-buffer-size=4 -std=c++0x -MMD -MP -MF target-centos7/test_data_generator.o.deps -c -fPIC -I. -Iinclude -I"/opt/opencpi/cdk/include/aci" -I"/opt/opencpi/prerequisites/lzma/include" -I"/opt/opencpi/prerequisites/gmp/centos7/include" -I"/opt/opencpi/prerequisites/gmp/include" -o target-centos7/test_data_generator.o test_data_generator.cxx
echo Creating executable for "test_data_generator" running on platform centos7 from target-centos7/test_data_generator.o
Creating executable for "test_data_generator" running on platform centos7 from target-centos7/test_data_generator.o
g++ -Xlinker -export-dynamic -Wl,-z,relro -Wl,-z,now -Xlinker -export-dynamic -Wl,-z,relro -Wl,-z,now -o target-centos7/test_data_generator target-centos7/test_data_generator.o /opt/opencpi/cdk/centos7/lib/libocpi_application.a /opt/opencpi/cdk/centos7/lib/libocpi_remote_support.a /opt/opencpi/cdk/centos7/lib/libocpi_container.a /opt/opencpi/cdk/centos7/lib/libocpi_library.a /opt/opencpi/cdk/centos7/lib/libocpi_transport.a /opt/opencpi/cdk/centos7/lib/libocpi_xfer.a /opt/opencpi/cdk/centos7/lib/libocpi_util.a /opt/opencpi/cdk/centos7/lib/libocpi_msg_driver_interface.a /opt/opencpi/cdk/centos7/lib/libocpi_foreign.a /opt/opencpi/cdk/centos7/lib/libocpi_os.a -L /opt/opencpi/cdk/centos7/lib /opt/opencpi/cdk/centos7/lib/liblzma.a /opt/opencpi/cdk/centos7/lib/libgmp.a -lrt -ldl -lpthread && /opt/opencpi/cdk/scripts/makeStaticWorker.sh linux target-centos7/test_data_generator libocpi_application.so libocpi_remote_support.so libocpi_container.so libocpi_library.so libocpi_transport.so libocpi_xfer.so libocpi_util.so libocpi_msg_driver_interface.so libocpi_foreign.so libocpi_os.so
touch aciapps
echo ========= Generating test assemblies, inputs and applications for time_demux:
...
Aaron
From: discuss discuss-bounces@lists.opencpi.org on behalf of Josh Schindehette jschindehette@geontech.com
Sent: Friday, January 11, 2019 12:10:35 PM
To: discuss@lists.opencpi.org
Subject: [Discuss OpenCPI] Error during Lab5
While working through Lab5 from
https://github.com/opencpi/training/tree/master/PDFs/presentations
https://github.com/opencpi/training/tree/master/PDFs/presentations, I
encountered the following error when building the unit test:
$ ocpidev create test time_demux
$ cp -a ../training/provided/lab5/time_demux.test/*
./components/time_demux.test/
$ ocpidev build test time_demux --rcc-platform centos7
make: Entering directory ./training_project/components/time_demux.test' Creating executable for "test_data_generator" running on platform centos7 from target-centos7/test_data_generator.o g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory make: *** [target-centos7/test_data_generator] Error 1 make: Leaving directory
./training_project/components/time_demux.test'
I am using OpenCPI v1.4 on centos7, and I installed it with the following
commands:
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo=
https://opencpi.github.io/repo/opencpi-v1.4.0.repo
$ sudo yum install -y epel-release
$ sudo yum install -y libXft.i686 libXext.i686
$ sudo yum install -y 'opencpi*'
My OpenCPI environmental variables are:
$ env | sort | grep OCPI
OCPI_CDK_DIR=/opt/opencpi/cdk
OCPI_PREREQUISITES_DIR=/opt/opencpi/prerequisites
OCPI_TOOL_ARCH=x86_64
OCPI_TOOL_DIR=centos7
OCPI_TOOL_OS=linux
OCPI_TOOL_OS_VERSION=c7
OCPI_TOOL_PLATFORM=centos7
OCPI_TOOL_PLATFORM_DIR=/opt/opencpi/cdk/../projects/core/rcc/platforms/centos7
OCPI_XILINX_LICENSE_FILE=2100@server
Thanks,
Josh Schindehette
Chris Hinkey helped me debug the issue. Apparently I used "-Y ocpi.assets"
option instead of "-D ocpi.assets" when creating the project with ocpidev,
meaning that Project.mk had the following contents:
# ... Comments removed ...
PackageName=training
PackagePrefix=ocpi
ProjectDependencies=
Libraries=ocpi.assets
Changing the Project.mk file to have the following contents fixed the issue:
# ... Comments removed ...
PackageName=training
PackagePrefix=ocpi
ProjectDependencies=ocpi.assets
Libraries=
On Fri, Jan 11, 2019 at 1:17 PM Marasco, Aaron aaron.marasco@bia-boeing.com
wrote:
Hi Josh,
Can you please go into that test subdirectory and do the following and
report the results:
$ make clean
$ make test AT=
It seems to be trying to compile the support application
"test_data_generator" but is passing along a strange option to the
compiler; we don't have any software library with "assets.a" in it. We have
many other libraries that get linked in; here's my example:
$ make test AT=
cp /boot/vmlinuz-3.10.0-957.el7.x86_64 mytestvmlinuz
mkdir target-centos7
echo Compiling source file: test_data_generator.cxx for platform centos7
Compiling source file: test_data_generator.cxx for platform centos7
g++ -g -pipe -Wall -Wfloat-equal -Wextra
-fno-strict-aliasing -Wformat -Wuninitialized -Winit-self
-grecord-gcc-switches -fstack-protector -Wno-conversion
-Wno-sign-conversion --param=ssp-buffer-size=4 -std=c++0x -MMD
-MP -MF target-centos7/test_data_generator.o.deps -c -fPIC
-I. -Iinclude -I"/opt/opencpi/cdk/include/aci"
-I"/opt/opencpi/prerequisites/lzma/include"
-I"/opt/opencpi/prerequisites/gmp/centos7/include"
-I"/opt/opencpi/prerequisites/gmp/include" -o
target-centos7/test_data_generator.o test_data_generator.cxx
echo Creating executable for "test_data_generator" running on platform
centos7 from target-centos7/test_data_generator.o
Creating executable for "test_data_generator" running on platform centos7
from target-centos7/test_data_generator.o
g++ -Xlinker -export-dynamic -Wl,-z,relro -Wl,-z,now -Xlinker
-export-dynamic -Wl,-z,relro -Wl,-z,now -o
target-centos7/test_data_generator target-centos7/test_data_generator.o
/opt/opencpi/cdk/centos7/lib/libocpi_application.a
/opt/opencpi/cdk/centos7/lib/libocpi_remote_support.a
/opt/opencpi/cdk/centos7/lib/libocpi_container.a
/opt/opencpi/cdk/centos7/lib/libocpi_library.a
/opt/opencpi/cdk/centos7/lib/libocpi_transport.a
/opt/opencpi/cdk/centos7/lib/libocpi_xfer.a
/opt/opencpi/cdk/centos7/lib/libocpi_util.a
/opt/opencpi/cdk/centos7/lib/libocpi_msg_driver_interface.a
/opt/opencpi/cdk/centos7/lib/libocpi_foreign.a
/opt/opencpi/cdk/centos7/lib/libocpi_os.a -L /opt/opencpi/cdk/centos7/lib
/opt/opencpi/cdk/centos7/lib/liblzma.a
/opt/opencpi/cdk/centos7/lib/libgmp.a -lrt -ldl -lpthread &&
/opt/opencpi/cdk/scripts/makeStaticWorker.sh linux
target-centos7/test_data_generator libocpi_application.so
libocpi_remote_support.so libocpi_container.so libocpi_library.so
libocpi_transport.so libocpi_xfer.so libocpi_util.so
libocpi_msg_driver_interface.so libocpi_foreign.so libocpi_os.so
touch aciapps
echo ========= Generating test assemblies, inputs and applications for
time_demux:
...
Aaron
From: discuss discuss-bounces@lists.opencpi.org on behalf of Josh
Schindehette jschindehette@geontech.com
Sent: Friday, January 11, 2019 12:10:35 PM
To: discuss@lists.opencpi.org
Subject: [Discuss OpenCPI] Error during Lab5
While working through Lab5 from
https://github.com/opencpi/training/tree/master/PDFs/presentations
https://github.com/opencpi/training/tree/master/PDFs/presentations, I
encountered the following error when building the unit test:
$ ocpidev create test time_demux
$ cp -a ../training/provided/lab5/time_demux.test/*
./components/time_demux.test/
$ ocpidev build test time_demux --rcc-platform centos7
make: Entering directory ./training_project/components/time_demux.test' Creating executable for "test_data_generator" running on platform centos7 from target-centos7/test_data_generator.o g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory g++: error: /opt/opencpi/cdk/centos7/lib/libocpi_ocpi.assets.a: No such file or directory make: *** [target-centos7/test_data_generator] Error 1 make: Leaving directory
./training_project/components/time_demux.test'
I am using OpenCPI v1.4 on centos7, and I installed it with the following
commands:
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo=
https://opencpi.github.io/repo/opencpi-v1.4.0.repo
$ sudo yum install -y epel-release
$ sudo yum install -y libXft.i686 libXext.i686
$ sudo yum install -y 'opencpi*'
My OpenCPI environmental variables are:
$ env | sort | grep OCPI
OCPI_CDK_DIR=/opt/opencpi/cdk
OCPI_PREREQUISITES_DIR=/opt/opencpi/prerequisites
OCPI_TOOL_ARCH=x86_64
OCPI_TOOL_DIR=centos7
OCPI_TOOL_OS=linux
OCPI_TOOL_OS_VERSION=c7
OCPI_TOOL_PLATFORM=centos7
OCPI_TOOL_PLATFORM_DIR=/opt/opencpi/cdk/../projects/core/rcc/platforms/centos7
OCPI_XILINX_LICENSE_FILE=2100@server
Thanks,
Josh Schindehette