Comments (8)
can you post the error message?
from connectal.
Are you sure that addr is 32 bits on x86? we always run 64-bit versions,
so seems peculiar.
In addition, I am accustomed to sizeof(long) == sizeof(void *), for
example, see the last line of the next-to-last paragraph of:
http://www.makelinux.net/ldd3/chp-11-sect-1
( was looking for this in the c std, but can't find similar text... :-( )
Thanks
jca
On Sun, Jan 17, 2016 at 9:00 AM, Han Wang [email protected] wrote:
can you post the error message?
—
Reply to this email directly or view it on GitHub
#106 (comment)
.
from connectal.
Below is error message, the problem is Shift 32 bits and OR with addr
btw: the dma_addr_t defined in Linux header, so it maybe 32 or 64bits depends OS configure.
prepare_bin_target
ubuntu.exe
cc1plus: warnings being treated as errors
In file included from /chen/connectal/cpp/dmaManager.c:35:
/chen/connectal/cpp/dmaSendFd.h: In function int send_fd_to_portal(PortalInternal_, int, int, int):
/chen/connectal/cpp/dmaSendFd.h:85: error: left shift count >= width of type
make[2]: *_* [ubuntu.exe] Error 1
make[1]: *** [ubuntu.exe] Error 2
make: *** [build.bluesim] Error 2
rhel:/connectal/examples/echo#
************* END **************************************
At 2016-01-18 01:18:10,jankcorn [email protected] wrote:
Are you sure that addr is 32 bits on x86? we always run 64-bit versions,
so seems peculiar.
In addition, I am accustomed to sizeof(long) == sizeof(void *), for
example, see the last line of the next-to-last paragraph of:
http://www.makelinux.net/ldd3/chp-11-sect-1
( was looking for this in the c std, but can't find similar text... :-( )
Thanks
jca
On Sun, Jan 17, 2016 at 9:00 AM, Han Wang [email protected] wrote:
can you post the error message?
—
Reply to this email directly or view it on GitHub
#106 (comment)
.
—
Reply to this email directly or view it on GitHub.
from connectal.
I see. This is code only for simulations.
It appears that simulation builds (xsim, bluesim, modelsim, verilator) have
to be run on 64-bit architectures (which, in practice, are always x86).
I would highly recommend switching to a machine with a 64-bit OS. (since
the 32 bit os can't address much memory anyway for simulation...)
Is that possible?
jca
On Sun, Jan 17, 2016 at 9:54 PM, chenm001 [email protected] wrote:
Below is error message, the problem is Shift 32 bits and OR with addr
btw: the dma_addr_t defined in Linux header, so it maybe 32 or 64bits
depends OS configure.
prepare_bin_target
ubuntu.exe
cc1plus: warnings being treated as errors
In file included from /chen/connectal/cpp/dmaManager.c:35:
/chen/connectal/cpp/dmaSendFd.h: In function int
send_fd_to_portal(PortalInternal_, int, int, int):
/chen/connectal/cpp/dmaSendFd.h:85: error: left shift count >= width of
type
make[2]: *_* [ubuntu.exe] Error 1
make[1]: *** [ubuntu.exe] Error 2
make: *** [build.bluesim] Error 2
rhel:/connectal/examples/echo#
************* END **************************************At 2016-01-18 01:18:10,jankcorn [email protected] wrote:
Are you sure that addr is 32 bits on x86? we always run 64-bit versions,
so seems peculiar.In addition, I am accustomed to sizeof(long) == sizeof(void *), for
example, see the last line of the next-to-last paragraph of:
http://www.makelinux.net/ldd3/chp-11-sect-1
( was looking for this in the c std, but can't find similar text... :-( )Thanks
jcaOn Sun, Jan 17, 2016 at 9:00 AM, Han Wang [email protected]
wrote:can you post the error message?
—
Reply to this email directly or view it on GitHub
<
#106 (comment).
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHub
#106 (comment)
.
from connectal.
I feel like I'm hearing half of a phone conversation.
@chenm001, it would be possible to put together a simulation configuration that supports 32-bit x86, but I agree with @jankcorn that it would be better to switch to 64-bit x86. Because who knows how many other places we assumed x86 was 64bit.
from connectal.
Agree, for really world, we may use x64 OS.
In simluate enviorment, I simple workaround by modify local to 'uint64_t addr;'
from connectal.
If that change works, I think we could update dmaSendFd.h accordingly.
We do not have any 32-bit x86 systems to test with, so please let us know
if any other changes are required.
On Fri, Jan 22, 2016 at 7:38 AM chenm001 [email protected] wrote:
Agree, for really world, we may use x64 OS.
In simluate enviorment, I simple workaround by modify local to 'uint64_t
addr;'—
Reply to this email directly or view it on GitHub
#106 (comment)
.
from connectal.
I will do more test and let you know later
At 2016-01-22 22:22:07,"Jamey Hicks" [email protected] wrote:
If that change works, I think we could update dmaSendFd.h accordingly.
We do not have any 32-bit x86 systems to test with, so please let us know
if any other changes are required.
On Fri, Jan 22, 2016 at 7:38 AM chenm001 [email protected] wrote:
Agree, for really world, we may use x64 OS.
In simluate enviorment, I simple workaround by modify local to 'uint64_t
addr;'—
Reply to this email directly or view it on GitHub
#106 (comment)
.
—
Reply to this email directly or view it on GitHub.
from connectal.
Related Issues (20)
- Adding Connectal Support to DE5 Net Board HOT 4
- Connectal Support for open source bsc compiler HOT 10
- Bypass version mismatch problems in generated Makefile HOT 1
- Simple Amazon AWS EC2 F1 example HOT 16
- Documentation embedded diagrams HOT 3
- write documentation for bsvdepend.py
- Is it possible to support the opensource bsc? HOT 5
- bsvdepend.py fails to find imported package whose name is expanded from macro
- AWS build script should check for credentials before starting the build
- Python 3 support HOT 4
- PCIe drivers fail to compile on Ubuntu 16.04 HOT 3
- PcieHost.bsv fails to build for multiple targets HOT 11
- DataBusWidth=256 support HOT 8
- Error in pcieportal_ioctl function HOT 5
- Error while building for kc705, "recipe for target 'obj/Pcie1EndpointX7.bo' failed" HOT 4
- error while running "make run.kc705g2" HOT 9
- ERROR: could not insert 'portalmem' HOT 2
- support the bitwidth calculation of decimal number scoped enumeration HOT 5
- Problem while building for zedboard HOT 2
- obsolete bsc version checking bug in `scripts/Makefile.connectal.build` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectal.