here's the problem :
at the last step of build, msbuild stop and the build is exited with code 1. I can't find wh.
Step 3/3: MSBuild (4s)
[14:57:34][Step 3/3] Starting: C:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:D:\Dev\CAE_Azure\master_Client\Scripts.CI\Releases.targets /msbuildPath:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
[14:57:34][Step 3/3] in directory: D:\Dev\CAE_Azure\master_Client\Scripts.CI\Releases.targets
[14:57:36][Step 3/3] Scripts.CI\Release.targets.teamcity: Build target: Main (2s)
[14:57:36][Scripts.CI\Release.targets.teamcity] Main (2s)
[14:57:36][Main] ***
[14:57:36][Main] *** 'Main' Target
[14:57:36][Main] ***
[14:57:36][Main] CallTarget
[14:57:36][Main] CallTarget (1s)
[14:57:37][Main] CallTarget (1s)
[14:57:37][CallTarget] CreateRelease (1s)
[14:57:37][CreateRelease] ***
[14:57:37][CreateRelease] *** 'CreateRelease' Target
[14:57:37][CreateRelease] ***
[14:57:37][CreateRelease] Exec (1s)
[14:57:38][CreateRelease] Return code: 1
[14:57:38][CreateRelease] Error
[14:57:38][Error] D:\Dev\CAE_Azure\master_Client\Scripts.CI\Releases.targets\Scripts.CI\Release.targets(305, 3): Error: The script raised an error: Build stopping.
[14:57:38][Step 3/3] Process exited with code 1
[14:57:38][Step 3/3] MSBuild output
[14:57:38][Step 3/3] Step MSBuild failed
Related
I am actually generating java source files dynamically through code generators. I want to create jar file containing the java files created through this code generator.
add_custom_target(lang ALL)
add_custom_command(
TARGET lang
COMMAND ${Protobuf_PROTOC_EXECUTABLE} ${CMD_PRG_LNG} --proto_path=${PROTO_FILES} ${COMMONS}/*.proto")
If I run my cmake without add_jar command, it successfully run and generate java files in the respective folders. But, if I add add_jar
add_jar(${JAR_NAME} ${JAVA_SOURCES})
The above instruction fails with the following error message.
Scanning dependencies of target ProtoJava
make[2]: *** No rule to make target '../protoJava/Data.java', needed by 'CMakeFiles/ProtoJava.dir/java_compiled_ProtoJava'. Stop.
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ProtoJava.dir/all' failed
make[1]: *** [CMakeFiles/ProtoJava.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
How to get the jar file created? I tried putting add_jar inside add_custom_command under the same target as java file creation.
add_custom_command(
TARGET lang_java
COMMAND add_jar(${JAR_NAME} ${JAVA_SOURCES}))
but it errors out with message
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
CMakeFiles/lang_java.dir/build.make:57: recipe for target 'lang_java' failed
make[2]: *** [lang_java] Error 2
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/lang_java.dir/all' failed
make[1]: *** [CMakeFiles/lang_java.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
How to fix this one?
------ Build started: Project: freertos, Configuration: Debug AVR ------
Build started.
Project "freertos.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "D:\AVR\freertos\freertos\freertos.cproj" (target "Build" depends on it):
Task "RunCompilerTask"
Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync
Building target: freertos.elf
Invoking: AVR/GNU Linker : 5.4.0
"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -o freertos.elf heap_1.o list.o main.o port.o queue.o tasks.o -Wl,-Map="freertos.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mrelax -mmcu=atmega128 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.3.300\gcc\dev\atmega128"
D:\AVR\freertos\freertos\Debug\Makefile(166,1): error: recipe for target 'freertos.elf' failed
tasks.o: In function `prvIdleTask':
D:\AVR\freertos\freertos\Debug\tasks.c(1,1): error: undefined reference to `vApplicationIdleHook'
collect2.exe(0,0): error: ld returned 1 exit status
make: *** [freertos.elf] Error 1
The command exited with code 2.
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "freertos.cproj" -- FAILED.
Done building project "freertos.cproj" -- FAILED.
Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
You have to options to solve this error:
1- set configUSE_IDLE_HOOK to 0 in FreeRTOSConfig.h.
2- Define a function that has the following name and prototype:
void vApplicationIdleHook( void );
Anything that starts 'Application' is expected to be provided by the application writer, rather than be part of the kernel - and in all cases the features are options - so as per the above you can either provide the hook function or tern the feature off.
Here is my code in .travis.yml file,after run build is passing, but I found the TEST are failed. I have no idea about this and block me a few days, appreciate your help. THX
--- Error as below ---
2018-12-20 05:57:42.698 xcodebuild[2394:8186] [MT]
IDETestOperationsObserverDebug: (CB8F382A-5B77-4BDA-BC4F-6EDF7B7DB822)
Beginning test session aaaaTests-CB8F382A-5B77-4BDA-BC4F-6EDF7B7DB822 at 2018-
12-20 05:57:42.698 with Xcode 10A255 on target <DVTiPhoneSimulator:
0x7f86387e49d0> {
SimDevice: iPhone 6 (B25EC6DB-0B2F-4920-B6C2-8560331BA779, iOS 9.1, Booted)
} (9.1 (13B143))
2018-12-20 05:57:53.744 xcodebuild[2394:8186] [MT]
IDETestOperationsObserverDebug: 11.068 elapsed -- Testing started completed.
2018-12-20 05:57:53.744 xcodebuild[2394:8186] [MT]
IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2018-12-20 05:57:53.744 xcodebuild[2394:8186] [MT]
IDETestOperationsObserverDebug: 11.068 sec, +11.068 sec -- end
2018-12-20 05:57:53.746 xcodebuild[2394:8186] Error
Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit,
operation never finished bootstrapping - no restart will be attempted"
UserInfo={NSLocalizedDescription=Early unexpected exit, operation never
finished bootstrapping - no restart will be attempted,
NSUnderlyingError=0x7f86389df930 {Error
Domain=IDETestOperationsObserverErrorDomain Code=5 "Test runner exited before
starting test execution." UserInfo={NSLocalizedDescription=Test runner exited
before starting test execution., NSLocalizedRecoverySuggestion=If you believe
this error represents a bug, please attach the result bundle at
/Users/travis/Library/Developer/Xcode/DerivedData/aaaa-
bdscsxnorhzvygafnsqdiqoriugx/Logs/Test/Run-aaaa-2018.12.20_05-57-22-
+0000.xcresult}}}
Testing failed:
aaaa.app (2488) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. Underlying error: Test runner exited before starting test execution.)
** TEST FAILED **
The command "set -o pipefail && xcodebuild -workspace aaaa.xcworkspace -scheme aaaa -destination platform\=iOS\ Simulator,OS\=9.1,name\=iPhone\ 6 build test | xcpretty" exited with 65.
Done. Your build exited with 1.
---My code as below---
language: objective-c
osx_image: xcode10
xcode_workspace: aaaa.xcworkspace
xcode_scheme: aaaa
xcode_destination: platform=iOS Simulator,OS=9.1,name=iPhone 6
before_install:
- pod repo update
- npm install ios-sim -g
- ios-sim start --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-6, 9.1"
The issue can fix by below step:
change the version of osx_image in .travis.yml file and retry
// if xcode10.1 build failed, you can change to other version, like xcode9.4
osx_image: xcode10.1
Travis support xcode version list:
https://docs.travis-ci.com/user/languages/objective-c/
I have installed the Cmake Plugin to be able to build my C/C++ project with TeamCity. However, so far I had no luck building the project successfully. The build server and the agent are running on separate docker containers. The build fails with the following error:
[14:09:29] Step 1/1: DebugBuild (CMake build)
[14:09:29] [Step 1/1] Starting: /bin/bash -c "cmake "$#" 2>&1" -- --build . --target suite_1_app --config Debug --
[14:09:29] [Step 1/1] in directory: /opt/buildagent/work/3249fc82f6dadd5
[14:09:29] [Step 1/1] --: cmake: command not found
[14:09:29] [Step 1/1] Process exited with code 127
[14:09:30] [Step 1/1] Process exited with code 127 (Step: DebugBuild (CMake build))
[14:09:30] [Step 1/1] Step DebugBuild (CMake build) failed
[14:09:30] Publishing internal artifacts
[14:09:30] Build finished
And here is the configuration I used in the build step:
Runner type: Cmake build
Step name: DebugBuild
Build target: suite_1_app
Configuration: Debug
Any help would be appreciated!
$ cmd.exe /C "D:\SW\eclipse\plugins\org.apache.ant_1.8.4.v201303080030\bin\ant.bat axc - Functional Suite && exit %%ERRORLEVEL%%"
Unknown argument: -
ant [options] [target [target2 [target3] ...]]
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
All setup configured properly.