Here is my gitlab-ci.yml:
variables:
GIT_STRATEGY: fetch
GIT_CLONE_PATH: $CI_BUILDS_DIR
GIT_DEPTH: 10
GIT_CLEAN_FLAGS: none
stages:
- test
- build
unit-test:
script: "C:\\'Program Files'\\Unity\\Hub\\Editor\\'2019.4.3f1'\\Editor\\Unity.exe \
-runTests \
-batchmode \
-projectPath . \
-logFile ./log.txt \
-testResults ./unit-tests.xml"
stage: test
tags:
- unity
unity-build:
stage: build
script: echo 'Building...'
tags:
- unity
Here is the output of the pipeline:
Running with gitlab-runner 13.1.1 (6fbc7474)
on Desktop ryBW4ftU
Preparing the "shell" executor
00:00
Using Shell executor...
Preparing environment
00:01
Running on DESKTOP-G62KPLQ...
Getting source from Git repository
00:06
Fetching changes with git depth set to 10...
Reinitialized existing Git repository in X:/ScarsOFHonor_CI/.git/
Checking out 8ca0d362 as master...
Encountered 2 file(s) that should have been pointers, but weren't:
ProjectSettings/EditorSettings.asset
ProjectSettings/XRSettings.asset
git-lfs/2.4.2 (GitHub; windows amd64; go 1.8.3; git 6f4b2e98)
Skipping Git submodules setup
Executing "step_script" stage of the job script
01:18
$ C:\'Program Files'\Unity\Hub\Editor\'2019.4.3f1'\Editor\Unity.exe -runTests -batchmode -projectPath . -logFile ./log.txt -testResults ./unit-tests.xml
. is not a valid directory name. Please make sure there are no unallowed characters in the name.
(Filename: C:\buildslave\unity\build\Runtime/Utilities/FileVFS.cpp Line: 218)
. is not a valid directory name. Please make sure there are no unallowed characters in the name.
(Filename: C:\buildslave\unity\build\Runtime/Utilities/FileVFS.cpp Line: 218)
Job succeeded
As you can see pipeline passed with success. However that should not be true. I intentionally created an pushed a failing test.
See the content of unit-tests.xml:
<?xml version="1.0" encoding="utf-8"?>
<test-run id="2" testcasecount="1" result="Failed(Child)" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0" engine-version="3.5.0.0" clr-version="4.0.30319.42000" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.105692">
<test-suite type="TestSuite" id="1007" name="ScarsOFHonor" fullname="ScarsOFHonor" runstate="Runnable" testcasecount="1" result="Failed" site="Child" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.105692" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0">
<properties />
<failure>
<message><![CDATA[One or more child tests had errors]]></message>
</failure>
<test-suite type="Assembly" id="1010" name="EditMode.dll" fullname="X:/ScarsOFHonor_CI/Library/ScriptAssemblies/EditMode.dll" runstate="Runnable" testcasecount="1" result="Failed" site="Child" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.079181" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0">
<properties>
<property name="_PID" value="27144" />
<property name="_APPDOMAIN" value="Unity Child Domain" />
<property name="platform" value="EditMode" />
</properties>
<failure>
<message><![CDATA[One or more child tests had errors]]></message>
</failure>
<test-suite type="TestSuite" id="1011" name="Tests" fullname="Tests" runstate="Runnable" testcasecount="1" result="Failed" site="Child" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.076239" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0">
<properties />
<failure>
<message><![CDATA[One or more child tests had errors]]></message>
</failure>
<test-suite type="TestFixture" id="1008" name="DummyTest" fullname="Tests.DummyTest" classname="Tests.DummyTest" runstate="Runnable" testcasecount="1" result="Failed" site="Child" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.067615" total="1" passed="0" failed="1" inconclusive="0" skipped="0" asserts="0">
<properties />
<failure>
<message><![CDATA[One or more child tests had errors]]></message>
</failure>
<test-case id="1009" name="DummyTestSimplePasses" fullname="Tests.DummyTest.DummyTestSimplePasses" methodname="DummyTestSimplePasses" classname="Tests.DummyTest" runstate="Runnable" seed="785721540" result="Failed" start-time="2020-07-17 11:40:32Z" end-time="2020-07-17 11:40:32Z" duration="0.032807" asserts="0">
<properties />
<failure>
<message><![CDATA[ Expected: 1
But was: 2
]]></message>
<stack-trace><![CDATA[at Tests.DummyTest.DummyTestSimplePasses () [0x00001] in X:\ScarsOFHonor_CI\Assets\Tests\EditMode\DummyTest.cs:15
]]></stack-trace>
</failure>
</test-case>
</test-suite>
</test-suite>
</test-suite>
</test-suite>
</test-run>
As you can see there is a failing test. Why then my pipeline passes ?
Is there any way I can print my results in the pipeline itself and mark the pipeline as failed when actually I have failing test?
Hm a bit (actually extremely :D ) dirty but you could simply check if the result file contains the word <failure> using find like e.g.
find "<failure>" ./unit-tests.xml > nul && exit 1 || exit 0
> nul don't print to the console
so if the word <failure> was found it exits with failure (1) otherwise with success (0)
Not a yml expert but I think you could e.g. add it to
script: "C:\\'Program Files'\\Unity\\Hub\\Editor\\'2019.4.3f1'\\Editor\\Unity.exe -runTests -batchmode -projectPath . -logFile ./log.txt -testResults ./unit-tests.xml && find '<failure>' ./unit-tests.xml > nul && exit 1 || exit 0"
Related
I followed the samples at OrientDBs manual to extract data from a xml collection (2nd sample) and load it into a OrientDB graph database: it worked.
But now i stuck and don't know, how to describe the oetl-configuration (json-File), if I change the samples source data that it looks like (and meets my requirements) - nest a <ADD>-Section:
<?xml version="1.0" encoding="UTF-8"?>
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<ADD>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</ADD>
</CD>
<CD>
<TITLE>Hide your heart</TITLE>
<ARTIST>Bonnie Tyler</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>CBS Records</COMPANY>
<ADD>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</ADD>
</CD>
</CATALOG>
Does anybody know, how to write the configuration. The following doesn't work, and the ADD field in my graph database is an empty string:
...
"extractor" :
{ "xml":
{
"rootNode": "CATALOG.CD",
"tagsAsAttribute": ["CATALOG.CD"]
}
},
...
Thanks for your help!
Best
Example usecase: Enumerate input options from Rundeck inputs by as script as an array to cycle through.
Dynamically read all user provided input options from Rundeck
I understand that inputs can be referenced by #option.inputname#
My question: Is there a input array that can be referenced in order to cycle through inputs?
Example language: Powershell
$Inputs = #options#
foreach($Input in $Inputs)
{
Write-Host $Input
}
The question is not to cycle through an array for one input but instead collect all inputs as an array.
Job Eg:
defaultTab: nodes
description: ''
executionEnabled: true
group: Test/Example
id: e6c16942-baf0-4255-9c05-87bc11f66f6f
loglevel: INFO
name: StackOverflow-Example
nodeFilterEditable: false
options:
name: User
name: city
name: location
name: telephone
scheduleEnabled: true
sequence:
commands:
script: getopts
keepgoing: false
strategy: node-first
uuid: e6c16942-baf0-4255-9c05-87bc11f66f6f
Can options as an array be collected by commandline ? I know this is possible via Rundecks API but my use case will be to achieve this in-script :-)
Do not believe that this is possible.
Sure, in this way (my example is under Bash):
echo "starting"
for i in #option.opt1#
do
echo "Welcome $i times"
done
I leave the job definition with an editable option by any user:
<joblist>
<job>
<context>
<options preserveOrder='true'>
<option name='opt1' value='1 2 3 4 5' />
</options>
</context>
<defaultTab>nodes</defaultTab>
<description></description>
<executionEnabled>true</executionEnabled>
<id>298a3027-ede0-47f0-be88-308647839b82</id>
<loglevel>INFO</loglevel>
<name>JobEnumerate</name>
<nodeFilterEditable>false</nodeFilterEditable>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<script><![CDATA[echo "starting"
for i in #option.opt1#
do
echo "Welcome $i times"
done]]></script>
<scriptargs />
</command>
</sequence>
<uuid>298a3027-ede0-47f0-be88-308647839b82</uuid>
</job>
</joblist>
And the result here.
I am using a Mongo DB connector to insert data into Mongo Instance located in mLab.
I am sure I am using the correct credentials since these credentials are working when I am using them through a Java code.
But here using the Mongo DB connector constantly throws me an error as can be seen below.
org.mule.api.ConnectionException: Couldn't connect with the given
credentials org.mule.api.ConnectionException: Couldn't connect with
the given credentials at
org.mule.module.mongo.MongoCloudConnector.getDatabase(MongoCloudConnector.java:1304)
at
org.mule.module.mongo.MongoCloudConnector.connect(MongoCloudConnector.java:1173)
at
org.mule.module.mongo.connectivity.MongoCloudConnectorConnectionFactory.makeObject(MongoCloudConnectorConnectionFactory.java:56)
at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
at
org.mule.module.mongo.connectivity.MongoCloudConnectorConnectionManager.acquireConnection(MongoCloudConnectorConnectionManager.java:361)
at
org.mule.module.mongo.connectivity.MongoCloudConnectorConnectionManager.test(MongoCloudConnectorConnectionManager.java:444)
at
org.mule.tooling.metadata.api.utils.ConnectionTester.internalTestConnection(ConnectionTester.java:88)
at
org.mule.tooling.metadata.api.utils.ConnectionTester.testConnectionFor(ConnectionTester.java:113)
at
Is there something that I am missing here?
Below is the XML :
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:mongo="http://www.mulesoft.org/schema/mule/mongo" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd
http://www.mulesoft.org/schema/mule/mongo http://www.mulesoft.org/schema/mule/mongo/current/mule-mongo.xsd">
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<http:request-config name="HTTP_Request_Configuration" host="developers.zomato.com" port="80" doc:name="HTTP Request Configuration"/>
<http:request-config name="HTTP_Request_Configuration1" host="api.mlab.com" port="80" doc:name="HTTP Request Configuration"/>
<mongo:config name="Mongo_DB" password="XXXXX" database="restaurant_data" host="ds241039.mlab.com" port="41039" doc:name="Mongo DB" username="XxXx"/>
<flow name="rest-webservice-applicationFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/rest" allowedMethods="GET" doc:name="HTTP"/>
<http:request config-ref="HTTP_Request_Configuration" path="api/v2.1/search" method="GET" doc:name="HTTP">
<http:request-builder>
<http:query-param paramName="entity_id" value="1"/>
<http:query-param paramName="entity_type" value="city"/>
<http:header headerName="user-key" value="XXXXXXXXX"/>
</http:request-builder>
</http:request>
<dw:transform-message doc:name="Transform Message" metadata:id="13f7b603-ac1e-45b4-9950-32c39a20ee36">
<dw:input-payload mimeType="application/json"/>
<dw:set-payload><![CDATA[%dw 1.0
%output application/json
---
{
results_found: payload.results_found,
results_start: payload.results_start,
results_shown: payload.results_shown,
restaurants: payload.restaurants map ((restaurant , indexOfRestaurant) -> {
restaurant: {
R: restaurant.restaurant.R,
id: restaurant.restaurant.id,
name: restaurant.restaurant.name,
url: restaurant.restaurant.url,
location: restaurant.restaurant.location,
switch_to_order_menu: restaurant.restaurant.switch_to_order_menu,
cuisines: restaurant.restaurant.cuisines,
average_cost_for_two: restaurant.restaurant.average_cost_for_two,
price_range: restaurant.restaurant.price_range,
currency: restaurant.restaurant.currency,
offers: restaurant.restaurant.offers map ((offer , indexOfOffer) -> offer),
thumb: restaurant.restaurant.thumb,
user_rating: restaurant.restaurant.user_rating,
photos_url: restaurant.restaurant.photos_url,
menu_url: restaurant.restaurant.menu_url,
featured_image: restaurant.restaurant.featured_image,
has_online_delivery: restaurant.restaurant.has_online_delivery,
is_delivering_now: restaurant.restaurant.is_delivering_now,
deeplink: restaurant.restaurant.deeplink,
has_table_booking: restaurant.restaurant.has_table_booking,
events_url: restaurant.restaurant.events_url
}
})
}]]></dw:set-payload>
</dw:transform-message>
<mongo:json-to-dbobject doc:name="Mongo DB"/>
<mongo:insert-object config-ref="Mongo_DB" doc:name="Mongo DB" collection="restaurant"/>
</flow>
</mule>
The MongoDB connector uses the deprecated MONGODB-CR authentication mechanism, MLab is expecting the SCRAM-SHA-1 mechanism.
The SCRAM-SHA-1 mechanism is available in the enterprise version of Mulesoft ESB.
The connection URI configuration is available on version 4.2.0 and above. This is how you configure it:
Add the connector to pom.xml:
<dependency>
<groupId>org.mule.connectors</groupId>
<artifactId>mule-mongo-connector</artifactId>
<version>4.2.0</version>
</dependency>
Configure a connection in your flow:
<mongo:config-connection-string name="MongoDB_Config"
connectionString="mongodb://jdoe:myPass#localhost:27017?authMechanism=SCRAM-SHA-1"/>
UPDATE: bitbake core-image-minimal without any added layers gives me errors such as:
ERROR: Task (/home/rama/repositories/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/m4/m4-native_1.4.17.bb:do_compile) failed with exit code '1'
I just initlized the repo like here https://developer.toradex.com/knowledge-base/board-support-package/openembedded-(core)#V21_and_Later_Images
and made no changes whatsoever! Image 2.8 is giving me problems with a layers that requires things to be in the same branch.
UPDATE: Adding full manifest for morty and rocko
rocko
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote alias="repo" fetch="http://github.com/Angstrom-distribution" name="githa"/>
<remote alias="repo" fetch="http://github.com/Freescale" name="githf"/>
<remote alias="repo" fetch="http://github.com/OSSystems" name="githo"/>
<remote alias="repo" fetch="http://github.com/meta-qt5" name="githq"/>
<remote alias="repo" fetch="http://github.com/morphis" name="giths"/>
<remote alias="repo" fetch="http://github.com/watatuki" name="githt"/>
<remote alias="repo" fetch="http://github.com/openembedded" name="oe"/>
<remote alias="repo" fetch="http://git.toradex.com" name="tdx"/>
<remote alias="repo" fetch="https://git.yoctoproject.org/git" name="yocto"/>
<remote alias="repo" fetch="https://github.com/mendersoftware" name="mender"/>
<default sync-j="4"/>
<project name="bitbake.git" path="layers/openembedded-core/bitbake" remote="oe" revision="1.36"/>
<project name="meta-angstrom.git" path="layers/meta-angstrom" remote="githa" revision="angstrom-v2017.12-rocko"/>
<project name="meta-browser.git" path="layers/meta-browser" remote="githo" revision="master"/>
<project name="meta-freescale-3rdparty.git" path="layers/meta-freescale-3rdparty" remote="githf" revision="rocko"/>
<project name="meta-freescale-distro.git" path="layers/meta-freescale-distro" remote="githf" revision="rocko"/>
<project name="meta-freescale.git" path="layers/meta-freescale" remote="githf" revision="rocko"/>
<project name="meta-jetson-tk1.git" path="layers/meta-jetson-tk1" remote="githt" revision="Morty"/>
<project name="meta-lxde.git" path="layers/meta-lxde" remote="tdx" revision="rocko-next"/>
<project name="meta-openembedded.git" path="layers/meta-openembedded" remote="oe" revision="rocko"/>
<project name="meta-qt4" path="layers/meta-qt4" remote="yocto" revision="rocko"/>
<project name="meta-qt5.git" path="layers/meta-qt5" remote="githq" revision="rocko"/>
<project name="meta-snappy.git" path="layers/meta-snappy" remote="giths" revision="pyro"/>
<project name="meta-toradex-bsp-common.git" path="layers/meta-toradex-bsp-common" remote="tdx" revision="rocko-next"/>
<project name="meta-toradex-demos.git" path="layers/meta-toradex-demos" remote="tdx" revision="rocko-next">
<copyfile dest="export" src="buildconf/export"/>
</project>
<project name="meta-toradex-nxp.git" path="layers/meta-toradex-nxp" remote="tdx" revision="rocko-next"/>
<project name="meta-toradex-tegra.git" path="layers/meta-toradex-tegra" remote="tdx" revision="rocko-next"/>
<project name="openembedded-core.git" path="layers/openembedded-core" remote="oe" revision="rocko"/>
<project name="meta-virtualization.git" path="layers/meta-virtualization" remote="yocto" revision="rocko"/>
<project name="meta-mender.git" path="layers/meta-mender" remote="mender" revision="pyro"/>
</manifest>
morty:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote alias="repo" fetch="http://github.com/Angstrom-distribution" name="githa"/>
<remote alias="repo" fetch="http://github.com/Freescale" name="githf"/>
<remote alias="repo" fetch="http://github.com/OSSystems" name="githo"/>
<remote alias="repo" fetch="http://github.com/meta-qt5" name="githq"/>
<remote alias="repo" fetch="http://github.com/morphis" name="giths"/>
<remote alias="repo" fetch="http://github.com/watatuki" name="githt"/>
<remote alias="repo" fetch="http://git.linaro.org/git-ro/openembedded" name="linaro"/>
<remote alias="repo" fetch="http://github.com/openembedded" name="oe"/>
<remote alias="repo" fetch="http://git.toradex.com" name="tdx"/>
<remote alias="repo" fetch="https://git.yoctoproject.org/git" name="yocto"/>
<remote alias="repo" fetch="https://github.com/mendersoftware" name="mender"/>
<remote alias="repo" fetch="https://github.com/mem" name="mem"/>
<default sync-j="4"/>
<project name="bitbake.git" path="layers/openembedded-core/bitbake" remote="oe" revision="991b533f1d61042a7b3edd1fbf3dea0bf9991606" upstream="1.32"/>
<project name="meta-angstrom.git" path="layers/meta-angstrom" remote="githa" revision="9625910bb4bb48b3f4d87a1e9ff3576d40bd656a" upstream="angstrom-v2016.12-yocto2.2"/>
<project name="meta-browser.git" path="layers/meta-browser" remote="githo" revision="1569eeb9cc1b87632abbf35fbb05f4ac4eeb3987" upstream="morty"/>
<project name="meta-freescale-3rdparty.git" path="layers/meta-freescale-3rdparty" remote="githf" revision="e55167c3c2770c07a475342f99cc2a3a23fbfa0c" upstream="morty"/>
<project name="meta-freescale-distro.git" path="layers/meta-freescale-distro" remote="githf" revision="cd5c7a2539f40004f74126e9fdf08254fd9a6390" upstream="morty"/>
<project name="meta-freescale.git" path="layers/meta-freescale" remote="githf" revision="05681fdf8298bb441c15135eae424c7601b07e98" upstream="morty"/>
<project name="meta-jetson-tk1.git" path="layers/meta-jetson-tk1" remote="githt" revision="e8b87fe8da7c6fcffa37ab245f50082953cc1ee1" upstream="Morty"/>
<project name="meta-linaro.git" path="layers/meta-linaro" remote="linaro" revision="5d2cb685217794293ea2bab18d7e62019c329d06" upstream="morty"/>
<project name="meta-lxde.git" path="layers/meta-lxde" remote="tdx" revision="1bd36a4d0f7e1e9fdea9c4c991188bc1dc9da421" upstream="morty"/>
<project name="meta-openembedded.git" path="layers/meta-openembedded" remote="oe" revision="b40116cf457b88a2db14b86fda9627fb34d56ae6" upstream="morty"/>
<project name="meta-qt4" path="layers/meta-qt4" remote="yocto" revision="f389368dc86e745df14cab9eeb9a94bc02bd273e" upstream="morty"/>
<project name="meta-qt5.git" path="layers/meta-qt5" remote="githq" revision="2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b" upstream="morty"/>
<project name="meta-snappy.git" path="layers/meta-snappy" remote="giths" revision="f6df6a63756d9976bcccb5fefdbc64e5cc794c99" upstream="master"/>
<project name="meta-toradex-bsp-common.git" path="layers/meta-toradex-bsp-common" remote="tdx" revision="bb3fafea5a3094909c8d7fb3216c37210fcfc339" upstream="morty"/>
<project name="meta-toradex-demos.git" path="layers/meta-toradex-demos" remote="tdx" revision="a08f1a3164e9ce16fca09f1f1c016b81eb1fcfaa" upstream="morty">
<copyfile dest="export" src="buildconf/export"/>
</project>
<project name="meta-toradex-nxp.git" path="layers/meta-toradex-nxp" remote="tdx" revision="c4f34b34bf34f44b974a7add623cafff17d880ad" upstream="morty"/>
<project name="meta-toradex-tegra.git" path="layers/meta-toradex-tegra" remote="tdx" revision="8deaad62384fbe4f4079f62bb7fdfa70ef199236" upstream="morty"/>
<project name="openembedded-core.git" path="layers/openembedded-core" remote="oe" revision="93b7f83a4212409a55ddf568a34468d4f6ef2c06" upstream="morty"/>
<project name="meta-virtualization.git" path="layers/meta-virtualization" remote="yocto" revision="morty" upstream="morty"/>
<project name="meta-mender.git" path="layers/meta-mender" remote="mender" revision="morty" upstream="morty"/>
<project name="oe-meta-go.git" path="layers/oe-meta-go" remote="mem" revision="master" />
</manifest>
Not sure how to add the revisions? I know the branch name should be in upstream but without revision it doesnt let my do repo sync
UPDATE: I update the environment as you suggested, and this is what i got while showing layers:
WARNING: No recipes available for:
/home/rama/repositories/oe-core/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
/home/rama/repositories/oe-core/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
/home/rama/repositories/oe-core/build/../layers/meta-jetson-tk1/recipes-graphics/mesa/mesa_11.1.1.bbappend
/home/rama/repositories/oe-core/build/../layers/meta-toradex-demos/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.%.bbappend
/home/rama/repositories/oe-core/build/../layers/meta-toradex-demos/recipes-support/icu/icu_57%.bbappend
/home/rama/repositories/oe-core/build/../layers/meta-toradex-demos/recipes-support/opencv/opencv_2.4.bbappend
and also gives me error while bitbaking and gets stuck here:
| make[2]: Leaving directory `/home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.23443)
ERROR: Task (/home/rama/repositories/oe-core/build/../layers/openembedded-core/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'
Waiting for 1 running tasks to finish:
0: binutils-cross-arm-2.29-r0 do_fetch (pid 10996) 35% |##############################
is this normal?
I have a setup from here https://developer.toradex.com/knowledge-base/board-support-package/openembedded-(core)#V21_and_Later_Images with all my layers in morty branch like the following:
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-angstrom-linux-gnueabi"
MACHINE = "apalis-imx6"
DISTRO = "angstrom"
DISTRO_VERSION = "v2016.12"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-angstrom = "HEAD:9625910bb4bb48b3f4d87a1e9ff3576d40bd656a"
meta-toradex-nxp = "HEAD:c4f34b34bf34f44b974a7add623cafff17d880ad"
meta-freescale = "HEAD:05681fdf8298bb441c15135eae424c7601b07e98"
meta-freescale-3rdparty = "HEAD:e55167c3c2770c07a475342f99cc2a3a23fbfa0c"
meta-toradex-tegra = "HEAD:8deaad62384fbe4f4079f62bb7fdfa70ef199236"
meta-jetson-tk1 = "HEAD:e8b87fe8da7c6fcffa37ab245f50082953cc1ee1"
meta-toradex-bsp-common = "HEAD:bb3fafea5a3094909c8d7fb3216c37210fcfc339"
meta-snappy = "HEAD:f6df6a63756d9976bcccb5fefdbc64e5cc794c99"
meta-linaro-toolchain = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"
meta-oe
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
meta-systemd
meta-networking
meta-multimedia
meta-python = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
meta-lxde = "HEAD:1bd36a4d0f7e1e9fdea9c4c991188bc1dc9da421"
meta-browser = "HEAD:1569eeb9cc1b87632abbf35fbb05f4ac4eeb3987"
meta-qt4 = "HEAD:f389368dc86e745df14cab9eeb9a94bc02bd273e"
meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-toradex-demos = "HEAD:a08f1a3164e9ce16fca09f1f1c016b81eb1fcfaa"
meta = "HEAD:93b7f83a4212409a55ddf568a34468d4f6ef2c06"
meta-virtualization = "morty:eb6b5129561eda9ea1f47e85ab9ed9e5a6b8f64c"
But when bitbaking I get the following error?
ERROR: openssl-native-1.0.2j-r0 do_compile: oe_runmake failed
ERROR: openssl-native-1.0.2j-r0 do_compile: Function failed: do_compile (log file is located at /home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/temp/log.do_compile.15463)
ERROR: Logfile of failure stored in: /home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/temp/log.do_compile.15463
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -e MAKEFLAGS= depend
| making depend in crypto...
| make[1]: Entering directory `/home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/openssl-1.0.2j/crypto'
| makedepend: warning: cryptlib.c (reading /usr/include/stdlib.h, line 32): cannot find include file "stddef.h"
| not in ./stddef.h
| not in ../stddef.h
| not in ../include/stddef.h
| not in /usr/include/stddef.h
| makedepend: warning: cryptlib.c (reading /usr/include/sys/types.h, line 146): cannot find include file "stddef.h"
| not in ./stddef.h
| not in ../stddef.h
| not in ../include/stddef.h
| not in /usr/include/stddef.h
and this :
| make[2]: Leaving directory `/home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/openssl-1.0.2j'
| make[1]: *** [shared] Error 2
| make[1]: Leaving directory `/home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/openssl-1.0.2j/crypto'
| make: *** [build_crypto] Error 1
| ERROR: Function failed: do_compile (log file is located at /home/rama/repositories/oe-core/build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2j-r0/temp/log.do_compile.5421)
ERROR: Task (virtual:native:/home/rama/repositories/oe-core/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb:do_compile) failed with exit code '1'
Is there anyway I can fix this?
maybe you do not have installed all the required programs for building, I have a similar situation and I just install qemu, gcc-arm-linux-gnueabi, gcc-arm-linux-gnueabihf and gcc-none-linux-gnueabi.
I have an ecore model MyModel.ecore for which i want to generate code using Xpand. I dont have edit code or a runtime environment for the xpand project, i just want to create a xpand project, load MyModel.ecore, create a model.xmi using "create dynamic instance" and run.
The problem is that my workflow file doesnt seems to recognize the elements from my metamodel.
Here is the code from my workflow:
<?xml version="1.0"?>
<workflow>
<property name="model" value="com.example/src/Application.xmi" />
<property name="src-gen" value="src-gen" />
<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
<platformUri value=".."/>
</bean>
<!-- instantiate metamodel -->
<bean id="mm_emf" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
<!-- load model and store it in slot 'model' -->
<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="platform:/resource/${model}" />
<modelSlot value="model" />
</component>
<!-- check model -->
<component class="org.eclipse.xtend.check.CheckComponent">
<metaModel idRef="mm_emf"/>
<checkFile value="metamodel::Checks" />
<emfAllChildrenSlot value="model" />
</component>
<!-- generate code -->
<component class="org.eclipse.xpand2.Generator">
<metaModel idRef="mm_emf"/>
<expand
value="template::Template::Root FOR Application" />
<outlet path="${src-gen}" >
<postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />
</outlet>
</component>
My template file:
«IMPORT MyModel»
«DEFINE Root FOR Application»
«FILE "AndroidManifest.xml"»
«ENDFILE»
«EXPAND ProcesaScreens FOREACH Screens»
«ENDDEFINE»
«DEFINE ProcesaScreens FOR Screen»
«FILE this.name +".java"»
«IF (this.metaType.compareTo(StartScreen.metaType) == 0)»
«EXPAND ProcesaStartScreen FOR (StartScreen)this»
«ENDIF»
«ENDFILE»
«ENDDEFINE»
«DEFINE ProcesaStartScreen FOR StartScreen»
«FILE "FilePrueba.java"»
«ENDFILE»
«ENDDEFINE»
And im getting this error:
695 INFO CompositeComponent - Reader: Loading model from platform:/resource/guiamovil.xpand/src/Application.xmi
890 INFO CompositeComponent - CheckComponent: slot model check file(s): metamodel::Checks
1329 INFO CompositeComponent - Generator: generating 'template::Template::Root FOR Application' => src-gen
1340 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component of type org.eclipse.xpand2.Generator:
EvaluationException : Couldn't find type or property 'Application'
[59,11] on line 1 'Application'
1340 ERROR WorkflowEngine - Workflow interrupted. Reason: Couldn't find type or property 'Application'
1340 ERROR WorkflowEngine - [ERROR]: Couldn't find type or property 'Application'(Element: Application; Reported by: Generator: generating 'template::Template::Root FOR Application' => src-gen)
1341 ERROR WorkflowEngine - [ERROR]: Couldn't find type or property 'Application'(Element: EXPAND template::Template::Root FOR Application; Reported by: Generator: generating 'template::Template::Root FOR Application' => src-gen)
I imagine its something in the workflow.
Thanks
I think you should register your models first :
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
<platformUri value=".."/>
<registerGeneratedEPackage value="com.issamux.example"/>
....
//
</bean>
<!-- instantiate metamodel -->
<bean id="mm_emf" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>
//your code
let me now if this resolved your problem...