Fortran code for iOS using GCC cross-compiler

Hello everyone!
I have some Fortran application, and i want to compile it for iOS. I'm new in iOS development and  as i understand correctly i need to configure GCC (from gcc.gnu.org) with --target=arm-apple-darwin and --enable-languages=c,c++, fortran.
With --target=arm-elf, --target=arm-apple-darwin i got error, that it's not supported.
With --target=arm-none-eabi i got cannot compute suffix of object files: cannot compile Maybe is that because i'm setting wrong configure parameters.
My question is : what is correct ./confgiure parameters to create gcc cross compiler for iOS platform, which supports FORTRAN.
Is this the only (right?) way to build cross-compiler for iOS platform, or i could use existing LLVM-GCC? Thanks!

jasonwryan, thanks for the reply,
I've read the ARM Dev Guide as suggested but I don't believe this will do what I'm aiming to achieve. It seems the ARM Dev Guide will install the arm-linux-gnueabi, which allows cross-compiling applications to run on LINUX built for ARM. I need something like arm-none-eabi (or arm-none-gnueabi - the whole naming scheme is a mess at the moment) which is an ARM compiler for "bare metal" ARM devices. I am aiming to program a simple ARM Cortex M4 microcontroller as opposed to an ARM microprocessor running Linux. Hence arm-linux-gnueabi is quite overkill from my understanding and it might even not work.
So, if someone could either confirm that what the ARM Dev Guide suggests is indeed what I need to program a bare metal ARM microcontroller, or recommend an alternative path, it would be very appreciated.
Thanks,
-Igor

Similar Messages

  • Good instructions for making a GCC cross compiler?

    Hi
    I think this might be the best place to ask this since people probably have been making cross compilers. I am interested in trying to make a cross compiler of GCC targetting Plan9/i386. There is an old 3.0 version of GCC (http://cm.bell-labs.com/sources/extra/gcc/) ported to Plan9.
    The thing that confuses me a bit about cross compilers is the use of binutils for the target architecture. How does that actually work? The host OS/architecture would not be able to execute those binaries. It feels a bit like a chicken-and-egg issure and I am not really sure how to get started. I have been trying to read up a bit on the PKGBUILDs for cross-arm but the whole theoretical issue of how to actually get the thing working in the first place is still a bit unclear to me.
    Some good instructions/links/help would be appreciated
    I could post my temporary PKGBUILD here if people want to help out with the actual build...

    A small update to my attempts:
    This is my binutils package, it has failed at multiple levels during my attempts. The binutils ported to Plan9 are relatively old so some stuff needs to be patched up to build. Now it fails on not being able to recognize arlex.o . This seems a bit odd I think.
    # Adapted from cross-arm-elf, cross-i686-pc-gnu and cross-i686-pc-mingw32
    pkgname=cross-i386-plan9-binutils
    pkgver=2.11.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection - Cross compiler for Plan9 i386 target"
    arch=('i686' 'x86_64')
    license=('GPL')
    url="http://plan9.bell-labs.com/wiki/plan9/porting_alien_software_to_plan_9/index.html"
    depends=('glibc' 'zlib')
    options=('!libtool' '!distcc' '!ccache')
    source=('http://plan9.bell-labs.com/sources/extra/gcc/gnusrc.tgz' \
    'bucommh.patch')
    md5sums=('39d23b7223b68de4cf333205257112ce' \
    '2945c4e40dbcd966217ed1349195e312')
    _target=i386-lucent-plan9
    _sysroot=/usr/lib/cross-${_target}
    build() {
    rm -rf ${srcdir}/build
    mkdir ${srcdir}/build #starting fresh
    msg "building and packaging binutils"
    cp -ar ${srcdir}/binutils-2.11.2/* ${srcdir}/build/
    cd ${srcdir}/build
    msg "cheating broken references to Plan9-ported GNU binutils"
    ln -s /usr/bin/ar "${_target}-ar"
    ln -s /usr/bin/as "${_target}-as"
    ln -s /usr/bin/ld "${_target}-ld"
    ln -s /usr/bin/ranlib "${_target}-ranlib"
    PATH=${srcdir}/build:$PATH
    CFLAGS='-O2 -static'
    msg "patching up stuff"
    cd ${srcdir}/build/binutils
    patch bucomm.h -i $srcdir/bucommh.patch
    msg "going back to build directory and start configure"
    cd ${srcdir}/build
    ./configure --prefix=${_sysroot} --bindir=/usr/bin \
    --with-sysroot=${_sysroot} \
    --build=$CHOST --host=$CHOST --target=${_target} \
    --with-gcc --with-gnu-as --with-gnu-ld \
    --enable-shared --without-included-gettext \
    --disable-nls --disable-debug
    msg "fixing some corrupt libraries"
    cp /usr/lib/libiberty.a ${srcdir}/build/libiberty/
    msg "finally making the actual binutils"
    cd ${srcdir}/build
    make
    make DESTDIR=$pkgdir/ install
    # clean-up cross compiler root
    rm -r ${pkgdir}/${_sysroot}/share/{info,man}
    # needed for gcc build
    install -dm755 ${pkgdir}/${_sysroot}/include
    this is the bucommh.patch:
    81c81
    < extern char *sbrk ();
    > extern void *sbrk ();
    Last edited by W.F.Cody (2011-09-13 18:57:17)

  • HT202884 How can I update video codecs for iOS using code ?

    In reference to : OS X Mavericks: Some files may be converted when opened in QuickTime Player - Apple Support
    Is there a way to update video codecs for iOS, using code ?

    You could try finding somewhere with free WiFi like a coffee shop, shopping mall or fast-food places & downloading on their connection.

  • What is the the pass code for iOS 7.1.1

    What is the the pass code for iOS 7.1.1?

    tyronefromla wrote:
    Usually for the iOS updates u use ur apple user &amp; password. In this case the pass code for this iOS update is the same one used to start ur phone.
    That's correct.

  • What is the transaction code for where used list

    hi,  
                    what is the transaction code for where used list and
               how to retrieve the previous delivery quantity and quantity delivered for a particular material  with reference to both material document number and material number.

    hi,
    there is no transaction code for where-used-list..
    its one of the buttons in application tool bar which if you click will tell you where,in which program or tables etc this object is used.
    to retrieve the previous delivery quantity and quantity delivered for a particular material with reference to both material document number and material number,
    use tables <b>likp lips and mara</b> and use material number and document number in where condtion.
    regards,
    pankaj singh
    <b>**** please mark all helpful answers</b>

  • HT1222 How do I get a Code For iOS 8

    How do I get a Code For iOS 8

    You would have initially entered this "Passcode" at some time in the past, when either setting it up or when you activated the Passcode on your iOS device. You'll have to remember what you entered when you did this. This is not something Apple "made up" but something you did and you would have entered it yourself.
    Here's what Apple says if you forget your Passcode ...
    iOS: Forgot passcode or device disabled

  • Can I use gcc to compile sample driver code?

    Hi:
    I am trying to compile the sample driver code using gcc.
    I got lots of error messages while parsing header files under the sys/ directory.
    Have I missed something?
    Or does it mean that I have to use the cc compiler from Sun?
    By the way, need I any tools other than the compiler if I want to develope Solaris driver?
    Any replies would be appreciated.
    B.Regards
    Steven

    Thanks for your help.
    I just found out this might be due to the conflicts between different OSs.
    Becuase I usually work under the MicroSoft Windows enviroment, so I first downloaded and unzipped the sample code in Windows.
    (I might have opened the file using Visual Studio, too.)
    Then I copied the files to the Solaris environment and compiled them there.
    In that case, lots of errors are found by the make utility and gcc.
    But if I do all the jobs under Solaris, everying is going well.
    Now I find myself in trouble becuase I have used Visual Studio to edit my own driver source file.
    Could anyone please tell me how to transform my source code so that it can be compiled under Solaris?

  • 3D content for iOS using Flash Builder? Possible?

    Hi,
    Is it possible to use Papervision or Away 3D using Flash Builder 4.6 and compile this succesfully for iOS?
    I have previously had lots of fun with Papervision and I am just wondering if it is possible to create 3D interface content for iOS and/or Android?
    HR

    I think Away3D (and possibly PaperVision) uses Pixel Bender shaders. They don't work on mobile devices, AFAIK. But Stage3D is supposedly coming to AIR mobile soon. That should blow the socks of any software rendering. I think Away3D will be supporting it.

  • H264 on AIR for iOS using NetStream.appendBytes()

    Does anybody here know if Adobe has plans to support NetStream.appendBytes() for h264 video in future releases of AIR for iOS?
    If so, will hardware decoding for h264 video be supported (via StageVideo) when using NetStream.appendBytes() ?
    Any info would be greatly appreciated...

    Feature request for this issue: Feature#3844755 - [New_Feature_Requirement] NetStream.appendBytes() for H.264 (MP4) videos

  • Problem publishing Air for iOS using Flash

    Hey there, I am having a little issue. I am getting a error that reads "The digital certificate is invalid. Counld not retreive certificate chain from keystore usesage"
    I think the issue may be that I am trying to develop my app on my PC and publish is and then put the app on my Mac. My assumption is that my iOS developer ID and iPad are registered with my Mac but my CS5 software is on my PC so I have been trying to publish the app on from the PC and then port it to my Mac and get it on the iPad through iTunes. So I wonder if I need to be publishing the app on the Mac where the device and iTunes are. I have the certificate transferred to the PC and use it for my app publish but I get that error on publish.
    Any insight is appreciated a lot. Thanks very very much in advance...

    I tried overlaying the latest AIR as sinious suggested, but that only changed my error message by adding the line about ADT as in the original post.
    I was finally able to get the app to compile by calling adt from the command line.  Here is an example .bat file that worked for me:
    @echo=off
    @set java_cmd="C:\Program Files\Java\jre6\bin\java.exe"
    @set java_param=-Xmx128m -jar
    @set adt_cmd="C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\lib\adt.jar"
    @set target=ipa-test
    @set cert=iOS_dev.p12
    @set cert_pass=password
    @set provisioning=my_iOS_device.mobileprovision
    @set build_file=helloworld.ipa
    @set desc_files=helloworld-app.xml
    @set files=helloworld.swf AppIconsFolder
    %java_cmd% %java_param% %adt_cmd% -package -target %target% -storetype pkcs12 -keystore %cert% -storepass %cert_pass%  -provisioning-profile %provisioning% %build_file% %desc_files% %files%
    pause

  • Ipad 2 says i need a code for ios 8

    I have two ipads: one ipad air and one ipad 2, both of which run on the same Apple id account. I download ios8 with no problem on my iPad air. Yet, later when I try to download it on the 2 it says I need a code. No, not a password. I have a password for everything and I tried them all it didn't work.  Anyone know how I can fix th? Ty.

    You would have initially entered this "Passcode" at some time in the past, when either setting it up or when you activated the Passcode on your iOS device. You'll have to remember what you entered when you did this. This is not something Apple "made up" but something you did and you would have entered it yourself.
    Here's what Apple says if you forget your Passcode ...
    iOS: Forgot passcode or device disabled

  • How can I purchase a redemption code for a used Premiere Elements 11?

    My wife bought me a used version of Adobe Premiere Elements 11.  When I try to enter the redemption code, it says that the code is not valid.  How can I purchase another redemption code / serial number?  Thanks!

    When I went to Best Buy online and searched for Premiere Elements 11 a page came up that shows that program being sold by "marketplace" vendors
    http://www.bestbuy.com/site/searchpage.jsp?_dyncharset=UTF-8&_dynSessConf=1374273800958887 553&id=pcat17071&type=page&ks=960&st=premiere+elements&sc=Global&cp=1&sp=&qp=soldby_facet% 3DSAAS%7ESold+By%7EMarketplace+Seller&list=y&usc=All+Categories&nrp=15&fs=saas&iht=n&seeAl l=
    I did not click through to go to any of the vendors, so I don't know if any of them actually sell USED software

  • Render for ios compositing? cross-discipline question

    Does anyone know what settings in Motion export will allow my video to be used in an iOS app such that the alpha channel is respected?
    I am including the alpha channel in the export.
    The background in the video is always black when used in my iOS app, when exporting as H.264.
    After exporting to Compressor so I can specify either the Animation codec or ProRes 444, I get nothing displayed in my app, which causes me conclude that those codecs aren't supported in iOS.

    It is true that no video codec under iOS supports an alpha channel. But, it is possible to use a 3rd party library to add this functionality into a specific iOS app. You would need to export to Quicktime with the Animation codec set to Millions+ and then prepare the video for inclusion into your iOS app. My blog post on the subject goes into detail if you are interested:
    http://iosgraphicsanimation.wordpress.com/2013/06/05/h-264-video-with-an-alpha-c hannel/

  • Jabber Guest Sample code for iOS - ERRORS

    I am trying to develop a Jabber Guest app for a customer. I downloaded the sample xcode projects and attempted to run ABC Bank, to see how a it one would work. The build failed and I received the error: " No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). " Any help is appreciated.
    I've attached a screenshot of the error message

    From the screenshot it looks like you are using a simulator to run the sample apps. For the sample apps to work you have to build using a device. Running on a simulator is not supported.
    It's on our roadmap to add support to build via simulator. 

  • SAP Transaction code for IOs

    Hi,
    Can you please provide SAP transaction code to pull a master list of all open IOs with reference to profit centers? 
    Thanks
    saritha.

    Try KOK5.
    Regards
    Sreenivas

Maybe you are looking for

  • How do i remove the hard drive?,

    HI HOW DO I GET TO THE HARD DRIVE OF MACHINE? IT WONT START SINCE WE SPILT SOME WINE ON THE KEYBOARD. CAN YOU EMAIL ME at [email protected] as I can't get to my emails please. it is an HP PAVILION  NOTEBOOK PRODUCT NO. LE936EA#ABU WINDOWS 7 INSTALLED

  • Connecting to and updating via computer

    Is there any way to update the software through the computer? When I connect it to the computer it doesn't recognize any new hardware at all I see on ZTE's website they do have a windows driver but it doesn't seem to do anything?

  • Cannot create a GR for a subcontracting PO

    Hi I am not able to create a GR in MIGO for a subcontracting PO. It is givingthe error message " enter storage loc" but I have that field locked in the header details tab. Please advise. Thanks VV

  • Illustrator screen artifacts

    Hi! I've been having a problem with a screen artifacts on Adobe Illustrator CC. whenever I select an object and try to drag it/scale it up or down, I get grey "squares" just covering my entire screen. The squares disappear when I mouse over them (era

  • How do I set Elements to open jpeg files?

    I have been using Photoshop Elements to open, manage and fix my photo files. Since I installed an Adobe Reader update, the photo files and attachments try to open with Adobe Reader X, which only opens pdf files and can't open the jpeg photos. The onl