Comments (4)
I ended up doing just that, and it worked. Weird, but at least the workaround is here if it's needed in the future.
from fboss.
[durh -- ignore my first comment]
Hi,
Thanks for the interest. FBOSS can in theory compile against a fedora based distribution, but no one has tried it before. It's not surprising that there would be some minor header incompatibilities - thanks for pointing this one out. As hopefully you can see from the build instructions and the travis builds, this builds cleanly as is for ubuntu and Debian systems.
If you want to submit a patch for this or any other fedora compatibility tweaks, that would be much appreciated.
from fboss.
Yes, I kind of figured that Fedora was a bit of a stretch (pun intended) ;-).
FWIW, I tested on my Debian machine which is "testing/buster", and it appears that these functions are defined in the above file even here (after running getdeps.sh
).
bluecmd@x:~/fboss$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (buster)
Release: testing
Codename: buster
bluecmd@x:~/fboss$ grep i2c_smbus_read_i2c_block_data -R /usr/include/
/usr/include/i2c/smbus.h:extern __s32 i2c_smbus_read_i2c_block_data(int file, __u8 command, __u8 length,
bluecmd@x:/usr/include$ grep smbus.h -R .
./i2c/smbus.h: smbus.h - SMBus level access helper functions
bluecmd@x:~/fboss$ grep smbus.h -R .
I'll see if I can find a Ubuntu 16.04 machine to test on as well, but it seems weird that the "linux/i2c-dev" which I guess is a kernel API would in some distros contain userspace library functions (libi2c-dev). Maybe libi2c-dev was spun out after Ubuntu 16.04?
from fboss.
Probably the easiest thing to do is download Open Network Linux and use the docker based build environment that's included with it. If you look at the build steps used in the .travis.yml build script, it should give you a feel for how to do this.
from fboss.
Related Issues (20)
- [build] build failed on switch(centos 7)
- ModuleNotFoundError: No module named 'fboss.fb_thrift_clients' HOT 1
- question for HSDK support
- Build Error: TransientFailure: Failed to download http://localhost:8000/opennsa-6.5.22.tgz
- Build error (Missing CONTAINER.tar) for Docker Container for Debian 10
- Build error .
- Port numbering in FBOSS Python Tool output HOT 4
- Does`parserType` set to `0` works as expected ? HOT 2
- Regression: crash on startup HOT 13
- Logging in qsfp_service HOT 1
- OpenNSL 3.5.0.1 report HOT 21
- qsfp_service crashes on bad modules
- Using interface ID 1000 crashes wedge_agent
- Make Wedge transparent to VLANs
- compile fboss fail:fboss/agent/hw/bcm/BcmHostKey.cpp.o' failed
- fboss build failure HOT 5
- Unable to run SAI fake tests HOT 3
- no limitation for "%s" while calling fscanf() HOT 2
- Please make tests conditional on the cmake option BUILD_TESTING, and make benchmark also conditional on some cmake variable
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 fboss.