Actually I was facing the following issue while building my Yocto SDK on Docker container
Code:
sudo docker build --tag="akash/eclipse-che:6.5.0-1" --tag="akash/eclipse-che:latest" /home/akash/dockerimage.yocto.support/
Sending build context to Docker daemon 26.93MB
Step 1/5 : FROM eclipse/cpp_gcc
---> 8397ec8fd9d1
Step 2/5 : ENV META_TOOLCHAIN=poky-glibc-x86_64-meta-toolchain-cortexa7hf-neon-vfpv4-toolchain-2.4.3.sh
---> Using cache
---> b6efe9fb9be4
Step 3/5 : RUN wget -O /tmp/$META_TOOLCHAIN "<link for toolchain >=$META_TOOLCHAIN"
---> Using cache
---> 674e007553da
Step 4/5 : RUN chmod +x /tmp/$META_TOOLCHAIN
---> Using cache
---> 5f558946851e
Step 5/5 : RUN /tmp/$META_TOOLCHAIN
---> Running in b5909d0fe10c
Poky (Yocto Project Reference Distro) SDK installer version 2.4.3
=================================================================
You are about to install the SDK to "/home/akash/rpil/rpi-build/tmp". Proceed[Y/n]? Extracting SDK.............done
Setting it up...ls: cannot access '/home/akash/rpil/rpi-build/tmp/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi': No such file or directory
SDK relocate failed, could not get executalbe files
The command '/bin/sh -c /tmp/$META_TOOLCHAIN' returned a non-zero code: 1
environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi file is actually present in the tmp directory.I am not able to understand why it cannot access it.
I have noticed that my sysroots directory is empty.I am just assuming that that may be the reason for the issue.
This is the some part of the shell script of SDK which is being extracted.
Code:
tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
echo "done"
printf "Setting it up..."
# fix environment paths
real_env_setup_script=""
for env_setup_script in `ls $target_sdk_dir/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi`; do
if grep -q 'OECORE_NATIVE_SYSROOT=' $env_setup_script; then
# Handle custom env setup scripts that are only named
# environment-setup-* so that they have relocation
# applied - what we want beyond here is the main one
# rather than the one that simply sorts last
real_env_setup_script="$env_setup_script"
fi
$SUDO_EXEC sed -e "s:/opt/poky/2.4.3:$target_sdk_dir:g" -i $env_setup_script
done
if [ -n "$real_env_setup_script" ] ; then
Note: I am unable to post the link because this is my fifth post.
I have a problem with my loops. I have a file called users.dat, it has all the users in it. Then I extracted a list of users sending out number of mails with date from Netscape logs. The extracted list (mailuse.dat) has 3 fields: username, number of mails, date. (One user can show up several... (2 Replies)
Hello everyone, this is my first post so please give me a hand.
I apologize for my English, I'll try to be clear with my request.
I need to write a script (Bash) which finds all the variables defined in the file .h of the folder and then writes the name of the files .c where these variables are... (1 Reply)
Hi Team,
I am not able to extract string between parenthesis.I need to extract string between first parenthesis only.
Please find the sample data and code.
But the below my code is returning "DW_EFD_TXN_ID", "PRCS_DTE" & INITIAL 52428800 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645... (12 Replies)
My file looks like this and i need to only extract those with PDT_AP21_B and output it to another file. Can anyone help? Thanks.
PDT_AP21_R,,, 11 TYS,,,,T17D1207230742TYO***T17DS,,C
PDT_AP21_L,,,9631166650001 ,,,,T17D1207230903TYOTYST17DS ,,C... (3 Replies)
I was extracting the zipped tar file with the command
gzip -dc Sample.tar.gz |tar xf -
The tar file contained many delimited files; but lately they changed the structure of the tar file with another folder. So now all the delimited files are inside a folder called "Folder1" and the folder... (6 Replies)
Recently i found this for give to docker a "personal" ip
ip addr del 10.1.1.133/24 dev eth0
ip link add link eth0 dev eth0m type macvlan mode bridge
ip link set eth0m up
ip addr add 10.1.1.133/24 dev eth0m
route add default gw 10.1.1.1On container i did
... (0 Replies)
I don't know why, but the rendering of my code mucks up the spacing and indentation, despite being correct in the original file. I'm having issues getting the following script to run (specifically the nested script at the end of the docker command near the end of the script; I think I'm not passing... (2 Replies)
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies
LEARN ABOUT OSX
xcodebuild
XCODEBUILD(1) BSD General Commands Manual XCODEBUILD(1)NAME
xcodebuild -- build Xcode projects
SYNOPSIS
xcodebuild [-project projectname] [-activetarget] [-alltargets] [-target targetname] [-parallelizeTargets] [-activeconfiguration]
[-configuration configurationname] [-sdk <sdkfullpath> | <sdkname>] [buildaction ...] [setting=value ...] [-default=value ...]
xcodebuild -version [-sdk [<sdkfullpath> | <sdkname> [<single item>]]]
xcodebuild -find <binary> [-sdk <sdkfullpath> | <sdkname>]
xcodebuild -showsdks
xcodebuild -list
xcodebuild -help
DESCRIPTION
xcodebuild builds a target contained in an Xcode project.
Usage
Run xcodebuild from the directory containing your project (i.e. the directory containing the projectname.xcodeproj package). If you have
multiple projects in the this directory you will need to use -project to indicate which project should be built.
By default, xcodebuild builds the first target listed in your project, with the default build configuration. The order of the targets is a
property of the project and is the same for all users of the project. The active target and active build configuration properties are set for
each user of the project and can vary from user to user.
Options
-project projectname
Build the project specified by projectname. Required if there are multiple project files in the same directory.
-activetarget
Builds the user's active target.
-alltargets
Build all the targets in the project.
-target targetname
Build the target specified by targetname.
-nodependencies
Only perform the action on the specified target(s), not on any targets upon which they depend. This option only applies to the 'clean'
action.
-parallelizeTargets
Build independent targets in parallel when possible. With distributed builds or multiprocessor machines, this can cause projects with
many simple targets to build substantially faster. This option only applies to targets with target dependencies.
-activeconfiguration
Use the user's active build configuration when building the target.
-configuration configurationname
Use the build configuration specified by configurationname when building the target.
-sdk <sdkfullpath> | <sdkname>
Build an Xcode project against the specified SDK, using build tools appropriate for that SDK. The argument may be an absolute path to
an SDK, or the canonical name of an SDK.
-showsdks
Lists all available SDKs, including their canonical names suitable for use with -sdk.
buildaction ...
Specify a build action (or actions) to perform on the target. Available build actions are:
build Build the target in the build root (SYMROOT). This is the default build action.
installsrc Copy the source of the project to the source root (SRCROOT).
install Build the target and install it into the target's installation directory in the distribution root (DSTROOT).
clean Remove build products and intermediate files from the build root (SYMROOT).
setting=value
Set the build setting setting to value.
-find binary -sdk <sdkfullpath> | <sdkname>
Print the absolute path to binary in the context of sdk. If the -sdk argument is not provided, find uses the value of the build set-
ting SDKROOT, if set. Returns EINVAL if a valid SDK could not be determined. The search order is the usr/bin directory in the SDK, the
bin directory in the SDK, then each of the paths specified by the PATH environment variable. Returns ENOENT if the requested binary
could not be located in any of the searched directories.
NOTE: 'xcrun -find' is preferred because it caches the resulting find; xcrun uses xcodebuild to populate its cache.
-version
Display version information. When used in conjunction with -sdk, the version of the specified SDK is displayed, or all SDKs if -sdk is
given no value. Additionally, a single line of the reported version information may be returned if specified.
-default=value
Set the user default default to value.
-list
Lists the targets in the project. Does not initiate a build.
-nodistribute
Disable distributed building. Overrides the distributed build setting stored in the user defaults by the Xcode preferences panel.
-bonjourbuildhosts
Enable distributed building and search for build machines using Bonjour. Build machines are added dynamically during the build as they
are discovered. May be used alone or in conjunction with -buildhosts or -buildhostsfile.
-nobonjourbuildhosts
Do not search for build machines using Bonjour. Overrides the Bonjour distributed build setting stored in the user defaults by the
Xcode preferences panel.
-buildhosts hostlist
Enable distributed building and set the list of build machines to the space separated list given in hostlist.
-buildhostsfile hostsfile
Enable distributed building and set the list of build machines to the contents of hostsfile. hostsfile is a text file containing build
machine names, one per line.
-help
Displays usage information for xcodebuild.
EXAMPLES
xcodebuild clean install
Cleans the build directory; then builds and installs the first target in the project.
xcodebuild -target MyTarget OBJROOT=/Build/MyProj/Obj.root SYMROOT=/Build/MyProj/Sym.root
Builds the target MyTarget putting object (intermediate) files in one directory and the products of the build in another directory.
xcodebuild -sdk macosx10.4
Builds an Xcode project against the Mac OS X 10.4 SDK. The canonical names of all available SDKs can be viewed using the -showsdks
option.
Mac OS X April 8, 2008 Mac OS X