Error in building ct-ng in crosstool-ng-1.9.3 - crosstool-ng

I'm trying to build ct-ng in crosstool-ng-1.9.3 on my 64 bit ubuntu 13.04 but I repeatedly receive the following error during this command :
./ct-ng build
[INFO ] Retrieving needed toolchain components' tarballs
[ERROR] Could not retrieve 'cloog-ppl-0.15.10'.
[07:00] / make: *** [build] Error 1
Does anyone have any clue how to resolve it?

It's hard to say without seeing the full build.log file.
I'm going to guess and say it's failing at the point where it downloads that tar.
I would do the following (based on my assumption):
Delete the cloog-ppl-0.15.10.tar.bz stump in /some/path/.../.build/tarfiles
Download the tar manually.
You can either place the tar file in that location or in ./ct-ng menuconfig
Tell it to look at a directory locally.

Related

hugo builds with read-only source-tree

We would like to integrate hugo for documentation generation in our automake project.
The problem i'm facing is, that I would like to support
out-of-tree builds
builds from read-only source trees (which is related to out-of-tree builds)
out-of-tree builds kind of work with:
hugo --source $(srcdir) --destination $(abs_builddir)
However, when my source-tree is read-only (e.g. as tested by make distcheck), this fails with:
$ make
hugo --source ../../../hugo --destination "<<SRCDIR>>/project-0.1/_build/sub/hugo"
Error: add site dependencies: create deps: failed to create file caches from configuration: mkdir <<SRCDIR>>/project-0.1/hugo/resources: permission denied
Total in 1 ms
make: *** [Makefile:555: all] Error 255
Obviously, hugo tries to create it's "file caches" as a resources/ directory in the (read-only) <<SRCDIR>>.
How can I tell hugo to creat this "file caches" directory in an alternative (writeable) place?
I tried setting --cacheDir (to $(abs_builddir), but this didn't change anything.
apparently there's a resourceDir config-file option, but afaict that is not available via the cmdline (and I don't know whether it would actually help).

configure_file error on make install while compiling nfs-ganesha

My objective
I want to compile and install nfs-ganesha from source on a Oracle Linux machine.
Steps to reproduce
Using Oracle Linux Server release 7.4
Download nfs-ganesha from github: https://github.com/nfs-ganesha/nfs-ganesha
Follow steps from line 56 to 61 on this guide (just a normal compilation and installation): https://github.com/nfs-ganesha/nfs-ganesha/blob/next/src/COMPILING_HOWTO.txt
At some point, you might receive an error that you're missing userspace-rcu. Do sudo yum install userspace-rcu userspace-rcu-devel to fix it.
When I run the last command (make install) I get the following error:
Error
bash-4.2$ make install
[ 3%] Built target MainServices
normal build output...
[100%] Built target fsalmem
Install the project...
-- Install configuration: "Debug"
-- Installing: /etc/ganesha/ganesha.conf
CMake Error at cmake_install.cmake:54 (configure_file):
configure_file Problem configuring file
make: *** [install] Error 1
Some insights
I opened cmake_install.cmake to see what is failing, here is a fragment of the code:
I marked the faulty line with an arrow
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
set(_destfile "/etc/ganesha/ganesha.conf")
if (NOT "$ENV{DESTDIR}" STREQUAL "")
# prepend install root prefix with install-time DESTDIR
set(_destfile "$ENV{DESTDIR}//etc/ganesha/ganesha.conf")
endif ()
if (EXISTS ${_destfile})
message(STATUS "Skipping: ${_destfile} (already exists)")
execute_process(COMMAND "/usr/bin/cmake" -E compare_files
/home/carlhida/Documents/ganesha/src/config_samples/ganesha.conf.example ${_destfile} RESULT_VARIABLE _diff)
if (NOT "${_diff}" STREQUAL "0")
message(STATUS "Installing: ${_destfile}.example")
configure_file(/home/carlhida/Documents/ganesha/src/config_samples/ganesha.conf.example ${_destfile}.example COPYONLY)
endif ()
else ()
message(STATUS "Installing: ${_destfile}")
# install() is not scriptable within install(), and
# configure_file() is the next best thing
-------->>> configure_file(/home/carlhida/Documents/ganesha/src/config_samples/ganesha.conf.example ${_destfile} COPYONLY)
# TODO: create additional install_manifest files?
endif ()
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
What I found on this function is that it copies one file to another, but I'm not sure how to get more information from the error. My main concern is that it might have to do with permissions but when I use sudo, I just get:
bash-4.2$ sudo make install
CMake Error: The source directory "/home/carlhida/Documents/ganesha/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** [cmake_check_build_system] Error 1
So I think it is not related to that.
Pivoting questions
Is there a way to know what exactly is the problem with those files? I would really appreciate if anyone knows how to get a verbose output on those errors.
Thank you for your help!
I solved this problem by moving the repo's folder and the build folder to a directory called /scratch. Then I issued the command again by being root. It installed correctly this time.

Bitbake: "Nothing PROVIDES" error

I'm new to Yocto and Bitbake. I'm running my yocto machine through a qemu emulator on Ubuntu and attempting to use the meta-selftest layer to get a sense of how to install new layers. I have downloaded the meta-selftest files into the directory where the rest of the meta- directories are, and added the path to the meta-selftest directory to the bblayers.conf file. Running bitbake-layers show-layers command gives the output
layer path priority
==========================================================================
meta /home/[my name]/Documents/poky/meta 5
meta-poky /home/[my name]/Documents/poky/meta-poky 5
meta-yocto-bsp /home/[my name]/Documents/poky/meta-yocto-bsp 5
meta-selftest /home/[my name]/Documents/poky/meta-selftest 5
however, when I try to run bitbake meta-selftest I get the error:
Loading cache: 100%
Loaded 1294 entries from dependency cache.
ERROR: Nothing PROVIDES 'meta-selftest'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
What does this error mean? I checked meta-selftest's dependencies, and it doesn't have any, so I get the sense this error isn't saying there is a dependency issue, but I can't find any clear documentation on what this error is telling me. I get the vague sense it means that bitbake can't find meta-selftest, but show-layers contradicts that by listing it with the correct path.
Any help would be deeply appreciated.
-Patches
You don't bitbake a layer, you bitbake a recipe from that layer.
Try a bitbake test-empty-image for example. That is an image recipe provided by that layer.
Explore the meta-selftest directory and look for .bb files, the recipes. Those can be build using bitbake.
I recommend having a look at the quick start guide: http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html
You don't need bitbake the layers name.
Please check in meta-selftest dir and try to find the *.bb file (it's recipes). And try again with " bitbake recipes_name.bb "

Getting error when sending application to codename one build server

I have not done any build on the server before, but I have created numerous applications on my system. When trying to send this particular application to the build server, it was giving error on netbeans. This was the error I was getting:
init:
deps-clean:
Updating property file: C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\built-clean.properties
Deleting directory C:\Users\Olubori\Documents\NetBeansProjects\Interview\build
refresh-libs:
Deleting directory C:\Users\Olubori\Documents\NetBeansProjects\Interview\lib\impl
clean:
copy-desktop-override:
Created dir: C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\classes
copy-libs:
deps-jar:
Updating property file: C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\built-jar.properties
Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller code size and wider device support
Created dir: C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\tmp
Compiling 1 source file to C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\tmp
Created dir: C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\empty
Compiling 1 source file to C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.5
1 warning
Copying 1 file to C:\Users\Olubori\Documents\NetBeansProjects\Interview\build\classes
compile:
Created dir: C:\Users\Olubori\Documents\NetBeansProjects\Interview\dist
Copying 1 file to C:\Users\Olubori\Documents\NetBeansProjects\Interview\build
C:\Users\Olubori\Documents\NetBeansProjects\Interview\nbproject\build-impl.xml:990: The following error occurred while executing this line:
C:\Users\Olubori\Documents\NetBeansProjects\Interview\nbproject\build-impl.xml:834: copylibs doesn't support the "excludeFromCopy" attribute.
BUILD FAILED (total time: 0 seconds)
What could be the cause and how will I solve it?
Just remove that attribute from the XML build file, its a NetBeans bug: https://groups.google.com/d/msg/codenameone-discussions/X_HMILMsw_Y/jE0xDsL7nfAJ

loading program in econotag (contiki 2.7)

I am currently trying to run my code(written and compiled in contiki 2.7) in econotag. However i wasn't able to do so. I can compile with out any problem using
make TARGET=econotag hello-world.
but when i try to upload using the command
make TARGET=econotag hello-world.upload
the following message appears
../../platform/econotag/Makefile.econotag:10: ../..
make: *** No rule to make target `hello-world.upload'. Stop.
I know it used to work perfectly in contiki-2.6 with TARGET=redbee-econotag. so i tried it but the message was
**** This platform is old and will soon be removed ****
please use TARGET=econotag instead.
(or set ALLOW_OLD_PLATFORMS=1 to proceed)
. Stop.
I have seen some posts about installing the tool chain for uploading on econotag. but they didn't provide step by step procedure.
can anyone tell me what/how i should to install the tool chain to solve this problem and what command i should use after installation.
Here is how my colleague solved it
first compile the program you want to load (in this case hello-world) with
the command
make TARGET=econotag hello-world
note that this will generate a binary file with file name hello-world_econotag.bin (in the same directory with the code)
then go to directory
contiki-2.7/cpu/mc1322x/tools
and execute the pearl script used to upload binary files. (use the following command)
sudo ./mc1322x-load.pl -f "path to your binary file" -t /dev/ttyUSB1
this will upload the binary of your code to the econotag.
then reset your device (either with command or manually)
and the code should be running now

Resources