Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29074 Discussions

error PRJ0019: A tool returned an error code and manifest

Jason_G_1
Beginner
637 Views
I was getting the

error PRJ0019: A tool returned an error code

error message when compiling. When a ran the exe it said it was not a win32 application. then after looking at the BuildLog.htm it seemed to be happening when "embedding manifest". Under Linker, Manifest File, if I turn off generating a manifest it compiles with no problem. Why?

Thanks

Jason
0 Kudos
5 Replies
Steven_L_Intel1
Employee
637 Views
What error messages did the manifest tool give?
0 Kudos
Jason_G_1
Beginner
637 Views
No specific error message - at least that I can tell. Here is the last few lines of the BuildLog.htm


Linking...
Creating temporary file &quotRSP1.rsp" with contents
[
/OUT:&quotDebuggerEnergyPlus.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusdebuggerenergyplus.exe.intermediate.manifest" /DEBUG /PDB:&quotDebugger/EnergyPlus.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusdebuggerenergyplus.lib" &quotDebuggerDisplayRoutines.obj" &quotDebuggerDataStringGlobals.obj" &quotDebuggerDataPrecisionGlobals.obj" &quotDebuggerDataHVACControllers.obj" &quotDebuggerDataShadowingCombinations.obj" &quotDebuggerDataRootFinder.obj" &quotDebuggerDataErrorTracking.obj" &quotDebuggerDataHeatBalFanSys.obj" &quotDebuggerDataHeatBalSurface.obj" &quotDebuggerDataConversions.obj" &quotDebuggerDataSystemVariables.obj" &quotDebuggerDataMoistureBalanceEMPD.obj" &quotDebuggerDataDElight.obj" &quotDebuggerDataGlobals.obj" &quotDebuggerDataZoneEnergyDemands.obj" &quotDebuggerDataRuntimeLanguage.obj" &quotDebuggerDataBranchNodeConnections.obj" &quotDebuggerDElightManagerF_NO.obj" &quotDebuggerDataLoopNode.obj" &quotDebuggerDataDaylightingDevices.obj" &quotDebuggerDataGenerators.obj" &quotDebuggerDataWater.obj" &quotDebuggerDataAirLoop.obj" &quotDebuggerDataSPARKLink.obj" &quotDebuggerDataCostEstimate.obj" &quotDebuggerDataUCSDSharedData.obj" &quotDebuggerDataPhotovoltaics.obj" &quotDebuggerDataEnvironment.obj" &quotDebuggerDataVectorTypes.obj" &quotDebuggerDataZoneEquipment.obj" &quotDebuggerDataConvergParams.obj" &quotDebuggerDataSurfaces.obj" &quotDebuggerDataMoistureBalance.obj" &quotDebuggerDatadefineequip.obj" &quotDebuggerDataRoomAir.obj" &quotDebuggerDataZoneControls.obj" &quotDebuggerOutputReportPredefined.obj" &quotDebuggerDataHVACGlobals.obj" &quotDebuggerDataDaylighting.obj" &quotDebuggerDataPlant.obj" &quotDebuggerDataViewFactorInformation.obj" &quotDebuggerDataAirflowNetwork.obj" &quotDebuggerDataSizing.obj" &quotDebuggerInputProcessor.obj" &quotDebuggerGeneral.obj" &quotDebuggerCurveManager.obj" &quotDebuggerRuntimeLanguageProcessor.obj" &quotDebuggerPsychRoutines.obj" &quotDebuggerDataSurfaceColors.obj" &quotDebuggerVectorUtilities.obj" &quotDebuggerHVACInterfaceManager.obj" &quotDebuggerSPARKUtilityRoutines.obj" &quotDebuggerDataHeatBalance.obj" &quotDebuggerScheduleManager.obj" &quotDebuggerAirflowNetworkSolver.obj" &quotDebuggerPlantFlowResolver.obj" &quotDebuggerFluidProperties.obj" &quotDebuggerDataGlobalConstants.obj" &quotDebuggerRootFinder.obj" &quotDebuggerMoistureTranFuncCalc.obj" &quotDebuggerHeatBalanceConvectionCoeffs.obj" &quotDebuggerDataAirSystems.obj" &quotDebuggerWaterManager.obj" &quotDebuggerHeatBalFiniteDifferenceManager.obj" &quotDebuggerExteriorEnergyUseManager.obj" &quotDebuggerBranchNodeConnections.obj" &quotDebuggerSurfaceGeometry.obj" &quotDebuggerRoomAirModelUFAD.obj" &quotDebuggerMoistureBalanceEMPDManager.obj" &quotDebuggerRa diantSystemHighTemp.obj" &quotDebuggerHeatBalanceMovableInsulation.obj" &quotDebuggerWindowManager.obj" &quotDebuggerSPARKLink_No.obj" &quotDebuggerRoomAirModelDisplacementVent.obj" &quotDebuggerHeatBalanceIntRadExchange.obj" &quotDebuggerSolarReflectionManager.obj" &quotDebuggerConductionTransferFunctionCalc.obj" &quotDebuggerPollutionAnalysisModule.obj" &quotDebuggerMoistureBalanceManager.obj" &quotDebuggerEarthTube.obj" &quotDebuggerOutputProcessor.obj" &quotDebuggerDaylightingDevices.obj" &quotDebuggerRoomAirModelMundt.obj" &quotDebuggerRoomAirModelCrossVent.obj" &quotDebuggerEMSManager.obj" &quotDebuggerNodeInputManager.obj" &quotDebuggerEcoRoof.obj" &quotDebuggerPlantSurfaceGroundHeatExchanger.obj" &quotDebuggerWeatherManager.obj" &quotDebuggerPlantPipes.obj" &quotDebuggerHVACMixerComponent.obj" &quotDebuggerDemandManager.obj" &quotDebuggerRadiantSystemLowTemp.obj" &quotDebuggerPlantIceThermalStorage.obj" &quotDebuggerHVACSteamCoilComponent.obj" &quotDebuggerPlantOutsideHeatingSources.obj" &quotDebuggerPlantConnectionComp.obj" &quotDebuggerHVACDualDuctSystem.obj" &quotDebuggerPurchasedairmanager.obj" &quotDebuggerPlantSolarCollectors.obj" &quotDebuggerHVACSplitterComponent.obj" &quotDebuggerHVACDuct.obj" &quotDebuggerHVACWaterCoilComponent.obj" &quotDebuggerPlantPlateHeatExchanger.obj" &quotDebuggerHumidifiers.obj" &quotDebuggerPlantLoadProfile.obj" &quotDebuggerHVACTranspiredCollector.obj" &quotDebuggerHVACFanComponent.obj" &quotDebuggerPlantWatertoWaterGSHP.obj" &quotDebuggerPlantWaterUse.obj" &quotDebuggerPlantGroundHeatExchangers.obj" &quotDebuggeronePlenumComponent.obj" &quotDebuggerSetPointManager.obj" &quotDebuggerOutAirNodeManager.obj" &quotDebuggerPlantValves.obj" &quotDebuggerPlantOutsideCoolingSources.obj" &quotDebuggerPlantCondLoopTowers.obj" &quotDebuggerBaseboardRadiator.obj" &quotDebuggerPlantPondGroundHeatExchanger.obj" &quotDebuggerPhotovoltaics.obj" &quotDebuggerHVACControllers.obj" &quotDebuggerDirectAir.obj" &quotDebuggerPlantPumps.obj" &quotDebuggerReturnAirPath.obj" &quotDebuggerOutputReportTabular.obj" &quotDebuggerRoomAirModelUserTempPattern.obj" &quotDebuggerPlantHeatExchanger.obj" &quotDebuggerHVACEvapComponent.obj" &quotDebuggerBranchInputManager.obj" &quotDebuggerElectricPowerGenerators.obj" &quotDebuggerRoomAirManager.obj" &quotDebuggerPlantUtilities.obj" &quotDebuggerEconomicTariff.obj" &quotDebuggerRefrigeratedCase.obj" &quotDebuggerPlantPipeHeatTransfer.obj" &quotDebuggerDXCoil.obj" &quotDebuggerElectricPowerManager.obj" &quotDebuggerThermalComfort.obj" &quotDebuggerHeatRecovery.obj" &quotDebuggeroneTempPredictorCorrector.obj" &quotDebuggerPlantWaterHeater.obj" &quotDebuggerPlantCondLoopOperation.obj" &quotDebuggerNonZoneEquipmentManager.obj" &quotDebuggerPlantCondLoopSupplySideManager.obj" &quotDebuggerHVACHeatingCoils.obj" &quotDebuggerDesiccantDehumidifiers.obj" &quotDebuggerPoweredInductionUnits.obj" &quotDebuggerHVACSingleDuctInduc.obj" &quotDebuggerHeatBalanceInternalHeatGains.obj" &quotDebuggerDaylightingManager.obj" &quotDebuggerHVACHXAssistedCoolingCoil.obj" &quotDebuggerPlantFreeCoolin gHeatExchanger.obj" &quotDebuggerPlantCondLoopDemandSideManager.obj" &quotDebuggerHVACSingleDuctSystem.obj" &quotDebuggerUnitHeater.obj" &quotDebuggeroneairloopequipmentmanager.obj" &quotDebuggerUnitVentilator.obj" &quotDebuggerSolarShading.obj" &quotDebuggerGlobalNames.obj" &quotDebuggerPlantSPARKBoilers.obj" &quotDebuggerHVACDXSystem.obj" &quotDebuggerHVACWatertoAir.obj" &quotDebuggerHVACFurnace.obj" &quotDebuggerPlantEIRChillers.obj" &quotDebuggerPlantBoilersSteam.obj" &quotDebuggerHVACMultiSpeedHeatPump.obj" &quotDebuggerPlantSPARKChillers.obj" &quotDebuggerPlantGasAbsorptionChiller.obj" &quotDebuggerPlantAbsorptionChillers.obj" &quotDebuggerMixedAir.obj" &quotDebuggerWindowAC.obj" &quotDebuggerPackagedTerminalHeatPump.obj" &quotDebuggerPlantChillers.obj" &quotDebuggerPlantBoilers.obj" &quotDebuggerHVACStandAloneERV.obj" &quotDebuggerPlantLoopEquipments.obj" &quotDebuggerHVACUnitaryBypassVAV.obj" &quotDebuggerFanCoilUnits.obj" &quotDebuggerAirflowNetworkBalanceManager.obj" &quotDebuggerCostEstimateManager.obj" &quotDebuggerSystemReports.obj" &quotDebuggerPlantDemandSideSolvers.obj" &quotDebuggeroneequipmentmanager.obj" &quotDebuggerSystemAvailabilityManager.obj" &quotDebuggerSimAirServingZones.obj" &quotDebuggerPlantSupplySideSolvers.obj" &quotDebuggerPlantManager.obj" &quotDebuggerHVACManager.obj" &quotDebuggerHeatBalanceAirManager.obj" &quotDebuggerHeatBalanceSurfaceManager.obj" &quotDebuggerHeatBalanceManager.obj" &quotDebuggerSizingManager.obj" &quotDebuggerSimulationManager.obj" &quotDebuggerOutputReports.obj" &quotDebuggerDateTime.obj" &quotDebuggerUtilityRoutines.obj" &quotDebuggerEnergyPlus.obj" &quotDebuggerGeneralRoutines.obj" &quotDebuggerCVFOnlyRoutines.obj"
]
Creating command line &quotLink @&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusDebuggerRSP1.rsp""

Link: executing 'link'

Embedding manifest...
mt.exe /nologo /outputresource:&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusdebuggerenergyplus.exe;#1" /manifest &quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusdebuggerenergyplus.exe.intermediate.manifest"
EnergyPlus : error PRJ0019: A tool returned an error code

EnergyPlus - 1 error(s), 0 warning(s)
0 Kudos
Steven_L_Intel1
Employee
637 Views
Curious. The next step I'd suggest, if you want to persue this, is to repeat the link and mt commands from a "Fortran build environment" command prompt and see if you get a more descriptive error.

Or you can simply turn off manifest use, as you did, and ignore it.
0 Kudos
jimdempseyatthecove
Honored Contributor III
637 Views

I think the position of the quote marks is incorrect on the line that creates the link command.

What was generated:

Creating command line &quotLink @&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusDebuggerRSP1.rsp""

(double quotes at end of string to be enquoted)

What is required

Creating command line &quotLink" @&quotC:Documents and SettingsJasonMy DocumentsprojectsEnergyPlusDevEnergyPlus-CR fixingdev-nEnergyPlusDebuggerRSP1.rsp"

(move last " to after &quotLink)

Jim Dempsey



0 Kudos
Steven_L_Intel1
Employee
637 Views
I don't think so - it's just the odd way the HTML is presented in the VS window.
0 Kudos
Reply