Fedora :: Set A Different C And C++ Compiler When Building RPM's?
Jan 14, 2010I am in the process of building some packages with the Intel compiler (icc) and was wondering how to make it the default compiler when using rpmbuild.
View 3 RepliesI am in the process of building some packages with the Intel compiler (icc) and was wondering how to make it the default compiler when using rpmbuild.
View 3 RepliesI 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 .....
I am trying to recompile a large open source project with the Nvidia Cuda Compiler: 'nvcc' [URL].. nvcc supports all the compile flags that gcc does but not all of the linking options. This shouldn't be a problem however as nvcc generates object files that are compatible with gcc and I should hence be able to compile with nvcc and then link with gcc (linking against the CUDA library).
To compile with nvcc I use:
./configure CC=nvcc
Which successfully creates make files that se nvcc to compile. But the Configuration script does not seem to honor LD=gcc in the same way, ie: ./configure CC=nvcc LD=gcc still tries to link everything with nvcc which promptly fails because nvcc does not support the option '-soname' without which the project will not link correctly. What am I doing wrong? How can tell the config script to link with gcc?
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.
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
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.
where I can download the GNU compilers. I installed Fedora 11 today dual botted with 64-bit Vista on an HP 64-bit computer. I found a little short description on gnu.org, but no links to download sites. Since I don't have a compiler installed already I will need to install the binarys instead of the source code.
View 7 Replies View RelatedHow can i get g++ compiler in ferdora 14. i cant compile any program in frdora 14.
View 3 Replies View RelatedIm using Fedora 10, and I need to install a c, and c++ compiler. I've downloaded codeblocks, but when i try to compile and run the code, nothing will happen. What other compiler should i use? what is the best c++ compiiler for fedora?
View 5 Replies View RelatedI have recently installed Fedora 11 and I am having some trouble with it. While installing another program I get the message: make: g77: Command not found
I tied to look for the compiler to install using yum search g77
And got the following list:
I was wondering if it is in some obscure repository, which would seem odd to me. I have the following repositories available (as shown in yumex) :
i just installed fedora 14 and which gcc shows that there is no C++ compiler . How can i download G++ 4.5 version without download the entire development tools. Last time i tried yum groupinstall "Development Tools" and that took ages with no result.. I just want to install C++ ..
View 2 Replies View Relatedi just installed fedora and i want to install a couple programs but i keep getting the same message saying that no acceptable c compiler was found, so i downlpoaded the gcc packlage, extracted it, navigated to it in the terminal, and ran ./configure but it tells me that there was no acceptable c compiler found, whats going on here, i need an acceptable c compiler to install a c compiler this is real confusing
View 14 Replies View RelatedI installed Fedora on my machine. I'm very new at Linux but would like to start coding in C++. I would like to know the steps to write and compile a Hello World program using C++ in Linux. (I've been a Microsoft person all my life).
View 4 Replies View RelatedI am running a version of Fedora 10 on my PC for development puposes. The strange problem I have encountered is that I cannot locate the C compiler being used. I have looked for G++ GCC, etc but cannot find it. Does anyone know the compiler being used or the command to find it through command line.
View 5 Replies View RelatedI managed to figure out how to issue out the CC compiler command by issuing a symalink to the usr/bin I have now have this problem when I try to compile any C++ code I recieve this error
"/usr/include/stdio.h", line 485: Error: "(" expected instead of "__attribute__".
I went on the sun forums and they dont or give a solution due to Fedora not being test when developing this tool, so I was wonder if I could run into someone who has a solution to this problem
This is my last road block so I can fully finish my programming assignment
I am trying to compile wine from source.
When I run:
Code:
I get this output:
Code:
I need gcc and g++ installed; I installed both of these through yum.
I have looked through config.log, however I do not know what to look for in there for something that might be the problem.
So apparently the GNU c++ compiler did not install when I did:
# yum install gcc
And now it's failing to install the C++ compiler when I do:
# yum install gcc-c++
It's saying it's running out of mirrors to check or something? Does anyone know what else I can do to install it?
for some reason I don't know how to install *.tar.gz files, I ommitted some of my files listed in the code after the ls command for simplicity
[Code]....
i have installed packets for running G++ command but when i compiled the .cpp file it was showing iostream.h file not found then i remove .h extentions from #include <iostream.h> and all other include headers as well in cpp source file then this iostream.h not found option gone but still some files are missing and my program is not running
View 1 Replies View RelatedWhile 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]#
I am having trouble building vim with gui from source on Fedora 13. I am using
Code:
./configure --enable-gui=auto --with-features=huge --prefix=$HOME/myvim
but I get
Quote:
checking for X... (cached) no
checking if X11 header files can be found... no
checking --enable-gui argument... no GUI support.
I have installed GTK and X11 dev packages. What's missing?
[URL]
I'm building from source because the packaged Vim doesn't have all the features I want.
I have multiple gcc compilers in my laptop, how can I change the default gcc compiler?
View 2 Replies View RelatedDoes anybody know if there is a pre-packaged compiler for assembly language in x86_64 for Fedora for the Motorola/Freescale 68hc11? The GNU binutils are pretty old for this and I am not sure if they work on the Freescale (new) version. I, also, don't think that they are on Fedora's repositories.
View 1 Replies View RelatedI have Centos 5.4 installed on my dedicated blade server.. (I thought I had some other OS - ignor SUSE 10.1 opps) I'm trying to install ImageMagick - I didn't find it on my server i did do what they said but not there..
1. I downloaded the file to the ROOT (i hope that the right Place)
2. cd ImageMagick-6.6.0-5
3. ./configure
4. This ERROR CAME BACK
[Code]....
Please tell me the difference between Redhat linux javac compiler and the ubuntu javac compiler.
View 1 Replies View RelatedI am trying to install Apache on my remote server. I've downloaded the latest Apache Http Server and when I configure it I get this error: configure error: No acceptable C compiler found in $PATH. So I download and extract the latest GCC Compiler and when I try to install that I get the same error:
configure error: No acceptable C compiler found in $PATH I am really stumped... Can anyone just offer ideas. My server is running CentOS 5.4 x64 and I'm remotely trying to download and install a running LAMP setup for Joomla. I'm using a shell to communicate with a cloud server type.
I am using Red Hat Enterprise 5 and have downloaded GCC 4.4.5 and trying to install or configuring the same, but getting some problem.
Code: # mkdir objdir
# cd objdir
# srcdir/configure Output of command
Code: checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
[Code]...
configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. this to install GCC package.
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
I am trying to install the intel compiler onto my 64 bit machine to compile fortran and I cannot get past this error.
When I run the install package it looks for the neccesary pre requisites tell me that I need
I was trying to follow this guide [url] and the only library that installed correctly was the last one, the 64 bit one.
When i type yum install (one of the above libraries) it comes back and says that it is already present which cannot be correct since the install program asks for them.
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]....