Xcode fails while makefiles work

I am having problems setting up an xcode project for some given source code.
I have already a build system based on makefiles for the source code that works fine (so the source code must be ok).
Now i am trying to set up a xcode project for that source code. It is distributed over a small number of directories, consists (for now) of one library plus some test programs.
Building the library seems to work fine, but when i build the test programs, i get linker errors.
Here are the steps of the build process of xcode for one of the test programs (it is called 'unix') plus the ensuing linker error messages:
CompileC /tmp/xcode/qhull.build/Release/unix.build/Objects-normal/ppc/unix.o /Users/zach/Code/CollDet/xcode/../common/qhull/test/unix.c normal ppc c com.apple.compilers.gcc.4_0
cd /Users/zach/Code/CollDet/xcode
/usr/bin/gcc-4.0 -x c -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility=hidden -mmacosx-version-min=10.4 -I/tmp/xcode/qhull.build/Release/unix.build/unix.hmap -mdynamic-no-pic -F/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -I../common/boost/include -I../common/qhull -I/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/include -I/tmp/xcode/qhull.build/Release/unix.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/zach/Code/CollDet/xcode/../common/qhull/test/unix.c -o /tmp/xcode/qhull.build/Release/unix.build/Objects-normal/ppc/unix.o
Ld /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/unix normal ppc
cd /Users/zach/Code/CollDet/xcode
/usr/bin/gcc-4.0 -o /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/unix -L/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -L../common/qhull/obj/xcode -L/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode -F/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -filelist /tmp/xcode/qhull.build/Release/unix.build/Objects-normal/ppc/unix.LinkFileList -lqhull -arch ppc -Wl,-Y,1455 -mmacosx-version-min=10.4 -Wl,-dead_strip -nodead_strip_inits_andterms -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: Undefined symbols:
qh_checkoutput
qh_checkpoints
qhfreeqhull
qh_initA
qh_initB
qhinitflags
qhmemfreeshort
qh_produceoutput
qhqhull
qhreadpoints
I suspect that the problem is caused by the build process that builds the library, that something xcode is doing is wrong.
Here are the last few steps of the build process for the library from xcode (the name of the lib is 'qhull'):
CompileC /tmp/xcode/qhull.build/Release/qhull.build/Objects-normal/ppc/version_def.o /Users/zach/Code/CollDet/xcode/../common/qhull/version_def.cpp normal ppc c++ com.apple.compilers.gcc.4_0
cd /Users/zach/Code/CollDet/xcode
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -mtune=G5 -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/tmp/xcode/qhull.build/Release/qhull.build/libqhull.hmap -F/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -I../common/boost/include -I../common/qhull -I/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/include -I/tmp/xcode/qhull.build/Release/qhull.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/qhullPrefix-farbtulhxcnosbgjasnnizwbbrip/qhullPrefix.pch -c /Users/zach/Code/CollDet/xcode/../common/qhull/version_def.cpp -o /tmp/xcode/qhull.build/Release/qhull.build/Objects-normal/ppc/version_def.o
Ld /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/libqhull.dylib normal ppc
cd /Users/zach/Code/CollDet/xcode
/usr/bin/g++-4.0 -o /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/libqhull.dylib -L/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -F/Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release -filelist /tmp/xcode/qhull.build/Release/qhull.build/Objects-normal/ppc/libqhull.LinkFile List -arch ppc -Wl,-single_module -compatibility_version 1 -current_version 1 -install_name /usr/local/lib/libqhull.dylib -Wl,-Y,1455 -dynamiclib -mmacosx-version-min=10.4 -Wl,-dead_strip -nodead_strip_inits_andterms -isysroot /Developer/SDKs/MacOSX10.4u.sdk
PBXCp ../common/qhull/obj/xcode/Release/../libqhull.dylib ../common/qhull/obj/xcode/Release/libqhull.dylib
cd /Users/zach/Code/CollDet/xcode
/System/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/libqhull.dylib /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/..
GenerateDSYMFile
cd /Users/zach/Code/CollDet/xcode
/usr/bin/dsymutil -o /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/libqhull.dylib .dSYM /Users/zach/Code/CollDet/xcode/../common/qhull/obj/xcode/Release/libqhull.dylib
For comparison, here are the last few steps of the build process for the lib based on the makefiles:
--- Compiling qhull_io.cpp to obj/macosxgcc_opt/qhullio.o
g++ -ansi -O3 -funroll-loops -felide-constructors -ffast-math -DNDEBUG -Wall -W -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Woverloaded-virtual -Wsign-compare -Wnon-virtual-dtor -Woverloaded-virtual -Wfloat-equal -Wno-system-headers -Wdisabled-optimization -Wold-style-cast -Wshadow -w -Wno-reorder -I. -I../../common/boost/include -o obj/macosxgcc_opt/qhullio.o -c qhull_io.cpp
===============================================================================
=== Linking shared object obj/macosxgccopt/libqhull.dylib
===============================================================================
g++ -dynamiclib -Wl,-single_module -flat_namespace -O3 -funroll-loops -felide-constructors -ffast-math -DNDEBUG -L. obj/macosxgccopt/geom.o obj/macosxgccopt/geom2.o obj/macosxgccopt/global.o obj/macosxgccopt/mem.o obj/macosxgccopt/merge.o obj/macosxgccopt/poly.o obj/macosxgccopt/poly2.o obj/macosxgccopt/qhull.o obj/macosxgcc_opt/qhullio.o obj/macosxgccopt/set.o obj/macosxgccopt/stat.o obj/macosxgccopt/user.o obj/macosxgcc_opt/versiondef.o -o obj/macosxgccopt/libqhull.dylib
Are there any differences that might cause xcode to produce the linker errors?
There are several command line options that are different from the compile/link commands issued by the makefiles.
I have no idea what they do, where they come, or if they really might be the cause.
For the record: i am building on a Powerbook, and not building a Universal binary.
I will appreciate any suggestions, tips, pointers, etc.
Best regards,
Gabriel.
Message was edited by: Gabriel Zachmann

Why do you need to build in Xcode? If you already have makefiles that work, just use them so you don't have two development environments to maintain. I only ask that question because people seem to think Xcode is somehow required for building on MacOS X. It isn't, not for any project.
Let's say, for whatever reason, you want to build it in Xcode. Another question. Why don't use use a makefile project? You can have all your code organized in Xcode how you want, and your build step is just to call "make" on the existing makefiles. You'll have some of the benefits of Xcode without having to maintain two development environments.
Again. Let's say, for whatever reason, you want to build it in Xcode using a native project. Now come much harder questions. How did you setup your Xcode project? Ideally, you should have an aggregate target with one subproject for the library and a subproject for the unit test application. Does the makefile version also build dynamic libraries? If not, your Xcode project should be a static library. Once you get it running, you can (if you want) convert it to a dynamic library.
If none of these questions really answers your question, you are going to have to delve into the differences in how Xcode builds vs. the makefiles. Dynamic libraries can be particularly difficult to figure out. There isn't any magic setting or Xcode bug. You just have to understand how the build and link process works. Personally, I wouldn't waste any time building Xcode projects for things I didn't write. You'll have to re-do everything the next time you upgrade the software or your system.

Similar Messages

  • My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    Welcome to Apple Support Communities
    Open App Store, select Account in Quick Links and press Show hidden purchases. If OS X isn't there, http://www.apple.com/support/mac/app-store/contact

  • File server made data fails while working on dwg files

    while usrers working on dwg files the server give data fail?!

    Hi,
    Thanks for your posting.
    Please provide more detailed information about the issue. If the issue only occures on the dwg files, as the Milos mentioned you could ask for help from software vendor.
    http://forums.autodesk.com/t5/dwg-trueview/bd-p/109
    Thank you for your understanding and support. 
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Compilation failed while executing : dsymutil

    Hi,
    Trying to compile a standard package for ios with major failure. The fast-version works perfectly without any errors.
    I'm on mac os x lion and using flash builder 4.5.1. The error I'm getting is as follows:
    Error occurred while packaging the application:
    /var/folders/n4/52v6ttx96c7bnw8vnysh5j780000gn/T/cmd460615453403880056.tmp: line 2: dsymutil: command not found
    Compilation failed while executing : dsymutil
    I can't find anything about it posted previously or anywhere actually.
    / Daniel

    I'm answering my own question here.
    Install Xcode from the appstore ( it's free ) and you will get dsymutil. Weird workaround considering I can run this setup on another computer that hasn't got xcode installed ( but still has dsymutil ).  But at least it solves the problem.

  • (App-store) Compilation failed while executing : compile-abc

    I just upgraded to AIR16 and can no longer compile for the ios app store from Windows 7.
    Calling "adt -package -target ipa-test ..." with AIR16 works correctly, installs and runs on my device.
    Calling "adt -package -target ipa-app-store ..." with AIR16 crashes the compiler with this generic error:
    Compilation failed while executing : compile-abc
    Calling "adt -package -target ipa-app-store ..." with AIR14 (and the new compiler, not legacy) works correctly.
    How do I get more information about what is happening? I have no ANEs. Could this have something to do with the new 64-bit requirements? My version of Java? With provisioning profiles? What else is different between test and app-store compile modes?

    Update: I tried a half dozen different ways to compile with AIR16 to no joy. Test works fine, App Store compile fails.
    Then finally tried the current AIR17 beta which DOES work. I don't see anything in the release notes about fixing ios app-store compile issues, though there's a new known ios-related bug with textfields.
    Does ADT produce an error log file somewhere? I'd like to get more info about this "Compilation failed while executing : compile-abc" error if I ever run into it again.

  • Compilation failed while executing : compile-abc

    This is with the latest AIR 4.0 beta, dated 12/17, with "-useLegacyAOT no" on Mac, OS X 10.9.
    0  compile-abc              0x0095d728 PrintStackTrace(void*) + 40
    1  compile-abc              0x0095dba1 SignalHandler(int) + 449
    2  libsystem_platform.dylib 0x9039fdeb _sigtramp + 43
    3  libsystem_platform.dylib 0xffffffff _sigtramp + 1875247679
    4  compile-abc              0x0005846b halfmoon::Cleaner::simplify(halfmoon::BlockEndInstr*) + 667
    5  compile-abc              0x00058fc6 halfmoon::cleanBlocks(halfmoon::Context*, halfmoon::InstrGraph*, halfmoon::Cleaner*) + 166
    6  compile-abc              0x0005ab34 halfmoon::removeDeadCode(halfmoon::Context*, halfmoon::InstrGraph*) + 324
    7  compile-abc              0x0004ee1c halfmoon::AbcBuilder::visitBlocks(nanojit::Seq<halfmoon::AbcBlock*>*) + 316
    8  compile-abc              0x000c0a76 halfmoon::parseAbc(avmplus::MethodInfo*, halfmoon::Lattice*, halfmoon::InfoManager*, nanojit::Allocator&, halfmoon::AbcGraph*, avmplus::Toplevel*, avmplus::AbcEnv*, halfmoon::ProfiledInformation*, halfmoon::Context&) + 182
    9  compile-abc              0x000c1788 halfmoon::JitWriter::writeEpilogue(avmplus::FrameState const*) + 216
    10 compile-abc              0x00129d3b avmplus::NullWriter::writeEpilogue(avmplus::FrameState const*) + 27
    11 compile-abc              0x00183829 avmplus::Verifier::verify(avmplus::CodeWriter*) + 1273
    12 compile-abc              0x000053af compile_abc::CompilerCore::emitPoolToModule(compile_abc::PoolInfo&, compile_abc::LLVMModule*) + 927
    13 compile-abc              0x00004a80 compile_abc::CompilerCore::compile() + 4496
    14 compile-abc              0x0000363f compile_abc::CompilerCore::run(int, char**) + 1471
    15 compile-abc              0x00005f62 main + 66
    16 compile-abc              0x00002235 start + 53
    There's also a lengthy list of program arguments, looks like it's working on ABCs from native extensions. Buried in there is this line as well:
    41063 Bus error: 10

    Hey, I have found this:
    Swf compiled with Flash Pro CS6 with AIR 3.9 SDK selected
    No error
    ipa is created a working without any problems.
    Swf compiled with Flash Develop and Flex 4.6 AIR 3.9 SDK
    adt throws this error:
    Compilation failed while executing : compile-abc
    Swf compiled with Flash Develop and Adobe AIR 4.0 SDK
    adt throws this error:
    duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas
    e$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-0_3.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas
    e in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-0_3.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils$ in
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-1_4.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-1_4.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt
    ilsLoginEvent$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-2_5.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt
    ilsLoginEvent in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-2_5.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas
    e$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-0_0.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas
    e in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-0_0.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK$ in
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-1_1.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-1_1.o
    ld: 10 duplicate symbols for architecture armv7
    Compilation failed while executing : ld64

  • Export release build failed with an error message: complilation failed while excuting : compile-abc

    I updated air sdk from 4.0 to 16.0 beta to fix apple app store submitting bug. I can build the project and run it on simulator without any problem.  But when I tried to export the ios release build, I got this error message: complilation failed while excuting : compile-abc. 
    I use commmand line to excute compile-abc.exe with the parameters that adt gives it, but it failed without any error message.
    Here is the command line:
    compile-abc.exe -mtriple=armv7-apple-ios -filetype=obj -sdk "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1 - air16\lib\aot/lib/avmglue.abc" -fields "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1 - air16\lib\aot/lib/air-fields.arm-air.txt" -O3 -abc-file-list=E:\MyApp\bin-debug\AOTBuildOutput8184169967790207636.tmp\ABCFilesList.txt
    There's a empty file AOTBuildOutput-0000001821_1821.o left in the command line workaroud path. I opened file AOTBuildOutput-0000001821.abc, but didn't get any clue. How can I trace this problem?

    Still having similar issues - seems to be when I embed an image - but works for every release except for release build
    Tried your work around but doesnt seem to make a different
    [Embed(source = "/../assets/[email protected]")]
    protected static const ATLAS_IMAGE:Class;
    [Embed(source = "/../assets/[email protected]", mimeType = "application/octet-stream")]
    protected static const ATLAS_XML:Class;
    [Embed(source = "/../assets/iconMap.png")]
    protected static const ATLAS_IMAGE_LOW_RES:Class;
    [Embed(source = "/../assets/iconMap.xml", mimeType = "application/octet-stream")]
    protected static const ATLAS_XML_LOW_RES:Class;
    if(Starling.current.viewPort.width > 320)
    atlas = new TextureAtlas(Texture.fromBitmap(new ATLAS_IMAGE(), false), XML(new ATLAS_XML()));   
    }else{
    atlas = new TextureAtlas(Texture.fromBitmap(new ATLAS_IMAGE_LOW_RES(), false), XML(new ATLAS_XML_LOW_RES()));

  • My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often

    My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often and while surffing on net it gets very slow ...

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • AIR 3.8, iOS Packaging Failed: "Compilation failed while executing : ld64"

    Since upgrading to AIR 3.8, we can no longer package our AIR Application.
    We are getting the following error:
    internal_package-ios:
         [exec] ld: -pie can only be used when targeting iOS 4.2 or later
         [exec] Compilation failed while executing : ld64
    Screenshot Here: http://cl.ly/image/3h2U1g271n1J
    Reverting to AIR 3.7 fixes the issue... but we need 3.8 as we need the 4096 texture support that comes with BASELINE_EXTENDED profile.
    From googling, this seems like it's related to the iOS SDK included with AIR, but the issue was fixed in AIR 3.7. Seems it has been regressed...

    Hi Shawn,
    Since AIR 3.8, we support only PIE enabled binaries, as per Apple recommendation.
    For this, the minimum supported iOS version is 4.2. The ANE you are using specifies a minimum iOS version of 4.0 in its platform-iphone.xml, present at: https://github.com/alebianco/ANE-Google-Analytics/blob/master/build/platform-iphone.xml
    You will need to change the line:
    <option>-ios_version_min 4.0</option>
    to:
    <option>-ios_version_min 4.2</option>
    and rebuild the ANE to make it work.
    Regards,
    Neha

  • Set-VMNetworkAdapterVlan throws Failed while applying switch port settings 'Ethernet Switch Port VLAN Settings' error

    Hi,
    I'm following this
    guide I'm getting an error when running the below command:
    Set-VMNetworkAdapterVlan -vmname PurpleVM1 -Isolated -PrimaryVlanId 2 –SecondaryVlanId 4
    Generates the following error:
    Set-VMNetworkAdapterVlan : The operation failed.
    Failed while applying switch port settings 'Ethernet Switch Port VLAN Settings' on switch 'New Virtual Switch': One or
    more arguments are invalid (0x80070057).
    A parameter that is not valid was passed to the operation.
    Does anyone know why this is happening?
    ta

    Hi TomG101,
    It seems that there is a configuration conflict on the virtual switch port .
    Also I tested the command on my lab , it works .
    For troubleshooting please  create a new virtual switch then try to configure again .
    Any further information please feel free to let us know .
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • CrystalReport - Getting "The Report Application Server failed" while export

    Hi Experts,
    I am using Crystal Reports 2008 in my ASP.NET application to generate reports. Everythings works fine in the development environment. When I deploy it on my Windows Server 2003 system, I get an error "The Report Application Server failed" while exporting the report from the report control. But, the report assuch is working fine even in the production environement. I experience this issue only while exporting to excel or anyother format.
    Do I need to configure anything or any settings needs to be turned on in the .rpt files!!
    Appreciate any help to get this issue resolved.
    TIA,
    Prem

    First a confirmation. When you say; "...exporting the report from the report control...", you mean the printer button on the viewer?
    Questions;
    What version of .NET?
    What Crystal Reports Service Pack are you on?
    How was the CR runtime installed on the server?\
    Can you print the report OK?
    Are you using sessions?
    Ludek

  • Seeking to fix this error: "Failed while adding virtual Ethernet switch connections."

    I am getting the error below when trying ot make modifications to my Hyper-V.
    I am trying to add a new Virtual Adaptor.
    Hoping someone may have a suggestion on how to fix this.
    Error:
    New-VMSwitch : Failed while adding virtual Ethernet switch connections.
    Failed to connect Ethernet switch port (switch name = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', port name =
    'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', adapter GUID = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'): The system cannot
    find the file specified. (0x80070002).
    The operation failed because the file was not found.
    At line:1 char:1
    + New-VMSwitch -Name "LAN1" -NetAdapterName "Ethernet" -AllowManagementOS $True
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [New-VMSwitch], Virtualizati
       onOperationFailedException
        + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.NewVMSwitchCommand

    Alex just a quick response to your advice re disabling AV, this did not work for me, after more searching the internet for a solution I found a post from 2013 where one poster offered the advice to go one step further, and it was to remove the AV package
    completely, the package in question was KIS2013. I have KIS2015 and figured I would try it as I was getting a little frustrated with the constant failure to create a virtual switch.
    Anyway, it worked for me, I removed KIS, rebooted, and the VS was created on the first attempt without any issue. So simply pausing/disabling the AV from within the AV program may not be enough, I suspect that some may work and others not, as in the case
    of KIS. I wonder also if you disable the AV services at start-up if this would also work but I did not try it.
    Anyway to other people experiencing this issue, I suggest disabling AV first as per Alex's advice, and if this does not work for you then suggest trying to remove the AV before doing anything more drastic like re-installation of OS as I have seen suggested
    in more than one place.
    Thanks
    Mr Bee
    --EDIT--
    Just wanted to add, it is also worth 'excluding' any Hyper-V folders from the AV engine, I did not try this before removing KIS2015 so it may work without the need to remove your AV product, but on re-install I have now exluded the folders as suggest by
    a few folks in various posts...

  • Compilation failed while executing: strip

    I have a project that I am attempting to publish to an iPad device.
    In the AIR for iOS setting menu, I enter the required information, and then press Publish. It ginds for about 30 seconds, but then generates the following error:
    Error creating files.
    Compilation failed while executing: strip
    The project was originally created in CS5. When I tried publishing from this file previously, it generated the same error. So I've since created a new project, and copied the timelines and library files over. However, no change in behavior. Any idea what is going on here, and how to fix it?
    Windows 7
    Flash CS5.5

    Hi Sanika, thank you for the reply.
    I am currently using AIR 2.7.1.19610
    Curiously, I was able to work around the problem by creating a new project once again, and copying/pasting my timelines in, along with the necessary library assets.After doing so, I was able to compile and deploy successfully. (why it worked this time, and not the first time, I'm not really sure)
    However, I came back a few hours later, moved the .fla file to another location, renamed it, and tried to deploy again. The previous error reoccurred. Once again, after creating another new project and copying the timelines/assets over, I was able to resolve the issue. It has not reoccured since.
    The original project was sitting in a dropbox folder. I've since copied it to a location outside of dropbox. I left a copy in dropbox to see if somehow, the syncing might be corrupting the fla file. But so far, both copies are behaving themselves.
    If the issue arises again, I'll try the AIR 3 beta as you suggested, and file a bug report if need be.
    Thanks!
    John

  • Error source CAPI2 id 513 - Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object

    Running Windows 8.1 PRO RTM x64 upgraded from Win 8 PRO. Updates to 8.1 as of 17 October installed
    Event viewer still shows newly triggered Error(s) CAPI2 event id 513.
    I can trigger this error by manually creating a restore point invoking VSS.
    The VSS System Writer is listed and is error free.
    Log Name:      Application
    Source:        Microsoft-Windows-CAPI2
    Date:          17/10/2013 20:32:19
    Event ID:      513
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Machine -Name
    Description:
    Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.
    Details:
    AddLegacyDriverFiles: Unable to back up image of binary Microsoft Link-Layer Discovery Protocol.
    System Error:
    Access is denied.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-CAPI2" Guid="{5bbca4a8-b209-48dc-a8c7-b23d3e5216fb}" EventSourceName="Microsoft-Windows-CAPI2" />
        <EventID Qualifiers="0">513</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-10-17T19:32:19.935384000Z" />
        <EventRecordID>89898</EventRecordID>
        <Correlation />
        <Execution ProcessID="1404" ThreadID="2104" />
        <Channel>Application</Channel>
        <Computer>Machine-Name</Computer>
        <Security />
      </System>
      <EventData>
        <Data>
    Details:
    AddLegacyDriverFiles: Unable to back up image of binary Microsoft Link-Layer Discovery Protocol.
    System Error:
    Access is denied.
    </Data>
      </EventData>
    </Event>

    Thank you excellent post! I confirmed this fix worked for my situation as well. Below is more detailed post since it did not jump out for me the first time.
    ############################ Details ##############################
    My operating system is Windows 8.1 after installing Visual Studio 2013 when Symantec System recover 2013 ran started seeing 
    the following errors in event logs.
    ################## Example event log errors #######################
    Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object.
    Details:
    AddLegacyDriverFiles: Unable to back up image of binary Microsoft Link-Layer Discovery Protocol.
    System Error:
    Access is denied.
    ################## Example event log errors #######################
    Note: Confirmed this fix resolved my issue. 
    Step 1. Download and unzip accesschk.exe to C:\Temp http://download.sysinternals.com/files/AccessChk.zip
    Step 2. Run cmd.exe prompt as Administrator go to Temp directory
    C:\>cd Temp
    Step 3. Run accesschk.exe
    C:\Temp>accesschk.exe -c mslldp
    ################# Example output 1 #################################
    Accesschk v5.10 - Reports effective permissions for securable objects
    Copyright (C) 2006-2012 Mark Russinovich
    Sysinternals - www.sysinternals.com
    mslldp
      RW NT AUTHORITY\SYSTEM
      RW BUILTIN\Administrators
      RW S-1-5-32-549
      R  NT SERVICE\NlaSvc
    ################# Example output 1 #################################
    Step 4. Run following command.
    C:\Temp>SC sdshow MSLLDP <---- Example text 1.
    ################# Example output 2 #################################
    D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SO)(A;;LCRPWP;;;S-1
    -5-80-3141615172-2057878085-1754447212-2405740020-3916490453)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
    ################# Example output 2 #################################
    Step 5. Run following command.
    C:\Temp>SC sdshow MUP
    ################# Example output 3 #################################
    D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)
    (A;;CCLCSWLOCRRC;;;SU) ######## <--- Example text 2. Grab this value. #######
    S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
    ################# Example output 3 #################################
    Step 6. 
    C:\Temp>
    ### Copy and past Example 1. line in notepad in command promt you can select all then copy the paste the text into notepad.
    MSLLDP D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SO)(A;;LCRPWP;;;S-1-5-80-3141615172-2057878085-1754447212-2405740020-3916490453)
    (A;;CCLCSWLOCRRC;;;SU) ######## <--- Insert Example text 2. here #######
    S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
    Run this command. (Note: Make sure its all one line no wordwrap that the webpage could be showing this text.)
    C:\Temp> sc sdset MSLLDP D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SO)(A;;LCRPWP;;;S-1-5-80-3141615172-2057878085-1754447212-2405740020-3916490453)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
    Step 7.
    ##### Check the result #####
    C:\Temp>accesschk.exe -c mslldp
    ################# Example output 4 #################################
    Accesschk v5.10 - Reports effective permissions for securable objects
    Copyright (C) 2006-2012 Mark Russinovich
    Sysinternals - www.sysinternals.com
    mslldp
      RW NT AUTHORITY\SYSTEM
      RW BUILTIN\Administrators
      RW S-1-5-32-549
      R  NT SERVICE\NlaSvc
      R  NT AUTHORITY\SERVICE <--- You should now see this line.
    ################# Example output 4 #################################
    Step 8.
    Ran backup using Symantect System Recovery 2013 the event errors did not return after this fix. Great post again!
    ############################ Details ##############################

  • Failed to start worker process: Logon failure: the user has not been granted the requested logon type at this computer. (0x80070569

    We just rebuilt our machine with server 2012, and it was working flawlessly and then randomly it started giving me this error if i would try to start up a machine. At first this was just an annoyance but now it is worrying me greatly. I have tried
    everything from logging on as the domain admin account to the actual server administrator account. Nothing seems to start these machines up, and I need them to start.
    'Computer1' failed to start worker process: Logon failure: the user has not been granted the requested logon type at this computer. (0x80070569). 

    Hi,
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as 'Answered' as the previous steps should be helpful for many similar scenarios.
    If the issue still persists and you want to return to this question, please reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish.
    In addition, we'd love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems.
    Thanks!
    Lawrence
    TechNet Community Support

Maybe you are looking for