Cross Compile GMP and Openswan for ARM Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionCross compiling expect for ARMmultithread handling in AM1808 using embedded LinuxInstalling a cross-toolchain to build ARM binaries on DebianHow do I cross-compile Chromium for ARM?How to install gcc 4.9 arm cross compiler on debian stretchCross-Compilation of tun/tap device driver for armv7Cross-Compile cpuminer for armUnable to boot kernel and rootfile system in QemuHow to install a functional ARM cross-gcc toolchain on Ubuntu 18.04?How to compile the libcap for cross-platform

I'm thinking of a number

Unexpected result with right shift after bitwise negation

How do I keep my slimes from escaping their pens?

If I can make up priors, why can't I make up posteriors?

What do you call a plan that's an alternative plan in case your initial plan fails?

What LEGO pieces have "real-world" functionality?

Need a suitable toxic chemical for a murder plot in my novel

Can the prologue be the backstory of your main character?

Single author papers against my advisor's will?

Is it possible to ask for a hotel room without minibar/extra services?

What would be Julian Assange's expected punishment, on the current English criminal law?

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

Strange behaviour of Check

How should I respond to a player wanting to catch a sword between their hands?

What to do with post with dry rot?

Why does tar appear to skip file contents when output file is /dev/null?

Are my PIs rude or am I just being too sensitive?

If A makes B more likely then B makes A more likely"

Geometric mean and geometric standard deviation

Two different pronunciation of "понял"

Why is there no army of Iron-Mans in the MCU?

What can I do if my MacBook isn’t charging but already ran out?

Can a monk deflect thrown melee weapons?

Complexity of many constant time steps with occasional logarithmic steps



Cross Compile GMP and Openswan for ARM



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionCross compiling expect for ARMmultithread handling in AM1808 using embedded LinuxInstalling a cross-toolchain to build ARM binaries on DebianHow do I cross-compile Chromium for ARM?How to install gcc 4.9 arm cross compiler on debian stretchCross-Compilation of tun/tap device driver for armv7Cross-Compile cpuminer for armUnable to boot kernel and rootfile system in QemuHow to install a functional ARM cross-gcc toolchain on Ubuntu 18.04?How to compile the libcap for cross-platform



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have to cross compile opensawn for a OMAP4 Board and GMP is prerequisite. First I tried it on 64 bit OS but it gave me this error:




configure: error: Oops, mp_limb_t is 64 bits, but the assembler code in this configuration expects 32 bits.




Then I shifted to Ubuntu 12.04 32 Bit and the GMP V6.0.0 got compiled after few trials. Even after having the ARCH, TOOLCHAIN and CROSS_COMPILER variables in .bashrc I had to export the following:



export ARCH=arm<BR>
export PATH=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/bin/:$PATH<BR>
export CROSS_COMPILE=arm-none-linux-gnueabi-<BR>


Then following commands were observed:



./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --prefix=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/

make clean
make
make install


Then Soft-linking GMP Library to Toolchain



~/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/lib/gcc/arm-none-linux-gnueabi/4.7.3 
# ln -s ~/Work/Projects/BSQ_VVDN/packages/gmp-6.0.0/.libs/libgmp.so libgmp.so


I had the GMP compiled successfully although the make check reported all test failed.



9 of 9 tests failed.


Now when I try to cross compile Openswan-2.6.41 after making changes in CROSSCOMPILE.sh and do this make programs I get this error:




In file included from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/certs.h:24:0,from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/lib/libopenswan/id.c:42:
/home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/secrets.h:20:41: fatal error: gmp.h: No such file or directory
compilation terminated




I need to cross compile openswan and GMP.










share|improve this question






























    2















    I have to cross compile opensawn for a OMAP4 Board and GMP is prerequisite. First I tried it on 64 bit OS but it gave me this error:




    configure: error: Oops, mp_limb_t is 64 bits, but the assembler code in this configuration expects 32 bits.




    Then I shifted to Ubuntu 12.04 32 Bit and the GMP V6.0.0 got compiled after few trials. Even after having the ARCH, TOOLCHAIN and CROSS_COMPILER variables in .bashrc I had to export the following:



    export ARCH=arm<BR>
    export PATH=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/bin/:$PATH<BR>
    export CROSS_COMPILE=arm-none-linux-gnueabi-<BR>


    Then following commands were observed:



    ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --prefix=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/

    make clean
    make
    make install


    Then Soft-linking GMP Library to Toolchain



    ~/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/lib/gcc/arm-none-linux-gnueabi/4.7.3 
    # ln -s ~/Work/Projects/BSQ_VVDN/packages/gmp-6.0.0/.libs/libgmp.so libgmp.so


    I had the GMP compiled successfully although the make check reported all test failed.



    9 of 9 tests failed.


    Now when I try to cross compile Openswan-2.6.41 after making changes in CROSSCOMPILE.sh and do this make programs I get this error:




    In file included from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/certs.h:24:0,from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/lib/libopenswan/id.c:42:
    /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/secrets.h:20:41: fatal error: gmp.h: No such file or directory
    compilation terminated




    I need to cross compile openswan and GMP.










    share|improve this question


























      2












      2








      2


      0






      I have to cross compile opensawn for a OMAP4 Board and GMP is prerequisite. First I tried it on 64 bit OS but it gave me this error:




      configure: error: Oops, mp_limb_t is 64 bits, but the assembler code in this configuration expects 32 bits.




      Then I shifted to Ubuntu 12.04 32 Bit and the GMP V6.0.0 got compiled after few trials. Even after having the ARCH, TOOLCHAIN and CROSS_COMPILER variables in .bashrc I had to export the following:



      export ARCH=arm<BR>
      export PATH=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/bin/:$PATH<BR>
      export CROSS_COMPILE=arm-none-linux-gnueabi-<BR>


      Then following commands were observed:



      ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --prefix=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/

      make clean
      make
      make install


      Then Soft-linking GMP Library to Toolchain



      ~/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/lib/gcc/arm-none-linux-gnueabi/4.7.3 
      # ln -s ~/Work/Projects/BSQ_VVDN/packages/gmp-6.0.0/.libs/libgmp.so libgmp.so


      I had the GMP compiled successfully although the make check reported all test failed.



      9 of 9 tests failed.


      Now when I try to cross compile Openswan-2.6.41 after making changes in CROSSCOMPILE.sh and do this make programs I get this error:




      In file included from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/certs.h:24:0,from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/lib/libopenswan/id.c:42:
      /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/secrets.h:20:41: fatal error: gmp.h: No such file or directory
      compilation terminated




      I need to cross compile openswan and GMP.










      share|improve this question
















      I have to cross compile opensawn for a OMAP4 Board and GMP is prerequisite. First I tried it on 64 bit OS but it gave me this error:




      configure: error: Oops, mp_limb_t is 64 bits, but the assembler code in this configuration expects 32 bits.




      Then I shifted to Ubuntu 12.04 32 Bit and the GMP V6.0.0 got compiled after few trials. Even after having the ARCH, TOOLCHAIN and CROSS_COMPILER variables in .bashrc I had to export the following:



      export ARCH=arm<BR>
      export PATH=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/bin/:$PATH<BR>
      export CROSS_COMPILE=arm-none-linux-gnueabi-<BR>


      Then following commands were observed:



      ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --prefix=/home/harsh32bit/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/

      make clean
      make
      make install


      Then Soft-linking GMP Library to Toolchain



      ~/Work/Projects/BSQ_VVDN/BISQUARE/gcc-SourceryCodeBenchLite-arm/lib/gcc/arm-none-linux-gnueabi/4.7.3 
      # ln -s ~/Work/Projects/BSQ_VVDN/packages/gmp-6.0.0/.libs/libgmp.so libgmp.so


      I had the GMP compiled successfully although the make check reported all test failed.



      9 of 9 tests failed.


      Now when I try to cross compile Openswan-2.6.41 after making changes in CROSSCOMPILE.sh and do this make programs I get this error:




      In file included from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/certs.h:24:0,from /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/lib/libopenswan/id.c:42:
      /home/harsh32bit/Work/Projects/BSQ_VVDN/packages/openswan-2.6.41/include/secrets.h:20:41: fatal error: gmp.h: No such file or directory
      compilation terminated




      I need to cross compile openswan and GMP.







      ubuntu arm cross-compilation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 9 at 9:18









      Rui F Ribeiro

      42.1k1483142




      42.1k1483142










      asked Sep 3 '14 at 11:29









      Harsh VardhanHarsh Vardhan

      1263




      1263




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Well, this was taking a lot of time so I took an hunch and thought of compiling it on the OMAP4 board itself instead of cross compiling it on ubuntu. Lucky for me that the OMAP4 board was powerful enough to carry out such compilations: That awesome feeling, if anyone understands.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f153518%2fcross-compile-gmp-and-openswan-for-arm%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Well, this was taking a lot of time so I took an hunch and thought of compiling it on the OMAP4 board itself instead of cross compiling it on ubuntu. Lucky for me that the OMAP4 board was powerful enough to carry out such compilations: That awesome feeling, if anyone understands.






            share|improve this answer



























              0














              Well, this was taking a lot of time so I took an hunch and thought of compiling it on the OMAP4 board itself instead of cross compiling it on ubuntu. Lucky for me that the OMAP4 board was powerful enough to carry out such compilations: That awesome feeling, if anyone understands.






              share|improve this answer

























                0












                0








                0







                Well, this was taking a lot of time so I took an hunch and thought of compiling it on the OMAP4 board itself instead of cross compiling it on ubuntu. Lucky for me that the OMAP4 board was powerful enough to carry out such compilations: That awesome feeling, if anyone understands.






                share|improve this answer













                Well, this was taking a lot of time so I took an hunch and thought of compiling it on the OMAP4 board itself instead of cross compiling it on ubuntu. Lucky for me that the OMAP4 board was powerful enough to carry out such compilations: That awesome feeling, if anyone understands.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 10 '16 at 7:31









                Harsh VardhanHarsh Vardhan

                1263




                1263



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f153518%2fcross-compile-gmp-and-openswan-for-arm%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.