Modelsim as a simulator in 64-bit platform

First of all, kudos for the project! I'm very excited by it and going to great lengths to use it and I expect to help with the development ASAP.
After playing a bit with Icarus, I decided to depart to Modelsim, as this is the simulator I must use at work and I have the intention to bring it there. However, I have a 64 bit system and, although I have a 32-bit version of Modelsim, things are not easy.
First, I've compiled Python and zlib to 32 bit and installed virtualenv, so everything could run in a 32-bit environment inside my 64-bit system. It almost works, but there are some problems:
While compiling cocotb, the process mostly works except for the tests with Icarus. They always finish with this error:
iverilog -o sim_build/sim.vvp -D COCOTB_SIM=1   /home/aylons/git/cocotb/examples/endian_swapper/tests/../hdl/endian_swapper.sv
PYTHONPATH=/home/aylons/git/cocotb/build/libs/i686:/home/aylons/git/cocotb:/home/aylons/git/cocotb/examples/endian_swapper/tests:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim: LD_LIBRARY_PATH=/home/aylons/git/cocotb/build/libs/i686:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim: MODULE=test_endian_swapper \
        TESTCASE= TOPLEVEL=endian_swapper \
        vvp -M /home/aylons/git/cocotb/build/libs/i686 -m gpivpi sim_build/sim.vvp
gpivpi:`/home/aylons/git/cocotb/build/libs/i686/gpivpi.vpl' failed to open using dlopen() because:
    /home/aylons/git/cocotb/build/libs/i686/gpivpi.vpl: wrong ELF class: ELFCLASS32.
VCD info: dumpfile waveform.vcd opened for output.
make[3]: Leaving directory `/home/aylons/git/cocotb/examples/endian_swapper/tests'

Ok, so the problem seems to be with Icarus. Maybe it's a benign problem, and I try to run the endian_swapper test using Modelsim, and it almost work again. This is the resulting output:
(env)aylons@aylons-yoga2:~/git/cocotb/examples/endian_swapper/tests$ make SIM=modelsim
make results.xml
make[1]: Entering directory `/home/aylons/git/cocotb/examples/endian_swapper/tests'
LD_LIBRARY_PATH=/home/aylons/git/cocotb/build/libs/i686::/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim: MODULE=test_endian_swapper TESTCASE= TOPLEVEL=endian_swapper \
	PYTHONPATH=/home/aylons/git/cocotb/build/libs/i686:/home/aylons/git/cocotb:/home/aylons/git/cocotb/examples/endian_swapper/tests:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim:/home/aylons/git/cocotb/examples/endian_swapper/tests/../cosim: \
	vsim -c -do runsim.do 2>&1 | tee sim.log
Reading /opt/Modelsim/modeltech/tcl/vsim/pref.tcl

# 6.5f

# do runsim.do
# ** Warning: (vlib-34) Library already exists at "work".
# Model Technology ModelSim SE vlog 6.5f Compiler 2010.06 Jun 16 2010
# -- Compiling module endian_swapper
#
# Top level modules:
# 	endian_swapper
# vsim -onfinish stop -pli libgpi.so work.endian_swapper
# Loading /home/aylons/git/cocotb/build/libs/i686/libgpi.so
# //  ModelSim SE 6.5f Jun 16 2010 Linux 3.13.0-30-generic
# //
# //  Copyright 1991-2010 Mentor Graphics Corporation
# //              All Rights Reserved.

# //
# Loading sv_std.std
# Loading work.endian_swapper(fast)
Traceback (most recent call last):
  File "/home/aylons/git/cocotb/cocotb/__init__.py", line 35, in <module>
    import logging
  File "/opt/pym32/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
ImportError: /opt/pym32/lib/python2.7/lib-dynload/time.so: undefined symbol: PyExc_ValueError
Failed to load "cocotb"
# Attempting stack trace sig 11
# Signal caught: signo [11]
# vsim_stacktrace.vstf written
# Current time Mon Jul 14 21:43:03 2014
# ModelSim Stack Trace
# Program = vsim
# Id = "6.5f"
# Version = "2010.06"
# Date = "Jun 16 2010"
# Platform = linux
# --> START OF USERCODE
# 0    0x56c530da: 'embed_sim_init + 0x5aa' in '/home/aylons/git/cocotb/build/libs/i686/libcocotb.so'
# 1    0x5558a893: 'gpi_embed_init + 0x18' in '/home/aylons/git/cocotb/build/libs/i686/libgpi.so'
# 2    0x5558c165: 'handle_sim_init + 0x3b' in '/home/aylons/git/cocotb/build/libs/i686/libgpi.so'
# 3    0x5558ad13: 'gpi_handle_callback + 0x18' in '/home/aylons/git/cocotb/build/libs/i686/libgpi.so'
# 4    0x5558bb90: 'handle_vpi_callback + 0x7f' in '/home/aylons/git/cocotb/build/libs/i686/libgpi.so'
# <-- END OF USERCODE
# 5    0x081e7594: '<unknown (@0x81e7594)>'
# 6    0x081e77cb: '<unknown (@0x81e77cb)>'
# 7    0x08485a01: '<unknown (@0x8485a01)>'
# 8    0x0837ef3b: '<unknown (@0x837ef3b)>'
# 9    0x08380590: '<unknown (@0x8380590)>'
# 10   0x086d4237: '<unknown (@0x86d4237)>'
# 11   0x086d59e9: '<unknown (@0x86d59e9)>'
# 12   0x086fb31b: '<unknown (@0x86fb31b)>'
# 13   0x08700403: '<unknown (@0x8700403)>'
# 14   0x086d797c: '<unknown (@0x86d797c)>'
# 15   0x086daa2d: '<unknown (@0x86daa2d)>'
# 16   0x086d59e9: '<unknown (@0x86d59e9)>'
# 17   0x086fb31b: '<unknown (@0x86fb31b)>'
# 18   0x08700663: '<unknown (@0x8700663)>'
# 19   0x086d60fc: '<unknown (@0x86d60fc)>'
# 20   0x086dd7fd: '<unknown (@0x86dd7fd)>'
# 21   0x086d59e9: '<unknown (@0x86d59e9)>'
# 22   0x086d6e7d: '<unknown (@0x86d6e7d)>'
# 23   0x086d72c0: '<unknown (@0x86d72c0)>'
# 24   0x086d7caa: '<unknown (@0x86d7caa)>'
# 25   0x085a61ea: '<unknown (@0x85a61ea)>'
# 26   0x0870e01b: '<unknown (@0x870e01b)>'
# 27   0x0873cb4e: '<unknown (@0x873cb4e)>'
# 28   0x0871d480: '<unknown (@0x871d480)>'
# 29   0x0871d77e: '<unknown (@0x871d77e)>'
# 30   0x08694f80: '<unknown (@0x8694f80)>'
# 31   0x0836b410: '<unknown (@0x836b410)>'
# 32   0x082cd49a: '<unknown (@0x82cd49a)>'
# 33   0x0805d6e9: '<unknown (@0x805d6e9)>'
# End of Stack Trace

** Fatal: (SIGSEGV) Bad pointer access. Closing vsimk.

And this is where I'm stuck at right now. I understand this is probably a problem with my system and not with cocotb, but I think this is the best place to seek for help. Also, I would love to run a full 64 bit stack, but as the documentation says it is not supported, I though going trying this 32-bit approach would put me to work faster.
Any ideas on how to correct these errors?

I am new to cocotb and would like to use it in my environment which is Virtualbox running Ubuntu 14.04.  The simulator I am using is Modelsim DE 10.3 which I believe is a 32-bit operating system.  When I followed the quickstart instructions, I ran into problems installing the 32 bit python instructions.
Do you or anyone else have any experience with Modelsim DE, Ubuntu, and cocotb working together?
Thanks,
Craig

@cfswanson What were your problems exactly?
Hard to help without some specific error messages or problems.
Posting you command line output is a good start.

Luke,
Thank you so much for your quick reply.  Would you prefer that I converse
with you directly through email or through the forum?
I am using Ubuntu 14.04 running on VirtualBox on my Windows 7 laptop.  I
have Modelsim DE 10.3 installed which I believe is a 32 bit program.
I am getting an error when I try to execute "make".  Here is a history of
what I am doing.  If you want to go straight to my error, scroll to the
bottom of this email.
I am trying to follow your Quickstart Guide:
craig@craig-VirtualBox:~$ sudo apt-get install git make gcc g++ swig
python-dev
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
gcc is already the newest version.
make is already the newest version.
python-dev is already the newest version.
swig is already the newest version.
git is already the newest version.
The following packages were automatically installed and are no longer
required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
sudo apt-get install libx32gcc1 gcc-4.8-multilib lib32stdc++-4.8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.8-multilib is already the newest version.
lib32stdc++-4.8-dev is already the newest version.
libx32gcc1 is already the newest version.
The following packages were automatically installed and are no longer
required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
--2016-02-21 20:56:06--
https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
Resolving www.python.org (www.python.org)... <IP_ADDRESS>
Connecting to www.python.org (www.python.org)|<IP_ADDRESS>|:443...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 16657930 (16M) [application/octet-stream]
Saving to: ‘Python-2.7.9.tgz.1’
100%[==================================================================================================>]
16,657,930  8.31MB/s   in 1.9s
2016-02-21 20:56:08 (8.31 MB/s) - ‘Python-2.7.9.tgz.1’ saved
[16657930/16657930]
These next commands had no errors:
$> wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz$> tar
xvf Python-2.7.9.tgz$> cd Python-2.7.9$> export PY32_DIR=/opt/pym32
$> ./configure CC="gcc -m32" LDFLAGS="-L/lib32 -L/usr/lib32
-Lpwd/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,$PY32_DIR/lib"
--prefix=$PY32_DIR --enable-shared
But when I tried to execute make, I got the following:
craig@craig-VirtualBox:~/Python-2.7.9$ make
gcc -m32 -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g  -O3
-Wall -Wstrict-prototypes  -I. -IInclude -I./Include  -fPIC
-DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
In file included from Include/Python.h:8:0,
from ./Modules/python.c:3:
./pyconfig.h:1253:19: error: two or more data types in declaration specifiers
#define socklen_t int
^
In file included from Include/Python.h:58:0,
from ./Modules/python.c:3:
Include/pyport.h:671:67: warning: ‘struct winsize’ declared inside
parameter list [enabled by default]
extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
^
Include/pyport.h:671:67: warning: its scope is only this definition or
declaration, which is probably not what you want [enabled by default]
Include/pyport.h:672:62: warning: ‘struct winsize’ declared inside
parameter list [enabled by default]
extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
^
make: *** [Modules/python.o] Error 1
craig@craig-VirtualBox:~/Python-2.7.9$
On Sun, Feb 21, 2016 at 6:13 PM, Luke Darnell<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson What were your problems
exactly?
Hard to help without some specific error messages or problems.
Posting you command line output is a good start.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-186941000
.

Craig,
Pretty sure you've already got python installed.
Try running python at the command line.
Just type "python"
Luke
On 22 Feb 2016, at 1:02 PM, Craig Swanson <notifications<EMAIL_ADDRESS>wrote:
Luke,
Thank you so much for your quick reply. Would you prefer that I converse
with you directly through email or through the forum?
I am using Ubuntu 14.04 running on VirtualBox on my Windows 7 laptop. I
have Modelsim DE 10.3 installed which I believe is a 32 bit program.
I am getting an error when I try to execute "make". Here is a history of
what I am doing. If you want to go straight to my error, scroll to the
bottom of this email.
I am trying to follow your Quickstart Guide:
craig@craig-VirtualBox:~$ sudo apt-get install git make gcc g++ swig
python-dev
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
gcc is already the newest version.
make is already the newest version.
python-dev is already the newest version.
swig is already the newest version.
git is already the newest version.
The following packages were automatically installed and are no longer
required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
sudo apt-get install libx32gcc1 gcc-4.8-multilib lib32stdc++-4.8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.8-multilib is already the newest version.
lib32stdc++-4.8-dev is already the newest version.
libx32gcc1 is already the newest version.
The following packages were automatically installed and are no longer
required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
--2016-02-21 20:56:06--
https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
Resolving www.python.orghttp://www.python.org (www.python.orghttp://www.python.org)... <IP_ADDRESS>
Connecting to www.python.orghttp://www.python.org (www.python.orghttp://www.python.org)|<IP_ADDRESS>|:443...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 16657930 (16M) [application/octet-stream]
Saving to: 'Python-2.7.9.tgz.1'
100%[==================================================================================================>]
16,657,930 8.31MB/s in 1.9s
2016-02-21 20:56:08 (8.31 MB/s) - 'Python-2.7.9.tgz.1' saved
[16657930/16657930]
These next commands had no errors:
$> wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz$> tar
xvf Python-2.7.9.tgz$> cd Python-2.7.9$> export PY32_DIR=/opt/pym32
$> ./configure CC="gcc -m32" LDFLAGS="-L/lib32 -L/usr/lib32
-Lpwd/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,$PY32_DIR/lib"
--prefix=$PY32_DIR --enable-shared
But when I tried to execute make, I got the following:
craig@craig-VirtualBox:~/Python-2.7.9$ make
gcc -m32 -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -I. -IInclude -I./Include -fPIC
-DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
In file included from Include/Python.h:8:0,
from ./Modules/python.c:3:
./pyconfig.h:1253:19: error: two or more data types in declaration specifiers
#define socklen_t int
^
In file included from Include/Python.h:58:0,
from ./Modules/python.c:3:
Include/pyport.h:671:67: warning: 'struct winsize' declared inside
parameter list [enabled by default]
extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
^
Include/pyport.h:671:67: warning: its scope is only this definition or
declaration, which is probably not what you want [enabled by default]
Include/pyport.h:672:62: warning: 'struct winsize' declared inside
parameter list [enabled by default]
extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
^
make: *** [Modules/python.o] Error 1
craig@craig-VirtualBox:~/Python-2.7.9$
On Sun, Feb 21, 2016 at 6:13 PM, Luke Darnell <notifications<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson What were your problems
exactly?
Hard to help without some specific error messages or problems.
Posting you command line output is a good start.

Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-186941000
.

Reply to this email directly or view it on GitHubhttps://github.com/potentialventures/cocotb/issues/137#issuecomment-186968901.

I have experimented with using Modelsim on Travis-CI using their Ubuntu 14.04 Trusty infrastructure.
To use Cocotb from a fresh OS install is relatively straightforward using the system package manager to install necessary 32-bit libraries:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386

# Then to run Cocotb:
make SIM=modelsim ARCH=i686

Chris,
Thank you so much for you quick reply and a big reason why I want to use
cocotb is because of your and Luke's help.
I ran your commands above and here is the error I am receiving:
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
gcc -m32 -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g  -O3 -Wall
-Wstrict-prototypes  -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
In file included from Include/Python.h:8:0,
from ./Modules/python.c:3:
./pyconfig.h:1253:19: error: two or more data types in declaration
specifiers
#define socklen_t int
^
In file included from Include/Python.h:58:0,
from ./Modules/python.c:3:
Include/pyport.h:671:67: warning: ‘struct winsize’ declared inside
parameter list [enabled by default]
extern int openpty(int *, int *, char *, struct termios *, struct winsize
*);
^
Include/pyport.h:671:67: warning: its scope is only this definition or
declaration, which is probably not what you want [enabled by default]
Include/pyport.h:672:62: warning: ‘struct winsize’ declared inside
parameter list [enabled by default]
extern pid_t forkpty(int *, char *, struct termios *, struct winsize *);
^
make: *** [Modules/python.o] Error 1
On Mon, Feb 22, 2016 at 5:50 AM, Chris Higgs<EMAIL_ADDRESS>wrote:

I have experimented with using Modelsim on Travis-CI using their Ubuntu
14.04 Trusty infrastructure.
To use Cocotb from a fresh OS install is relatively straightforward using
the system package manager to install necessary 32-bit libraries:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386
Then to run Cocotb:
make SIM=modelsim ARCH=i686
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187120965
.

@cfswanson, you'll need to run make from the cocotb checkout,

Stuart,
I am not sure what that means. Could you be a little bit more explicit regarding your answer?
Thank you so much for your help,
Craig
Sent from my iPhone

On Feb 22, 2016, at 9:53 AM, Stuart Hodgson<EMAIL_ADDRESS>wrote:
@cfswanson, you'll need to run make from the cocotb checkout,
—
Reply to this email directly or view it on GitHub.

@cfswanson
'''
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
'''
The above seems like you are running the make command from the directory you unzipped python to.

Stuart,
It looks like I am making good progress, thanks to you.  Here are my next
set of errors:
craig@craig-VirtualBox:~/cocotb (master)$ make SIM=modelsim ARCH=i686
make -k -C tests
make[1]: Entering directory /home/craig/cocotb/tests' cd test_cases/issue_120 && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_120'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_120' make[1]: *** [issue_120] Error 2 cd test_cases/issue_134 && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_134'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_134' make[1]: *** [issue_134] Error 2 cd test_cases/issue_142 && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_142'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_142' make[1]: *** [issue_142] Error 2 cd test_cases/issue_253 && make make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_253'
Skipping issue_253 only runs on icarus
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_253' cd test_cases/issue_330 && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_330'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_330' make[1]: *** [issue_330] Error 2 cd test_cases/issue_348 && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_348'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_348' make[1]: *** [issue_348] Error 2 cd test_cases/test_avalon && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_avalon'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_avalon' make[1]: *** [test_avalon] Error 2 cd test_cases/test_closedown && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_closedown'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_closedown' make[1]: *** [test_closedown] Error 2 cd test_cases/test_cocotb && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_cocotb'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_cocotb' make[1]: *** [test_cocotb] Error 2 cd test_cases/test_configuration && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_configuration'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_configuration' make[1]: *** [test_configuration] Error 2 cd test_cases/test_discovery && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_discovery'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_discovery' make[1]: *** [test_discovery] Error 2 cd test_cases/test_exit_error && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_exit_error'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_exit_error' make[1]: *** [test_exit_error] Error 2 cd test_cases/test_external && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_external'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_external' make[1]: *** [test_external] Error 2 cd test_cases/test_iteration_mixedlang && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_iteration_mixedlang'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_iteration_mixedlang' make[1]: *** [test_iteration_mixedlang] Error 2 cd test_cases/test_iteration_verilog && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_iteration_verilog'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_iteration_verilog' make[1]: *** [test_iteration_verilog] Error 2 cd test_cases/test_iteration_vhdl && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_iteration_vhdl'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_iteration_vhdl' make[1]: *** [test_iteration_vhdl] Error 2 cd test_cases/test_plusargs && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_plusargs'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_plusargs' make[1]: *** [test_plusargs] Error 2 cd test_cases/test_verilog_access && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_verilog_access'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_verilog_access' make[1]: *** [test_verilog_access] Error 2 cd test_cases/test_vhdl_access && make dirname: missing operand Try 'dirname --help' for more information. make[2]: Entering directory /home/craig/cocotb/tests/test_cases/test_vhdl_access'
/home/craig/cocotb/makefiles/simulators/Makefile.questa:94: *** "Directory
containing ModelSim binaries must be included in system path".  Stop.
make[2]: Leaving directory
/home/craig/cocotb/tests/test_cases/test_vhdl_access' make[1]: *** [test_vhdl_access] Error 2 make[1]: Target all' not remade because of errors.
make[1]: Leaving directory `/home/craig/cocotb/tests'
make: *** [do_tests] Error 2
craig@craig-VirtualBox:~/cocotb (master)$
On Mon, Feb 22, 2016 at 11:00 AM, Stuart Hodgson<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson
'''
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
'''
The above seems like you are running the make command from the directory
you unzipped python to.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187244143
.

Stuart,
In my ~/.bashrc file, I have the following referenced:
export PATH=/opt/mentor/modelsim/modeltech/bin:$PATH
Why doesn't line 94 see my modelsim binary path?
Craig
On Mon, Feb 22, 2016 at 11:00 AM, Stuart Hodgson<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson
'''
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
'''
The above seems like you are running the make command from the directory
you unzipped python to.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187244143
.

Stuart,
I fixed the Modelsim path issue, and now I am running into this error:
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lcocotb
Here is the output from the terminal, but I didn't capture the beginning
because it was too large.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_mixedlang'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_mixedlang'
make[1]: *** [test_iteration_mixedlang] Error 2
cd test_cases/test_iteration_verilog && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_iteration_verilog' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/test_iteration_verilog'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_logging.o gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o  -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_verilog'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_verilog'
make[1]: *** [test_iteration_verilog] Error 2
cd test_cases/test_iteration_vhdl && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_iteration_vhdl' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/test_iteration_vhdl'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_logging.o gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o  -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_vhdl'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_vhdl'
make[1]: *** [test_iteration_vhdl] Error 2
cd test_cases/test_plusargs && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_plusargs' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/test_plusargs'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_logging.o gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o  -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_plusargs'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_plusargs'
make[1]: *** [test_plusargs] Error 2
cd test_cases/test_verilog_access && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_verilog_access' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/test_verilog_access'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_logging.o gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o  -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_verilog_access'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_verilog_access'
make[1]: *** [test_verilog_access] Error 2
cd test_cases/test_vhdl_access && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_vhdl_access' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/test_vhdl_access'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_logging.o gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o  -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/test_vhdl_access'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_vhdl_access'
make[1]: *** [test_vhdl_access] Error 2
make[1]: Target all' not remade because of errors. make[1]: Leaving directory /home/craig/cocotb/tests'
make: *** [do_tests] Error 2
On Mon, Feb 22, 2016 at 11:00 AM, Stuart Hodgson<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson
'''
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
'''
The above seems like you are running the make command from the directory
you unzipped python to.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187244143
.

Luke,
So the errors I sent to Stewart shown below, are these Modelsim errors that
I need to call Modelsim for help with, or is this related to the
communications between Modelsim and cocotb?  What can I do to try to
resolve this?
Craig
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_iteration_mixedlang'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_mixedlang'
make[1]: *** [test_iteration_mixedlang] Error 2
cd test_cases/test_iteration_verilog && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_iteration_verilog' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/
test_cases/test_iteration_verilog'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o /home/craig/cocotb/build/obj/i686/gpi_logging.o
gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/ libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_iteration_verilog'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_verilog'
make[1]: *** [test_iteration_verilog] Error 2
cd test_cases/test_iteration_vhdl && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_iteration_vhdl' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/
test_cases/test_iteration_vhdl'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o /home/craig/cocotb/build/obj/i686/gpi_logging.o
gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/ libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_iteration_vhdl'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_iteration_vhdl'
make[1]: *** [test_iteration_vhdl] Error 2
cd test_cases/test_plusargs && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_plusargs' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/
test_cases/test_plusargs'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o /home/craig/cocotb/build/obj/i686/gpi_logging.o
gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/ libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_plusargs'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_plusargs'
make[1]: *** [test_plusargs] Error 2
cd test_cases/test_verilog_access && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_verilog_access' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/
test_cases/test_verilog_access'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o /home/craig/cocotb/build/obj/i686/gpi_logging.o
gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/ libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_verilog_access'
make[2]: *** [sim] Error 2
make[2]: Target all' not remade because of errors. make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/test_verilog_access'
make[1]: *** [test_verilog_access] Error 2
cd test_cases/test_vhdl_access && make
make[2]: Entering directory
/home/craig/cocotb/tests/test_cases/test_vhdl_access' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/
test_cases/test_vhdl_access'
make -C /home/craig/cocotb/lib/gpi_log
make[4]: Entering directory `/home/craig/cocotb/lib/gpi_log'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DFILTER -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o /home/craig/cocotb/build/obj/i686/gpi_logging.o
gpi_logging.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_logging.c:30:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_logging.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/gpi_log'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpilog.so] Error 2
make -C /home/craig/cocotb/lib/embed
make[4]: Entering directory `/home/craig/cocotb/lib/embed'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return -DPYTHON_SO_LIB=libpython2.7.so -c
-I/home/craig/cocotb/include -I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/gpi_embed.o gpi_embed.c
In file included from /usr/include/python2.7/Python.h:8:0,
from gpi_embed.c:32:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/gpi_embed.o] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/embed'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libcocotb.so] Error 2
make -C /home/craig/cocotb/lib/gpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/gpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -DLIB_EXT=so -DSINGLETON_HANDLES -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libgpi.so /home/craig/cocotb/build/obj/i686/GpiCbHdl.o /home/craig/cocotb/build/obj/i686/GpiCommon.o -lcocotbutils -lgpilog -lcocotb -lstdc++ -L/home/craig/cocotb/build/ libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lcocotb collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/gpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libgpi.so] Error 2 make -C /home/craig/cocotb/lib/simulator make[4]: Entering directory /home/craig/cocotb/lib/simulator'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -Wstrict-prototypes
-Waggregate-return  -c -I/home/craig/cocotb/include
-I/usr/include/python2.7  -o
/home/craig/cocotb/build/obj/i686/simulatormodule.o
simulatormodule.c
In file included from /usr/include/python2.7/Python.h:8:0,
from simulatormodule.h:33,
from simulatormodule.c:40:
/usr/include/python2.7/pyconfig.h:7:49: fatal error:
i386-linux-gnu/python2.7/pyconfig.h: No such file or directory
include <i386-linux-gnu/python2.7/pyconfig.h>
                                             ^

compilation terminated.
make[4]: *** [/home/craig/cocotb/build/obj/i686/simulatormodule.o] Error 1
make[4]: Target /home/craig/cocotb/build/libs/i686/simulator.so' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/simulator'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libsim.so] Error 2
make -C /home/craig/cocotb/lib/vpi EXTRA_LIBS= EXTRA_LIBDIRS=
make[4]: Entering directory /home/craig/cocotb/lib/vpi' gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall -Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DVPI_CHECKING -Wstrict-prototypes -Waggregate-return -shared -Xlinker -L/usr/lib -o /home/craig/cocotb/build/libs/i686/libvpi.so /home/craig/cocotb/build/obj/i686/VpiImpl.o /home/craig/cocotb/build/obj/i686/VpiCbHdl.o   -lgpilog -lgpi -lstdc++ -L/home/craig/cocotb/build/libs/i686 /usr/bin/ld: cannot find -lgpilog /usr/bin/ld: cannot find -lgpi collect2: error: ld returned 1 exit status make[4]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 1 make[4]: Target all' not remade because of errors.
make[4]: Leaving directory /home/craig/cocotb/lib/vpi' make[3]: *** [/home/craig/cocotb/build/libs/i686/libvpi.so] Error 2 make -C /home/craig/cocotb/lib/fli EXTRA_LIBS= EXTRA_LIBDIRS= make[4]: Entering directory /home/craig/cocotb/lib/fli'
gcc -m32 -Werror -Wcast-qual -Wcast-align -Wwrite-strings -Wall
-Wno-unused-parameter -fno-common -g -DDEBUG -fpic -DFLI_CHECKING
-DUSE_CACHE -Wstrict-prototypes -Waggregate-return -shared -Xlinker
-L/usr/lib -o /home/craig/cocotb/build/libs/i686/libfli.so
/home/craig/cocotb/build/obj/i686/FliImpl.o
/home/craig/cocotb/build/obj/i686/FliCbHdl.o
/home/craig/cocotb/build/obj/i686/FliObjHdl.o   -lgpilog -lgpi -lstdc++
-L/home/craig/cocotb/build/libs/i686
/usr/bin/ld: cannot find -lgpilog
/usr/bin/ld: cannot find -lgpi
collect2: error: ld returned 1 exit status
make[4]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 1
make[4]: Target all' not remade because of errors. make[4]: Leaving directory /home/craig/cocotb/lib/fli'
make[3]: *** [/home/craig/cocotb/build/libs/i686/libfli.so] Error 2
make[3]: Target results.xml' not remade because of errors. make[3]: Leaving directory /home/craig/cocotb/tests/
test_cases/test_vhdl_access'
make[2]: *** [sim] Error 2
make[2]: Target `all' not remade because of errors.
On Sun, Feb 21, 2016 at 6:13 PM, Luke Darnell<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson What were your problems
exactly?
Hard to help without some specific error messages or problems.
Posting you command line output is a good start.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-186941000
.

Stewart,
Here is my output if I run ldd which should show my dependencies:
craig@craig-VirtualBox:~/cocotb (master)$ ldd
/home/craig/cocotb/build/libs/x86_64/libcocotb.so
linux-vdso.so.1 =>  (0x00007fffa61f2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f62a820c000)
libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
(0x00007f62a7ca8000)
libgpilog.so => not found
libcocotbutils.so => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f62a78e3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f62a862e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f62a76ca000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f62a74c6000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f62a72c3000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f62a6fbd000)
Craig
On Mon, Feb 22, 2016 at 11:00 AM, Stuart Hodgson<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson
'''
craig@craig-VirtualBox:~/Python-2.7.9$ make SIM=modelsim ARCH=i686
'''
The above seems like you are running the make command from the directory
you unzipped python to.
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187244143
.

Chris,
When I run "make=Modelsim", I get the following error:
** Error: (vsim-125) The shared library
/home/craig/cocotb/build/libs/x86_64/libvpi.so being loaded was built on a
64-bit machine. A 64-bit shared library cannot be loaded in a 32-bit
simulation. Please use compatible machines to build and load the library
** Error (suppressible): (vsim-3197) Load of
"/home/craig/cocotb/build/libs/x86_64/libvpi.so" failed:
/home/craig/cocotb/build/libs/x86_64/libvpi.so: wrong ELF class: ELFCLASS64.
** Error (suppressible): (vsim-PLI-3002) Failed to load PLI object file
"/home/craig/cocotb/build/libs/x86_64/libvpi.so".
Craig
On Mon, Feb 22, 2016 at 5:50 AM, Chris Higgs<EMAIL_ADDRESS>wrote:

I have experimented with using Modelsim on Travis-CI using their Ubuntu
14.04 Trusty infrastructure.
To use Cocotb from a fresh OS install is relatively straightforward using
the system package manager to install necessary 32-bit libraries:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y gcc-multilib g++-multilib lib32z1 lib32stdc++6 lib32gcc1 expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386
Then to run Cocotb:
make SIM=modelsim ARCH=i686
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187120965
.

@cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when you call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems to be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart

Stuart,
Thank you again for your support.  I am anxious to get through this phase
so any help you can give is much appreciated.
Here are my results:
craig@craig-VirtualBox:~/cocotb (master)$ sudo apt-get install
python2.7-dev:i386
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev:i386 : Depends: python2.7:i386 (= 2.7.6-8ubuntu0.2) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.
On Mon, Feb 22, 2016 at 8:47 PM, Stuart Hodgson<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when you
call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems to
be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart
—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187471070
.

Following the clues from the command outputs will usually give you some clues.
In this case, apt needs to install python2.7:i386 before you can install the package that gives you the Python headers
(python2.7:i386).
What does "sudo apt-get install python2.7:i386" tell you?
Luke
On 23 Feb 2016, at 2:10 PM, Craig Swanson <notifications<EMAIL_ADDRESS>wrote:
Stuart,
Thank you again for your support. I am anxious to get through this phase
so any help you can give is much appreciated.
Here are my results:
craig@craig-VirtualBox:~/cocotb (master)$ sudo apt-get install
python2.7-dev:i386
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev:i386 : Depends: python2.7:i386 (= 2.7.6-8ubuntu0.2) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.
On Mon, Feb 22, 2016 at 8:47 PM, Stuart Hodgson <notifications<EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when you
call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems to
be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart

Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187471070
.

Reply to this email directly or view it on GitHubhttps://github.com/potentialventures/cocotb/issues/137#issuecomment-187501545.

Luke,
Sorry for being so brain dead.   I appreciate your feedback.
So I cleaned up my repository with the following commands:
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install python2.7:i386
sudo apt-get python2.7-dev:i386
then re-ran the make file and saw it was calling "python" so I did the
following:
/usr/bin/ sudo ln -s python2.7 python
Now when I run it, I get the following error:
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
Here is the short history on my terminal screen:
craig@craig-VirtualBox:~/cocotb (master)$ make SIM=modelsim ARCH=i686
make -k -C tests
make[1]: Entering directory /home/craig/cocotb/tests' cd test_cases/issue_120 && make make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_120'
make results.xml
make[3]: Entering directory `/home/craig/cocotb/tests/test_cases/issue_120'
cd sim_build &&
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
MODULE=issue_120 TESTCASE= TOPLEVEL=sample_module
GPI_EXTRA= TOPLEVEL_LANG=verilog
PYTHONPATH=/home/craig/cocotb/build/libs/i686:/home/craig/cocotb:/home/craig/cocotb/tests/test_cases/issue_120:

vsim -c -do runsim.do 2>&1 | tee sim.log
Reading pref.tcl
10.4c
do runsim.do
Model Technology ModelSim DE vlog 10.4c Compiler 2015.07 Jul 19 2015
Start time: 11:19:53 on Feb 23,2016
vlog -work work -timescale 1ns/100ps -mfcu "+acc=rmb" -sv
/home/craig/cocotb/tests/test_cases/issue_120/../../../tests/designs/sample_module/sample_module.v
-- Compiling package sample_module_v_unit
-- Compiling module sample_module

Top level modules:
sample_module
End time: 11:19:53 on Feb 23,2016, Elapsed time: 0:00:00
Errors: 0, Warnings: 0
vsim -onfinish exit -pli "libvpi.so" work.sample_module
Start time: 11:19:53 on Feb 23,2016
//  ModelSim DE 10.4c Jul 19 2015 Linux 3.16.0-45-generic
//
//  Copyright 1991-2015 Mentor Graphics Corporation
//  All Rights Reserved.

//
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
No such file or directory. (errno = ENOENT)
Loading sv_std.std
Loading work.sample_module_v_unit
Loading work.sample_module
Loading /home/craig/cocotb/build/libs/i686/libvpi.so
** Error (suppressible): (vsim-3197) Load of
"/home/craig/cocotb/build/libs/i686/libvpi.so" failed:
/home/craig/cocotb/build/libs/i686/libgpilog.so: undefined symbol:
_Py_TrueStruct.
** Error (suppressible): (vsim-PLI-3002) Failed to load PLI object file
"/home/craig/cocotb/build/libs/i686/libvpi.so".
Time: 0 ps  Iteration: 0  Root: /
Error loading design
Error loading design
On Tue, Feb 23, 2016 at 6:20 AM, Luke Darnell<EMAIL_ADDRESS>wrote:

Following the clues from the command outputs will usually give you some
clues.
In this case, apt needs to install python2.7:i386 before you can install
the package that gives you the Python headers
(python2.7:i386).
What does "sudo apt-get install python2.7:i386" tell you?
Luke
On 23 Feb 2016, at 2:10 PM, Craig Swanson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Stuart,
Thank you again for your support. I am anxious to get through this phase
so any help you can give is much appreciated.
Here are my results:
craig@craig-VirtualBox:~/cocotb (master)$ sudo apt-get install
python2.7-dev:i386
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev:i386 : Depends: python2.7:i386 (= 2.7.6-8ubuntu0.2) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.
On Mon, Feb 22, 2016 at 8:47 PM, Stuart Hodgson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when you
call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems to
be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart

Reply to this email directly or view it on GitHub
<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187471070
.

Reply to this email directly or view it on GitHub<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187501545

.

—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187659117
.

Craig,
My guess is that the python lib dir isn't successfully being added to LD_LIBRARY_PATH.
See the empty 2nd entry:
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
The makefile fragment that sets this is in cocotb/makefiles/Makefile.pylib.Linux
You'll need to do some debug and figure out why PYTHON_LIBDIR isn't being set.
Can you try running this command:
python -c 'from future import print_function; from distutils import sysconfig; print(sysconfig.get_config_var("LIBDIR"))'
Luke

From: Craig Swanson<EMAIL_ADDRESS>Sent: Tuesday, 23 February 2016 4:34 PM
To: potentialventures/cocotb
Cc: Luke Darnell
Subject: Re: [cocotb] Modelsim as a simulator in 64-bit platform (#137)
Luke,
Sorry for being so brain dead. I appreciate your feedback.
So I cleaned up my repository with the following commands:
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install python2.7:i386
sudo apt-get python2.7-dev:i386
then re-ran the make file and saw it was calling "python" so I did the
following:
/usr/bin/ sudo ln -s python2.7 python
Now when I run it, I get the following error:
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
Here is the short history on my terminal screen:
craig@craig-VirtualBox:~/cocotb (master)$ make SIM=modelsim ARCH=i686
make -k -C tests
make[1]: Entering directory /home/craig/cocotb/tests' cd test_cases/issue_120 && make make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_120'
make results.xml
make[3]: Entering directory `/home/craig/cocotb/tests/test_cases/issue_120'
cd sim_build &&
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
MODULE=issue_120 TESTCASE= TOPLEVEL=sample_module
GPI_EXTRA= TOPLEVEL_LANG=verilog
PYTHONPATH=/home/craig/cocotb/build/libs/i686:/home/craig/cocotb:/home/craig/cocotb/tests/test_cases/issue_120:

vsim -c -do runsim.do 2>&1 | tee sim.log
Reading pref.tcl
10.4c
do runsim.do
Model Technology ModelSim DE vlog 10.4c Compiler 2015.07 Jul 19 2015
Start time: 11:19:53 on Feb 23,2016
vlog -work work -timescale 1ns/100ps -mfcu "+acc=rmb" -sv
/home/craig/cocotb/tests/test_cases/issue_120/../../../tests/designs/sample_module/sample_module.v
-- Compiling package sample_module_v_unit
-- Compiling module sample_module

Top level modules:
sample_module
End time: 11:19:53 on Feb 23,2016, Elapsed time: 0:00:00
Errors: 0, Warnings: 0
vsim -onfinish exit -pli "libvpi.so" work.sample_module
Start time: 11:19:53 on Feb 23,2016
// ModelSim DE 10.4c Jul 19 2015 Linux 3.16.0-45-generic
//
// Copyright 1991-2015 Mentor Graphics Corporation
// All Rights Reserved.

//
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
No such file or directory. (errno = ENOENT)
Loading sv_std.std
Loading work.sample_module_v_unit
Loading work.sample_module
Loading /home/craig/cocotb/build/libs/i686/libvpi.so
** Error (suppressible): (vsim-3197) Load of
"/home/craig/cocotb/build/libs/i686/libvpi.so" failed:
/home/craig/cocotb/build/libs/i686/libgpilog.so: undefined symbol:
_Py_TrueStruct.
** Error (suppressible): (vsim-PLI-3002) Failed to load PLI object file
"/home/craig/cocotb/build/libs/i686/libvpi.so".
Time: 0 ps Iteration: 0 Root: /
Error loading design
Error loading design
On Tue, Feb 23, 2016 at 6:20 AM, Luke Darnell<EMAIL_ADDRESS>wrote:

Following the clues from the command outputs will usually give you some
clues.
In this case, apt needs to install python2.7:i386 before you can install
the package that gives you the Python headers
(python2.7:i386).
What does "sudo apt-get install python2.7:i386" tell you?
Luke
On 23 Feb 2016, at 2:10 PM, Craig Swanson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Stuart,
Thank you again for your support. I am anxious to get through this phase
so any help you can give is much appreciated.
Here are my results:
craig@craig-VirtualBox:~/cocotb (master)$ sudo apt-get install
python2.7-dev:i386
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev:i386 : Depends: python2.7:i386 (= 2.7.6-8ubuntu0.2) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.
On Mon, Feb 22, 2016 at 8:47 PM, Stuart Hodgson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when you
call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems to
be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart

Reply to this email directly or view it on GitHub
<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187471070
.

Reply to this email directly or view it on GitHub<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187501545

.

Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187659117
.

Reply to this email directly or view it on GitHubhttps://github.com/potentialventures/cocotb/issues/137#issuecomment-187777221.

Luke,
I am slowly getting more and more understanding of what may be going
wrong.  I don't understand why I don't have a gcc-4.7.4-linux directory
installed directly under modelsim_dlx.
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.LqQJZo' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
No such file or directory. (errno = ENOENT)
Do you have any idea why I don't have gcc-4.7.4-linux installed in my
modelsim directory?
Here is what the Mentor Applications engineer just sent me:
Hello Craig,
Yes, for 10.4c, Modelsim / Questa does use gcc 4.7.4. It is bundled with
Modelsim (gcc-4.7.4-linux folder in the Modelsim install directory)
May be a system call has failed somewhere in the PLI.
Can you send me the full transcript and any log file that was generated ?
If you can send me a testcase, or a code snippet for the PLI code, I can
try to reproduce the issue here.
You can refer the C debug help in the QuestaSim User’s manual
(questa_sim_user.pdf)
located in your <MODELSIM_INSTALL>/docs/pdfdocs directory.
Regards,
Ameya
On Wed, Feb 24, 2016 at 8:52 PM, Luke Darnell<EMAIL_ADDRESS>wrote:

Craig,
My guess is that the python lib dir isn't successfully being added to
LD_LIBRARY_PATH.
See the empty 2nd entry:
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
The makefile fragment that sets this is in
cocotb/makefiles/Makefile.pylib.Linux
You'll need to do some debug and figure out why PYTHON_LIBDIR isn't being
set.
Can you try running this command:
python -c 'from future import print_function; from distutils import
sysconfig; print(sysconfig.get_config_var("LIBDIR"))'
Luke

From: Craig Swanson<EMAIL_ADDRESS>Sent: Tuesday, 23 February 2016 4:34 PM
To: potentialventures/cocotb
Cc: Luke Darnell
Subject: Re: [cocotb] Modelsim as a simulator in 64-bit platform (#137)
Luke,
Sorry for being so brain dead. I appreciate your feedback.
So I cleaned up my repository with the following commands:
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install python2.7:i386
sudo apt-get python2.7-dev:i386
then re-ran the make file and saw it was calling "python" so I did the
following:
/usr/bin/ sudo ln -s python2.7 python
Now when I run it, I get the following error:
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
Here is the short history on my terminal screen:
craig@craig-VirtualBox:~/cocotb (master)$ make SIM=modelsim ARCH=i686
make -k -C tests
make[1]: Entering directory /home/craig/cocotb/tests' cd test_cases/issue_120 && make make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_120'
make results.xml
make[3]: Entering directory `/home/craig/cocotb/tests/test_cases/issue_120'
cd sim_build &&
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
MODULE=issue_120 TESTCASE= TOPLEVEL=sample_module
GPI_EXTRA= TOPLEVEL_LANG=verilog
PYTHONPATH=/home/craig/cocotb/build/libs/i686:/home/craig/cocotb:/home/craig/cocotb/tests/test_cases/issue_120:

vsim -c -do runsim.do 2>&1 | tee sim.log
Reading pref.tcl
10.4c
do runsim.do
Model Technology ModelSim DE vlog 10.4c Compiler 2015.07 Jul 19 2015
Start time: 11:19:53 on Feb 23,2016
vlog -work work -timescale 1ns/100ps -mfcu "+acc=rmb" -sv
/home/craig/cocotb/tests/test_cases/issue_120/../../../tests/designs/sample_module/sample_module.v
-- Compiling package sample_module_v_unit
-- Compiling module sample_module

Top level modules:
sample_module
End time: 11:19:53 on Feb 23,2016, Elapsed time: 0:00:00
Errors: 0, Warnings: 0
vsim -onfinish exit -pli "libvpi.so" work.sample_module
Start time: 11:19:53 on Feb 23,2016
// ModelSim DE 10.4c Jul 19 2015 Linux 3.16.0-45-generic
//
// Copyright 1991-2015 Mentor Graphics Corporation
// All Rights Reserved.

//
Error Message: (vsim-50) A call to
system("/opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt"
"_Py_TrueStruct" >'/tmp/questatmp.U7imPr' 2>&1) returned error code '127'.
[Probably a bad shell].
The logfile contains the following messages:
sh: 1: /opt/mentor/modelsim/modelsim_dlx/gcc-4.7.4-linux/bin/c++filt: not
found
No such file or directory. (errno = ENOENT)
Loading sv_std.std
Loading work.sample_module_v_unit
Loading work.sample_module
Loading /home/craig/cocotb/build/libs/i686/libvpi.so
** Error (suppressible): (vsim-3197) Load of
"/home/craig/cocotb/build/libs/i686/libvpi.so" failed:
/home/craig/cocotb/build/libs/i686/libgpilog.so: undefined symbol:
_Py_TrueStruct.
** Error (suppressible): (vsim-PLI-3002) Failed to load PLI object file
"/home/craig/cocotb/build/libs/i686/libvpi.so".
Time: 0 ps Iteration: 0 Root: /
Error loading design
Error loading design
On Tue, Feb 23, 2016 at 6:20 AM, Luke Darnell<EMAIL_ADDRESS>wrote:

Following the clues from the command outputs will usually give you some
clues.
In this case, apt needs to install python2.7:i386 before you can install
the package that gives you the Python headers
(python2.7:i386).
What does "sudo apt-get install python2.7:i386" tell you?
Luke
On 23 Feb 2016, at 2:10 PM, Craig Swanson<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Stuart,
Thank you again for your support. I am anxious to get through this phase
so any help you can give is much appreciated.
Here are my results:
craig@craig-VirtualBox:~/cocotb (master)$ sudo apt-get install
python2.7-dev:i386
[sudo] password for craig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev:i386 : Depends: python2.7:i386 (= 2.7.6-8ubuntu0.2) but it
is not going to be installed
E: Unable to correct problems, you have held broken packages.
On Mon, Feb 22, 2016 at 8:47 PM, Stuart Hodgson <
<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:

@cfswanson https://github.com/cfswanson,
Since modelsim in your case is 32bit you must have ARCH=i686 set when
you
call make, you where doing this earlier.
The error you are seeing when running make while having ARCH set seems
to
be because the python header file is not installed
$> sudo apt-get install python2.7-dev:i386
Stuart

Reply to this email directly or view it on GitHub
<

https://github.com/potentialventures/cocotb/issues/137#issuecomment-187471070

.

Reply to this email directly or view it on GitHub<

https://github.com/potentialventures/cocotb/issues/137#issuecomment-187501545

.

Reply to this email directly or view it on GitHub
<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187659117
.

Reply to this email directly or view it on GitHub<
https://github.com/potentialventures/cocotb/issues/137#issuecomment-187777221

.

—
Reply to this email directly or view it on GitHub
https://github.com/potentialventures/cocotb/issues/137#issuecomment-188557566
.

Luke,
I think I just had a HUGE breakthrough.  I decided to run "make clean".
Then I ran "make SIM=modelsim ARCH=i686" and now I think it works!
Please look at the output from my terminal window and tell me if this is
correct.

//
Loading sv_std.std
Loading work.sample_module_v_unit
Loading work.sample_module
Loading /home/craig/cocotb/build/libs/i686/libvpi.so
-.--ns INFO     cocotb.gpi
GpiCommon.cpp:91   in gpi_print_registered_impl       VPI registered
0.00ns INFO     cocotb.gpi
gpi_embed.c:248  in embed_sim_init                  Running on ModelSim DE
version 10.4c 2015.07
0.00ns INFO     cocotb.gpi
gpi_embed.c:249  in embed_sim_init                  Python interpreter
initialised and cocotb loaded!
0.00ns INFO     cocotb
init.py:115  in _initialise_testbench           Running tests with
Cocotb v1.0 from /home/craig/cocotb
0.00ns INFO     cocotb
init.py:131  in _initialise_testbench           Seeding Python random
module with<PHONE_NUMBER>
0.00ns INFO     cocotb.regression
regression.py:161  in initialise                      Found test
issue_120.issue_120_scheduling
0.00ns INFO     cocotb.regression
regression.py:262  in execute                         Running test 1/1:
issue_120_scheduling
0.00ns INFO     ..e.issue_120_scheduling.0x57776a4c
decorators.py:189  in send                            Starting test:
"issue_120_scheduling"

Description: None
15.00ns INFO     cocotb.regression
regression.py:209  in handle_result                   Test Passed:
issue_120_scheduling
15.00ns INFO     cocotb.regression
regression.py:170  in tear_down                       Passed 1 tests (0
skipped)
15.00ns INFO     cocotb.regression
regression.py:176  in tear_down                       Shutting down...
** Note: $finish    : UNKNOWN(-1)
Time: 15001 ps  Iteration: 0  Instance: /sample_module
End time: 22:03:27 on Feb 24,2016, Elapsed time: 0:00:03
Errors: 0, Warnings: 0
make[3]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_120' make[2]: Leaving directory /home/craig/cocotb/tests/test_cases/issue_120'
cd test_cases/issue_134 && make
make[2]: Entering directory /home/craig/cocotb/tests/test_cases/issue_134' make results.xml make[3]: Entering directory /home/craig/cocotb/tests/test_cases/issue_134'
cd sim_build &&
LD_LIBRARY_PATH=/home/craig/cocotb/build/libs/i686::/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib:/usr/lib
MODULE=test_reals,test_integers TESTCASE= TOPLEVEL=sample_module
GPI_EXTRA= TOPLEVEL_LANG=verilog
PYTHONPATH=/home/craig/cocotb/build/libs/i686:/home/craig/cocotb:/home/craig/cocotb/tests/test_cases/issue_134:

vsim -c -do runsim.do 2>&1 | tee sim.log
Reading pref.tcl
10.4c
do runsim.do
Model Technology ModelSim DE vlog 10.4c Compiler 2015.07 Jul 19 2015
Start time: 22:03:30 on Feb 24,2016
vlog -work work -timescale 1ns/100ps -mfcu "+acc=rmb" -sv
/home/craig/cocotb/tests/test_cases/issue_134/../../../tests/designs/sample_module/sample_module.v
-- Compiling package sample_module_v_unit
-- Compiling module sample_module

Top level modules:
sample_module
End time: 22:03:30 on Feb 24,2016, Elapsed time: 0:00:00
Errors: 0, Warnings: 0
vsim -onfinish exit -pli "libvpi.so" work.sample_module
Start time: 22:03:30 on Feb 24,2016
//  ModelSim DE 10.4c Jul 19 2015 Linux 3.16.0-45-generic
//
//  Copyright 1991-2015 Mentor Graphics Corporation
//  All Rights Reserved.

//
Loading sv_std.std
Loading work.sample_module_v_unit
Loading work.sample_module
Loading /home/craig/cocotb/build/libs/i686/libvpi.so
-.--ns INFO     cocotb.gpi
GpiCommon.cpp:91   in gpi_print_registered_impl       VPI registered
0.00ns INFO     cocotb.gpi
gpi_embed.c:248  in embed_sim_init                  Running on ModelSim DE
version 10.4c 2015.07
0.00ns INFO     cocotb.gpi
gpi_embed.c:249  in embed_sim_init                  Python interpreter
initialised and cocotb loaded!
0.00ns INFO     cocotb