Git Product home page Git Product logo

Comments (22)

sonoble avatar sonoble commented on July 19, 2024

Hi Lewis,

@jnealtowns and I are looking in to this issue, I have been seeing it on my non bsn build machines. It has something to do with qemu/binfmt.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

Hi Lewis,

Can you confirm that you have binfmt-support installed on your building
machine?

robs@ubudev:~$ dpkg -l | grep binfmt
ii binfmt-support 2.1.4-1
amd64 Support for extra binary formats

  • Rob
    .

On Mon, Feb 1, 2016 at 8:08 PM, Steven Noble [email protected]
wrote:

Hi Lewis,

@jnealtowns https://github.com/jnealtowns and I are looking in to this
issue, I have been seeing it on my non bsn build machines. It has something
to do with qemu/binfmt.


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

Lewis-Kang avatar Lewis-Kang commented on July 19, 2024

Hi Rob,

Yes. It's installed.

root@CicadaBuildServer:/home2/kang/OCP/OpenNetworkLinux# dpkg -l | grep binfmt
ii binfmt-support 2.1.5-1 amd64 Support for extra binary formats

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

@Steve:

So, I think I'm starting to figure out the problem. I've replicated this
on my local VM setup and it seem like the problem is how the
tmp/configure.sh script is created
(~/builds/powerpc/rootfs/builds/rootfs-powerpc.d/tmp/configure.sh).
Critically, the file has a '\n' for the first line of the file so the
system can't decide how to run the file.

Now - I'm going to try to figure out why this file is correctly generated
for us on our build servers and incorrectly for other folks.

@Lewis: can you confirm that this file is similarly corrupted for you?

  • Rob
    .

On Mon, Feb 1, 2016 at 8:14 PM, Lewis Kang [email protected] wrote:

Hi Rob,

Yes. It's installed.

root@CicadaBuildServer:/home2/kang/OCP/OpenNetworkLinux# dpkg -l | grep
binfmt
ii binfmt-support 2.1.5-1 amd64 Support for extra binary formats


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

So, I think this is the problem:

robs@ubudev:~/work.onl/OpenNetworkLinux$ git diff
diff --git a/packages/base/any/initrds/buildroot/builds/buildroot-mirror
b/packages/base/any/initrds/buildroot/builds/buildroot-mirror
--- a/packages/base/any/initrds/buildroot/builds/buildroot-mirror
+++ b/packages/base/any/initrds/buildroot/builds/buildroot-mirror
@@ -1 +1 @@
-Subproject commit 5e1a5c1ef7bac890845920809147ee2070dc96ea
+Subproject commit 5e1a5c1ef7bac890845920809147ee2070dc96ea-dirty
diff --git a/tools/onlrfs.py b/tools/onlrfs.py
index fb03c69..2ad30e4 100755
--- a/tools/onlrfs.py
+++ b/tools/onlrfs.py
@@ -266,8 +266,8 @@ class OnlRfsBuilder(object):
script = os.path.join(dir_, "tmp/configure.sh")
with open(script, "w") as f:
os.chmod(script, 0700)

  •        f.write("""
    
    -#!/bin/bash -ex
  •        f.write(
    
    +"""#!/bin/bash -ex

@Lewis: I'm going to try to rebuild using this patch but if you want to
take a swing in parallel, please feel free.

  • Rob
    .

On Mon, Feb 1, 2016 at 8:42 PM, Rob Sherwood [email protected]
wrote:

@Steve:

So, I think I'm starting to figure out the problem. I've replicated this
on my local VM setup and it seem like the problem is how the
tmp/configure.sh script is created
(~/builds/powerpc/rootfs/builds/rootfs-powerpc.d/tmp/configure.sh).
Critically, the file has a '\n' for the first line of the file so the
system can't decide how to run the file.

Now - I'm going to try to figure out why this file is correctly generated
for us on our build servers and incorrectly for other folks.

@Lewis: can you confirm that this file is similarly corrupted for you?

  • Rob
    .

On Mon, Feb 1, 2016 at 8:14 PM, Lewis Kang [email protected]
wrote:

Hi Rob,

Yes. It's installed.

root@CicadaBuildServer:/home2/kang/OCP/OpenNetworkLinux# dpkg -l | grep
binfmt
ii binfmt-support 2.1.5-1 amd64 Support for extra binary formats


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

So, I'm a moron - apparently Unix is smarter than I am and has no trouble
executing shell scripts that start with a \n.

That said, I believe I've found the problem: Before the binfmt stuff will
work, we need to run inside the docker image:

sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
sudo /etc/init.d/binfmt-support start

When I do these things inside my docker image, then I can successfully
build the image. Let me sync up with Jeff and Steve tomorrow to make sure
this is a proper fix.

  • Rob
    .

On Mon, Feb 1, 2016 at 9:00 PM, Rob Sherwood [email protected]
wrote:

So, I think this is the problem:

robs@ubudev:~/work.onl/OpenNetworkLinux$ git diff
diff --git a/packages/base/any/initrds/buildroot/builds/buildroot-mirror
b/packages/base/any/initrds/buildroot/builds/buildroot-mirror
--- a/packages/base/any/initrds/buildroot/builds/buildroot-mirror
+++ b/packages/base/any/initrds/buildroot/builds/buildroot-mirror
@@ -1 +1 @@
-Subproject commit 5e1a5c1ef7bac890845920809147ee2070dc96ea
+Subproject commit 5e1a5c1ef7bac890845920809147ee2070dc96ea-dirty
diff --git a/tools/onlrfs.py b/tools/onlrfs.py
index fb03c69..2ad30e4 100755
--- a/tools/onlrfs.py
+++ b/tools/onlrfs.py
@@ -266,8 +266,8 @@ class OnlRfsBuilder(object):
script = os.path.join(dir_, "tmp/configure.sh")
with open(script, "w") as f:
os.chmod(script, 0700)

  •        f.write("""
    
    -#!/bin/bash -ex
  •        f.write(
    
    +"""#!/bin/bash -ex

@Lewis: I'm going to try to rebuild using this patch but if you want to
take a swing in parallel, please feel free.

  • Rob
    .

On Mon, Feb 1, 2016 at 8:42 PM, Rob Sherwood [email protected]
wrote:

@Steve:

So, I think I'm starting to figure out the problem. I've replicated this
on my local VM setup and it seem like the problem is how the
tmp/configure.sh script is created
(~/builds/powerpc/rootfs/builds/rootfs-powerpc.d/tmp/configure.sh).
Critically, the file has a '\n' for the first line of the file so the
system can't decide how to run the file.

Now - I'm going to try to figure out why this file is correctly generated
for us on our build servers and incorrectly for other folks.

@Lewis: can you confirm that this file is similarly corrupted for you?

  • Rob
    .

On Mon, Feb 1, 2016 at 8:14 PM, Lewis Kang [email protected]
wrote:

Hi Rob,

Yes. It's installed.

root@CicadaBuildServer:/home2/kang/OCP/OpenNetworkLinux# dpkg -l | grep
binfmt
ii binfmt-support 2.1.5-1 amd64 Support for extra binary formats


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

Code fix posted here: #33

Reviewing now.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

Merged -- please reopen if you see this issue again and thanks.

from opennetworklinux.

Dodain avatar Dodain commented on July 19, 2024

I tried to do everything ,even delete the OpenNetworkLinux and start from zero but still the problem persists .
@Lewis-Kang Are you still having this issue or is it solved ?

--Moiz

from opennetworklinux.

sonoble avatar sonoble commented on July 19, 2024

Hi Moiz,

Can you run the commands directly and see if everything works?

docker/tools/onlbuilder
source setup.env
apt-cacher-ng
sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
sudo /etc/init.d/binfmt-support start
make

from opennetworklinux.

Dodain avatar Dodain commented on July 19, 2024

Well everything is working except when i give the make command it gives me the following error.

make[2]: Entering directory '/home/moizimtiaz/OpenNetworkLinux/packages/base/amd64/onlp/builds'
make[3]: *** No rule to make target '/usr/include/linux/i2c-devices.h', needed by 'BUILD/jessie/x86_64-linux-gnu/obj//home/moizimtiaz/OpenNetworkLinux/packages/base/any/onlp/src/onlplib//module/src//i2c.o'. Stop.
/home/moizimtiaz/OpenNetworkLinux/make/subdirs.mk:15: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/moizimtiaz/OpenNetworkLinux/packages/base/amd64/onlp/builds'
ERROR:onlpm:'Build failed.'
/tmp/tmpznr6XP/tmp/tmpZ_Oyes/tmp/tmpghl2FR/home/moizimtiaz/OpenNetworkLinux/make/pkg.mk:21: recipe for target 'pkgall' failed
make[1]: *** [pkgall] Error 1
make[1]: Leaving directory '/home/moizimtiaz/OpenNetworkLinux/packages/base'
Makefile:19: recipe for target 'amd64' failed
make: *** [amd64] Error 2

-- Moiz

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

Are you building from the docker environment? If so, that file should
exist.

  • Rob
    .

On Fri, Feb 12, 2016 at 5:55 AM, Dodain [email protected] wrote:

Well everything is working except when i give the make command it gives me
the following error.

make[2]: Entering directory
'/home/moizimtiaz/OpenNetworkLinux/packages/base/amd64/onlp/builds'
make[3]: *** No rule to make target '/usr/include/linux/i2c-devices.h',
needed by
'BUILD/jessie/x86_64-linux-gnu/obj//home/moizimtiaz/OpenNetworkLinux/packages/base/any/onlp/src/onlplib//module/src//i2c.o'.
Stop.
/home/moizimtiaz/OpenNetworkLinux/make/subdirs.mk:15: recipe for target
'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory
'/home/moizimtiaz/OpenNetworkLinux/packages/base/amd64/onlp/builds'
ERROR:onlpm:'Build failed.'

/tmp/tmpznr6XP/tmp/tmpZ_Oyes/tmp/tmpghl2FR/home/moizimtiaz/OpenNetworkLinux/make/
pkg.mk:21: recipe for target 'pkgall' failed
make[1]: *** [pkgall] Error 1
make[1]: Leaving directory
'/home/moizimtiaz/OpenNetworkLinux/packages/base'
Makefile:19: recipe for target 'amd64' failed
make: *** [amd64] Error 2

  • Moiz


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

Lewis-Kang avatar Lewis-Kang commented on July 19, 2024

I just gave it a try. This issue remains unsolved yet.

from opennetworklinux.

capveg avatar capveg commented on July 19, 2024

Thanks Lewis for the feedback.

If you're still seeing the issue, can you run make docker-debug and send
us the output before you get to the prompt as well as the output of:

ls -l /proc/sys/fs/binfmt_misc/
from inside the docker shell?

Also your version of docker:
robs@sbs2:~$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64

Thanks,

  • Rob
    .

On Sun, Feb 14, 2016 at 7:39 PM, Lewis Kang [email protected]
wrote:

I just gave it a try. This issue remains unsolved yet.


Reply to this email directly or view it on GitHub
#31 (comment)
.

from opennetworklinux.

sonoble avatar sonoble commented on July 19, 2024

FYI here are the details of how those files get into the docker7/8 images:

docker/images/builder7/1.0$ grep i2c-devices.h Dockerfile
RUN cp /usr/include/linux/i2c-dev.h /usr/include/linux/i2c-devices.h &&
cp /usr/include/linux/i2c-dev.h /usr/powerpc-linux-gnu/include/linux/i2c-devices.h

Can you confirm that they are there? We have not seen this issue in quite a while..

from opennetworklinux.

Lewis-Kang avatar Lewis-Kang commented on July 19, 2024

Rob, here is what I got. Thanks.

root@CicadaBuildServer:/home2/kang/OCP/OpenNetworkLinux# make docker-debug
Pulling opennetworklinux/builder7:1.0...
done.
[ ok ] Starting apt-cacher-ng: apt-cacher-ng.
Ready to build OpenNetworkLinux.
root@onlbuilder7:~# ls -l /proc/sys/fs/binfmt_misc/
total 0

kang@CicadaBuildServer:~$ docker version
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:29:38 UTC 2015
OS/Arch: linux/amd64

Server:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:29:38 UTC 2015
OS/Arch: linux/amd64

from opennetworklinux.

Lewis-Kang avatar Lewis-Kang commented on July 19, 2024

After applying Steven's changed files in #39 , which have not merged back to master branch yet, this issue is gone. Thanks.

from opennetworklinux.

sonoble avatar sonoble commented on July 19, 2024

Hi Lewis,

That is good to hear :)

I need to talk to @jnealtowns about the change as I believe I bumped the docker image prematurely since the change is in the docker_shell. We may just update the 1.0 image, which the make docker command will pull if it has changed.

from opennetworklinux.

Dodain avatar Dodain commented on July 19, 2024

Hi,
@Lewis-Kang Are you using debain 8?

@sonoble I am not having the directory /usr/powerpc-linux-gnu/include/linux/ , how ever i did update the files as mentioned in #39 and after copying the files from /usr/include/linux/i2c-dev.h to /usr/include/linux/i2c-devices.h and then run make command its gives the following

cc1: all warnings being treated as errors
/home/moizimtiaz/OpenNetworkLinux/sm/infra/builder/unix/toolchains/gcc-local/obj.mk:109: recipe for target 'BUILD/jessie/x86_64-linux-gnu/obj//home/moizimtiaz/OpenNetworkLinux/packages/base/any/onlp/src/onlplib//module/src//i2c.o' failed
make[3]: *** [BUILD/jessie/x86_64-linux-gnu/obj//home/moizimtiaz/OpenNetworkLinux/packages/base/any/onlp/src/onlplib//module/src//i2c.o] Error 1
/home/moizimtiaz/OpenNetworkLinux/make/subdirs.mk:15: recipe for target 'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/home/moizimtiaz/OpenNetworkLinux/packages/base/amd64/onlp/builds'
ERROR:onlpm:'Build failed.'
/tmp/tmpK97Yxf/tmp/tmpPHVexK/tmp/tmpYXjQ6k/home/moizimtiaz/OpenNetworkLinux/make/pkg.mk:21: recipe for target 'pkgall' failed
make[1]: *** [pkgall] Error 1
make[1]: Leaving directory '/home/moizimtiaz/OpenNetworkLinux/packages/base'
Makefile:19: recipe for target 'amd64' failed
make: *** [amd64] Error 2

Docker version is as follow.
root@Dodain:/# docker version
Client:
Version: 1.10.0
API version: 1.22
Go version: go1.5.3
Git commit: 590d5108
Built: Thu Feb 4 18:16:19 2016
OS/Arch: linux/amd64

Server:
Version: 1.10.0
API version: 1.22
Go version: go1.5.3
Git commit: 590d5108
Built: Thu Feb 4 18:16:19 2016
OS/Arch: linux/amd64

from opennetworklinux.

sonoble avatar sonoble commented on July 19, 2024

Hi Dodain.

I am not sure why we are having trouble with the i2c headers. Please pull the latest version of the code, set the variable VERSION to 8 and run make docker. We have updated the docker images and the way the system builds.

from opennetworklinux.

Dodain avatar Dodain commented on July 19, 2024

Hi
Well sorry for the late update.After pulling the latest version of the code, the prob is solved and image is built successfully.Thanks.

from opennetworklinux.

sonoble avatar sonoble commented on July 19, 2024

No worries, we have been working hard to make sure that the builds go correctly. Let us now if you have any other issues.

from opennetworklinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.