Hi all,
I created one run script "switch" which gives me the following error at compilation at the last stage.
make[1]: Leaving directory `/home/chirag/genode-ns/build6' cp: cannot stat `bin/switch': No such file or directory while executing "exec cp bin/$binary [run_dir]/genode" (procedure "copy_and_strip_genode_binaries_to_run_dir" line 4) invoked from within "copy_and_strip_genode_binaries_to_run_dir $binaries" (procedure "build_boot_image" line 16) invoked from within "build_boot_image "core init switch"" (file "/home/chirag/genode-ns/repos/os/run/switch.run" line 37) invoked from within "source $include_name" ("foreach" body line 3) invoked from within "foreach include_name [get_cmd_arg --include ""] { puts "using run script $include_name" source $include_name }" (file "/home/chirag/genode-ns/tool/run" line 1004) make: *** [run/switch] Error 1
Like error message says that it is not able to copy switch file from the bin folder because it is not there.
WHY this script is failed to create the bin/switch file ?
Please let me know the all possible reason behind it. I am attaching switch.run script in the mail.
Thanks in advance. Regards
Chirag Garg IIT Madras , Rise Lab
Chirag,
In the switch.run script, the switch executable is being asked to be made under "server" directory location through this line:
build "core init server/switch"
But the image is getting built from the bin directory through this line
build_boot_image "core init switch"
Since the switch executable is getting generated in server directory, if you change this, then it should be hopefully proceeding ahead.
HTH,
Vasan
On Mon, Jan 19, 2015 at 11:40 AM, chirag garg <chiragdthinker@...9...> wrote:
Hi all,
I created one run script "switch" which gives me the following error at compilation at the last stage.
make[1]: Leaving directory `/home/chirag/genode-ns/build6' cp: cannot stat `bin/switch': No such file or directory while executing "exec cp bin/$binary [run_dir]/genode" (procedure "copy_and_strip_genode_binaries_to_run_dir" line 4) invoked from within "copy_and_strip_genode_binaries_to_run_dir $binaries" (procedure "build_boot_image" line 16) invoked from within "build_boot_image "core init switch"" (file "/home/chirag/genode-ns/repos/os/run/switch.run" line 37) invoked from within "source $include_name" ("foreach" body line 3) invoked from within "foreach include_name [get_cmd_arg --include ""] { puts "using run script $include_name" source $include_name }" (file "/home/chirag/genode-ns/tool/run" line 1004) make: *** [run/switch] Error 1
Like error message says that it is not able to copy switch file from the bin folder because it is not there.
WHY this script is failed to create the bin/switch file ?
Please let me know the all possible reason behind it. I am attaching switch.run script in the mail.
Thanks in advance. Regards
Chirag Garg IIT Madras , Rise Lab
New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hello Chirag,
please consider to provide your complete build log next time. I expect a warning message at the very beginning of the log.
On Mon, Jan 19, 2015 at 11:40:52AM +0530, chirag garg wrote:
Like error message says that it is not able to copy switch file from the bin folder because it is not there.
WHY this script is failed to create the bin/switch file ?
[switch.run]
assert_spec hw_imx6
build "core init server/switch"
At this line, the run tool initiates the compliation and link of "server/switch". I suppose for some reason the server is not built, which should be become clear when looking at the log output.
create_boot_directory
install_config {
<config verbose="yes"> <parent-provides> <service name="ROM"/> <service name="RAM"/> <service name="IRQ"/> <service name="IO_MEM"/> <service name="CAP"/> <service name="PD"/> <service name="RM"/> <service name="CPU"/> <service name="LOG"/> <service name="SIGNAL"/> <service name="VM"/> </parent-provides> <default-route> <any-service><any-child/><parent/></any-service> </default-route> <start name="switch"> <resource name="RAM" quantum="4M"/> </start> </config> }
build_boot_image "core init switch"
Now, the run tool tries to integrate the binaries into the boot image and fails because of the missing binary for "switch".
# # Execute test case # run_genode_until {.*/ #.*} 220
puts "Test succeeded"
I suggest you try to execute the build step for "server/switch" manually via
make server/switch
in your build directory. Afterwards you may investigate the issue using the produced log.
Regards
Vasan,
On Mon, Jan 19, 2015 at 01:09:33PM +0530, Vasan wrote:
In the switch.run script, the switch executable is being asked to be made under "server" directory location through this line:
build "core init server/switch"
But the image is getting built from the bin directory through this line
build_boot_image "core init switch"
Since the switch executable is getting generated in server directory, if you change this, then it should be hopefully proceeding ahead.
That's not quite true. The step just declares that the target, i.e. the target.mk file, must be found in any repository declared in the RESPOSITORIES variable under
<repo>/src/server/switch
Please refer to doc/build_system.txt Section "Building targets".
Regards
Hi Christian,
I am able to run switch script with the help of log message in the beginning. There was a mistake in .mk file.
Thanks for your answer.
Regards
Chirag Garg IIT Madras , Rise Lab
On Mon, Jan 19, 2015 at 2:29 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hello Chirag,
please consider to provide your complete build log next time. I expect a warning message at the very beginning of the log.
On Mon, Jan 19, 2015 at 11:40:52AM +0530, chirag garg wrote:
Like error message says that it is not able to copy switch file from the bin folder because it is not there.
WHY this script is failed to create the bin/switch file ?
[switch.run]
assert_spec hw_imx6
build "core init server/switch"
At this line, the run tool initiates the compliation and link of "server/switch". I suppose for some reason the server is not built, which should be become clear when looking at the log output.
create_boot_directory
install_config {
<config verbose="yes"> <parent-provides> <service name="ROM"/> <service name="RAM"/> <service name="IRQ"/> <service name="IO_MEM"/> <service name="CAP"/> <service name="PD"/> <service name="RM"/> <service name="CPU"/> <service name="LOG"/> <service name="SIGNAL"/> <service name="VM"/> </parent-provides> <default-route> <any-service><any-child/><parent/></any-service> </default-route> <start name="switch"> <resource name="RAM" quantum="4M"/> </start> </config> }
build_boot_image "core init switch"
Now, the run tool tries to integrate the binaries into the boot image and fails because of the missing binary for "switch".
# # Execute test case # run_genode_until {.*/ #.*} 220
puts "Test succeeded"
I suggest you try to execute the build step for "server/switch" manually via
make server/switch
in your build directory. Afterwards you may investigate the issue using the produced log.
Regards
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main