General :: Generate 64bit Executable (utility) Using PPC Cross Compiler?

Sep 7, 2010

I need to generate 64-bit executable(utility) using PowerPC-linux cross compiler? i.e. Any options need to pass ppc-gcc other then "-m64". I have written a small test program on 64-bit server and generated 64-bit executable using gcc alone.

Ex:
#
file a.out
a.out: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
#

Actually I want to generate a executable(using PowerPC-linux cross compiler),which will run on 64-bit machines. In my Makefile I am trying to use CC = XXXXX/powerpc-linux/bin/powerpc-linux-gcc -m64 to ppc-linux-gcc,but giving error.
error: -m64 not supported in this configuration
If I remove -m64 its generating 32-bit executable.

View 5 Replies


ADVERTISEMENT

General :: Arm-linux-gcc Cross Compiler For Sparc/solaris?

Nov 27, 2010

first of all, i will be glad if i can get prebuild toolchain for target=arm1176jzf-s on host= sparc-sun-solaris2.10. ( i hav browsed but can't find prebuild one) so, i tried to establish by myself i hav established binutils first, but while trying to configure& build gcc(gcc4.4.0) , i was interrupted with following error.. error message: this error has come while building boot strap gcc for cross complier tools chain

checking build system type... sparc-sun-solaris2.10
checking host system type... arm-unknown-linux-gnu
checking target system

[code].....

View 3 Replies View Related

General :: Finding A Cross-platform 'Split' Utility?

Aug 10, 2010

I need to transfer a 4Gbyte file from my Linux netbook to a friends WinXP desktop. And I'd like to it with a usb flash drive, but it can't handle a file larger than 2Gbyte. A limitation due to the underlying FAT32 filesystem. But I don't wish to reformat my usb as ext3 either.

So I need to split my 4GByte file into smaller chunks. And the 'split' utility needs to be available on both Linux and the WinXP operating systems.

View 3 Replies View Related

General :: No Space Left On Device Error With Plenty Of Free INodes After Cross Compiler Setup

Jan 15, 2011

I have searched google for a couple of days, and I keep hearing about an INode limit on filesystems, but that doesn't seem to be the case.

Now whenever I try to download something, watch a ..... video, or listen to Pandora radio, it just stops playing after 2 seconds. Downloading says "No space left on device".I also get the error as root.I do have 5% and more free of HDD space. After reading the similar posts I checked all of this, so if I am overlooking something on the forum, I apologize for an extra post about.

View 3 Replies View Related

Fedora :: Building GCC 4.4.3 Cross Compiler On F12

Mar 28, 2010

I am trying to build a gcc 4.4.3 cross-compiler. I downloaded the gcc 4.4.3 release, uncompressed it, made a new directory called gccbuild and cd'd there. I have already installed gmp, mpfr, and mpc in /usr/local. These are the commands I used:

Code:
configure --target=arm-linux --enable-languages=c --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
make
However, the build fails with
Code:
checking for arm-linux-gcc... /home/steven/gccbuild/./gcc/xgcc -B/home/steven/gccbuild/./gcc/ -B/usr/local/arm-linux/bin/ -B/usr/local/arm-linux/lib/ -isystem /usr/local/arm-linux/include -isystem /usr/local/arm-linux/sys-include
checking for suffix of object files... configure: error: in `/home/steven/gccbuild/arm-linux/libgcc':
configure: error: cannot compute suffix of object files: cannot compile .....

View 2 Replies View Related

Programming :: Linker Error Using Cross Compiler

Aug 11, 2010

I am using a arm compiler to build my program but getting following compiler error at the end -
init.c.text+0x2c): undefined reference to '__libc_csu_fini'
init.c.text+0x34): undefined reference to '__libc_csu_init'

View 1 Replies View Related

Software :: Cross Compiler For Power PC On Ubuntu

Sep 21, 2010

I am preparing build chain for cross compiling Power PC platform on Ububtu. I was successfully compiled glibc-2.11 and binutils-2.20. But while compiling gcc_4.5.1 I stopped at following compilation error:

compilation terminated.
make[4]: *** [decContext.o] Error 1
make[4]: *** Waiting for unfinished jobs....
../../../../gcc-4.5.1/libgcc/../libdecnumber/decExcept.c:25:18: fatal error: fenv.h: No such file or directory
compilation terminated.
../../../../gcc-4.5.1/libgcc/../libdecnumber/decNumber.c:175:53: fatal error: stdlib.h: No such file or directory
compilation terminated .....

View 1 Replies View Related

Software :: Installing GCC Cross Compiler In Fedora

Apr 8, 2010

While installing the gcc cross compiler in fedora using the following commands
# cd /etc/yum.repos.d/
# wget [URL]
# yum install armv5tel-redhat-linux-gnueabi-gcc

I got a error:
# cd yum.repos.d
[root@sparc yum.repos.d]# wget [URL]
Resolving fedora-arm.wantstofly.org... failed: Temporary failure in name resolution.
[root@sparc yum.repos.d]#

View 1 Replies View Related

Programming :: How To Force Scons To Use Cross Compiler

Feb 3, 2010

I have a large existing codebase that all compiles under Ubuntu 8.04 with g++ using Scons. I've been given the task of getting it to compile for Arm9 running uclinux. I have a arm-elf-g++ compiler that I need to use instead of the gcc version. I ended up borking my /usr/lib/scons/SCons/Tool/g++.py file to use arm-elf-g++ instead of g++, but I know that this is not correct, as I have to go edit that file every time I change compilers.

These are the 2 lines I switch out:
Code:
compilers = ['arm-elf-g++']
#compilers = ['g++']

I simply can not find anywhere in the scons documentation that indicates how to tell it to use a different compiler. It seems that it would go under "Environment" but beyond that I'm lost. The CPPPATH variable seems like it only tells scons where to find #include files. I suppose I could rename arm-elf-g++ to g++ and just set my path to find that one first, but that seems like a bit of a hack as well. It would also break other things on my machine.

View 3 Replies View Related

Ubuntu :: Ipod Touch/Iphone Cross Compiler?

Jan 2, 2010

I am just learning to write programs in C++, and i got an iPod Touch for christmas. I have jailbroken my iPod so i can run my own programs on it. If i ever get them compiled. After a few hours of searching i have been unable to come up with a working toolchain for ubuntu which compiles for ipod/iphone. Does anyone know where i can get one/find a howto which will help me to get a toolchain working?

View 4 Replies View Related

Software :: Need To Build Cross Compiler Tool Chain

Sep 23, 2010

I have downloaded the source for an embedded Linux system but no tool chain. I want/need a tool chain to rebuild the system image. Can anyone point me to a 'How to' for building the environment? It is an ARM9 system.

View 4 Replies View Related

Programming :: Building Cross Compiler Tool Chain On F14 For Other Distributions?

Apr 24, 2011

My Linux: Fedora 14 x64
My gcc: 4.5.1
My Glibc: 2.12.90

target Linux: "Ubuntu 8.04.4 LTS" hardy
target kernel: 2.6.24-29-server x64
target gcc: 4.2.4 target Glibc: 2.7

I need gcc/g++ and fortran. I Googled and most documents I found are somehow outdated and targeting for ARM, not for other Linux.

View 8 Replies View Related

Programming :: Building PPC476 Enabled GCC Cross Compiler / Tool Chain

Aug 2, 2010

I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When I try to compile the source code using the cross compiler I am getting the below error message. I think this is something related to linker.

Code:
cow_shim_funcs_startup_shutdown.o cow_shim_utils.o ../../dm/cfg/cfgi.a ../../dm/pl2/libsas21xxpl.a ../../raid/pfk/libpfk.a
/home/Raghu/gcc/cross-compiler/ppc/tools/lib/gcc/powerpc-unknown-linux-gnu/4.3.1/../../../../powerpc-unknown-linux-gnu/lib/libgcc_s.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [app.out] Error 1

View 3 Replies View Related

Fedora :: MadPlay Install - C Compiler Cannot Create Executable

Apr 28, 2010

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executable
See 'config.log' for more details.

This is error that I keep getting every time. Iam using fedora 10 version and I keep getting this error while i was trying to insatl madplay for vlc source code compilation. I have insatalled libmad .0.15.1,libid3tag.0.15, I got these codecs from [URL] and vlc sorce code is from [URL]. Config.log file details are:

hostname = localhost
uname -m = i686
uname -r = 2.6.27.5-117.fc10.i686
uname -s = Linux
uname -v = #1 SMP Tue Nov 18 12:19:59 EST 2008 .....
configure: exit 78

View 131 Replies View Related

Fedora :: C Compiler Cannot Create Executable Files While Installing Madplay

Apr 29, 2010

what my intension is i want to cross complile vlc source code into arm9 mini 2440 target board for that i am compiling vlc source code in intel desktop pc which has fedora 10 version. so that in order to compile vlc source code we need to install following codecs those are libmad 0.15.1b,libid3tag-0.15.1b,madplay-0.15.1b,i got these codecs from h[URL] .and vlc sorce code from [URL]. i have successfully compiled libmad 0.15.1b and libid3tag-0.15.1b . those two are compiled in the following way [color] ./cofigure --prefix=/home/narendra/lib/ make make install [/color]

i was trying to compile madplay-0.15.1b in the following way

Code:
./configure --prefix=/home/narendra/madplay-0.15.1b CPPFLAGS="-I /home/narendra/lib/libmad-0.15.1b/include/" LDFLAGS="-L /home/narendra/lib/libid3tag-0.15.1b/lib/"
after this command i keep getting this error message

[Code]....

View 14 Replies View Related

Fedora :: Make A Nachos Directory And Download The Nachos Source Code And Cross Compiler?

Apr 28, 2011

I am trying to install NachOS on fedora, i make a nachos directory and download the nachos source code and cross compiler, then i extract the zip files and patch the make files and everything is okay till now. but when it comes to compiling nachos, i followed these steps.

* ~/nachos> cd NachOS-4.0
* ~/nachos/NachOS-4.0> cd code/build.linux
* ~/nachos/NachOS-4.0/code/build.linux> make depend

[code]....

View 10 Replies View Related

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 Replies View Related

Software :: Unable To Boot To RHEL 4 32bit After Installing RHEL 64bit - Error 13: Invalid Or Unsupported Executable Format

Apr 27, 2009

I have 4 partitions in my system, out of which two(sda1, sda2) have windows on them. I have installed RHEL 4 32 - bit on sda3 and after that , installed installed RHEL 64-bit on to a partition sda 5. Now i am unable to boot into RHEL 32-bit. The error i am getting is Error 13: Invalid or unsupported executable format.

View 1 Replies View Related

Ubuntu Installation :: Cpuid Utility Is Not Compiled With U9.04 And Utility Is Not Available As Package With Synaptic?

Feb 5, 2010

cpuid utility is not compiled with U9.04 and the utility is not available as a package with synaptic -
other distributions have it available as rpm . url

Any way to run this utility in the Debian world?

View 2 Replies View Related

Software :: Build A C Compiler Without An Existing C Compiler?

Dec 14, 2010

So for those of you who has built GCC from source would know that you can't install GCC without an existing GCC. So my question is, what would happen if all computers in the world suddenly just died, and all you had was the computer in front of you, and a copy of GCC 4.5. How would you install that?

I ask because I would like to install GCC 4.5 on my old powerbook G4 mac without installing a binary GCC provided by Tiger 10.4 disks. I would like to build GCC from source, without an existing GCC to complicate updating.

View 6 Replies View Related

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

General :: Connecting Two Pcs Via Cross Cable?

May 5, 2011

I want connect my two Linux PCs running in 2.6 kernel via cross over cable. To do this I have done the following settings after a Google search:

In PC1

ifconfig eth0 10.10.11.16 netmask 255.255.255.0 up route add default gw 10.10.11.13 eth0 (default gateway which is ip of pc2 )

In PC2

ifconfig eth0 10.10.11.13 netmask 255.255.255.0 up route add default gw 10.10.11.16 eth0 (default gateway which is ip of pc1 )

Then i tried pinging i could not able to connect.Are these above settings enough or any thing am i missing?

For your more information

In PC1

ifconfig output
eth0 Link encap:Ethernet HWaddr 00:16:76:A1:33:37
inet addr:10.10.11.16 Bcast:10.10.11.255 Mask:255.255.255.0
inet6 addr: fe80::216:76ff:fea1:3337/64 Scope:Link

[Code].....

View 1 Replies View Related

General :: Cross Compile In 64 Bit Machine For 32 Bit Arm?

Nov 18, 2010

i have fedora 11(64 bit).i want to do the cross compilation for 32 bit arm processor.i install all required thing but any of the make command(make,make mrproper,defconfig) is not working.

View 8 Replies View Related

General :: How To Generate A Log In Syslog

Sep 7, 2010

I am configuring syslog-ng on my server.
I suspect something to be wrong.

Is there a tool I can use in the shell to generate a log? So I can check that the log appear in the syslog file.

View 3 Replies View Related

General :: Not Able To Generate Boot.log?

Feb 20, 2011

I m not able to find anything under boot.log file. Here is the output of boot.log files.

As you can see nothing is getting written inside the boot.log files .

How can i make all the events to be logged under boot.log file?

Code:
# ls -ltr /var/log | grep boot
-rw------- 1 root root 0 Jan 25 15:59 boot.log.4
-rw------- 1 root root 0 Feb 1 18:38 boot.log.3
-rw------- 1 root root 0 Feb 9 00:00 boot.log.2
-rw------- 1 root root 0 Feb 16 17:57 boot.log.1
-rw------- 1 root root 0 Feb 20 04:02 boot.log

View 11 Replies View Related

General :: Cross-compiling To Target System?

Jul 22, 2010

I have synology nas box DS710+ that has intel atom processor inside. i've installed ubuntu under virtual box, downloaded needed toolchain for x86 processors, and decided to cross-compile openvpn.

I 've started from compiling lzo library, but first question that appeared in my head - how i have to move all compiled binaries to my synology?

1. configure - okay
2. make - okay
3. make install - this is not necessary?

Will --prefix parameter helps me? or do i have to use chroot? cause there is a plenty amount of files that i need to move to my synology.

View 2 Replies View Related

General :: Cross Reference Matching Between Files?

Oct 18, 2009

I'm trying to do something very basic in bash. It's a kind of cross-reference matching between 2 files. I have a file1.txt. It's like this:

Code:

item1
item3
item4
...

I Have a file2.txt. It's like this:

Code:

item1 "Properties of item1"
item2 "Properties of item2"
item3 "Properties of item3"
item4 "Properties of item4"
item5 "Properties of item5"
...

My goal is to print out the lines in file2 that contains lines present in file1. I do:

Code:

for i in $(cat file1.txt); do grep $i file2.txt; done but I get no output. Will someone please tell me where am I mistaking?

View 3 Replies View Related

General :: Cross Compiling GCC For Power PC MPC8260

Mar 2, 2011

We want to use GCC for cross compiling C source code for POWERPC MPC8260 target. How do we build cross compiler in windows?

View 3 Replies View Related

General :: Cross Plat Form Compiling

Feb 21, 2011

I developed a test program(my first under linux) some thing like g++ -I$(BOOST_INCLUDE) -L$(BOOST_LIBS) threading.cpp -lpthread -lboostThread -lOtherLib -o threadingTest.out...This thing works in GCC4.5, but to compile it under windows visual studio 2008, do I have to create a new project file and then include all libs?
In short, is there any IDE or utility, where I just compile it either on linux or windows without going and modifying project options again and again ?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved