Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
10-26-2011, 06:42 AM
#1
LQ Newbie
Registered: Oct 2011
Posts: 14
Rep:
errors when installing gcc 4.2.4
Hello
I'm working with ubunto 11.04. i have gcc 4.5.2.
I want install gcc 4.2.4. i download it and i follow this steps
tar -xvjpf gcc-4.2.4.tar.bz2
mkdir gcc-obj
cd gcc-obj
../gcc-4.2.4/configure
make
sudo make install
I have errors when executing the command make
..
MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crti.o crtn.o
make[3]: entrant dans le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
/home/dell/Bureau/gcc-4.2.4/obj/./gcc/xgcc -B/home/dell/Bureau/gcc-4.2.4/obj/./gcc/ -B/mips-elf/bin/ -B/mips-elf/lib/ -isystem /mips-elf/include -isystem /mips-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -G 0 \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
exec: 2: -G: not found
make[3]: *** [crtbegin.o] Erreur 1
make[3]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make[2]: *** [extra] Erreur 2
make[2]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make[1]: *** [stmp-multilib] Erreur 2
make[1]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/obj/gcc »
make: *** [all-gcc] Erreur 2
root@ubuntu:/home/dell/Bureau/gcc-4.2.4/obj#
Have you any idea for this problem ?
Thank you
10-26-2011, 07:18 AM
#2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Welcome to LQ.
1) Looks like you are building for MIPS ?
What's the reply from 'cat /proc/cpuinfo' ?
2) Plain 'configure' will not do for gcc. Default is :
../gcc-4.2.4/configure --prefix=/usr/local/gcc424 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs
http://www.linuxquestions.org/questi...-1-a-842567/#2
3) I wouldn't use Ubuntu 11.04 or 11.10 for development. Too many pitfalls.
..... ( 11.10 : No gcc can be built. AFAIK.)
4) gcc-4.2.4 packages for Ubuntu 11.04, 32bits i386 are available :
a) gcc42-compat-4.2.4_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
b) g++42-compat-4.2.4_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
...
10-26-2011, 07:52 AM
#3
LQ Newbie
Registered: Oct 2011
Posts: 14
Original Poster
Rep:
Thanks for your reply. I am using 64 bit based CPU.
0 members found this post helpful.
10-26-2011, 08:17 AM
#4
LQ Newbie
Registered: Oct 2011
Posts: 14
Original Poster
Rep:
I execute the command
../gcc-4.2.4/configure --prefix=/usr/local/gcc424 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --with-system-zlib --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs
but i have the following errors
/bin/sh ../.././gcc/mkconfig.sh tconfig.h
/home/dell/Bureau/gcc-4.2.4/host-i686-pc-linux-gnu/gcc/xgcc -B/home/dell/Bureau/gcc-4.2.4/host-i686-pc-linux-gnu/gcc/ -B/usr/local/gcc424/i686-pc-linux-gnu/bin/ -B/usr/local/gcc424/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc424/i686-pc-linux-gnu/include -isystem /usr/local/gcc424/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I/home/dell/Bureau/gcc-4.2.4/gmp -I../.././gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
-c ../.././gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
Dans le fichier inclus à partir de /usr/include/bits/errno.h:25,
à partir de /usr/include/errno.h:36,
à partir de ../.././gcc/tsystem.h:96,
à partir de ../.././gcc/crtstuff.c:68:
/usr/include/linux/errno.h:4:23: erreur: asm/errno.h : Aucun fichier ou dossier de ce type
make[3]: *** [crtbegin.o] Erreur 1
make[3]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4/host-i686-pc-linux-gnu/gcc »
make[2]: *** [all-stage1-gcc] Erreur 2
make[2]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4 »
make[1]: *** [stage1-bubble] Erreur 2
make[1]: quittant le répertoire « /home/dell/Bureau/gcc-4.2.4 »
make: *** [all] Erreur 2
root@ubuntu:/home/dell/Bureau/gcc-4.2.4#
10-26-2011, 09:28 AM
#5
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
# 4
Quote:
erreur: asm/errno.h : Aucun fichier ou dossier de ce type
I.e. : asm/errno.h : No such file ...
Is g++ installed ? ( Installing g++ takes care that all headers etc.
required for gcc gets installed : libc6-dev, linux-libc-dev ).
"asm/errno.h"
http://packages.ubuntu.com/natty-upd...inux-libc-dev/
Is your OS 64bits ? Or 32bits ?
What is the purpose of installing gcc-4.2.4 ?
(Not all applications can be built on the 64bits Ubuntu 11.04).
..
10-26-2011, 10:12 AM
#6
LQ Newbie
Registered: Oct 2011
Posts: 14
Original Poster
Rep:
yes the g++ is installed.
I am using 64 bit based CPU.
I have to install gcc 4.2.4 because CILK ++ requires a gcc 4.2.4
the following notes is from documentation of install cilk++ :
To use the Intel Cilk++ SDK to build applications for the Linux* OS:
o The compiler in this SDK is built on version 4.2.4 of the GNU Compiler Collection
(gcc) and requires the same environment as that version of gcc, including a linker
and assembler typically installed into /bin/utils.
10-26-2011, 10:21 AM
#7
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
The question is not whether you have a 64bits CPU.
Please answer the questions from posts # 2, # 6.
Deciding the processor "name" : 'cat /proc/cpuinfo'
... And please tell us the name / type.
Deciding the OS architecture : 'uname -m'
10-26-2011, 10:40 AM
#8
LQ Newbie
Registered: Oct 2011
Posts: 14
Original Poster
Rep:
The result of 'cat /proc/cpuinfo' : (example of one processor)
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
stepping : 7
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 3991.19
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
root@ubuntu:/home/dell/Bureau/gcc-4.2.4# uname -m
i686
10-26-2011, 10:47 AM
#9
LQ Newbie
Registered: Oct 2011
Posts: 14
Original Poster
Rep:
/usr/include/linux/errno.h:4:10: fatal error: 'asm/errno.h' file not found
errno.h used to be in /usr/include/asm/errno.h, but as of Ubuntu 11.04 it appears in these locations:
root@ubuntu:/home/dell/Bureau/gcc-4.2.4# locate errno.h
/usr/include/errno.h
/usr/include/asm-generic/errno.h
/usr/include/bits/errno.h
/usr/include/i386-linux-gnu/asm/errno.h
/usr/include/linux/errno.h
/usr/include/sys/errno.h
/usr/lib/syslinux/com32/include/errno.h
/usr/src/linux-headers-2.6.38-8/arch/alpha/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/arm/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/arm/mach-bcmring/include/csp/errno.h
/usr/src/linux-headers-2.6.38-8/arch/avr32/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/blackfin/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/cris/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/frv/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/h8300/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/ia64/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/m32r/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/m68k/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/microblaze/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/mips/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/mn10300/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/parisc/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/powerpc/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/s390/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/score/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/sh/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/sparc/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/tile/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/x86/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/arch/xtensa/include/asm/errno.h
/usr/src/linux-headers-2.6.38-8/include/asm-generic/errno.h
/usr/src/linux-headers-2.6.38-8/include/linux/errno.h
/usr/src/linux-headers-2.6.38-8-generic/include/linux/errno.h
root@ubuntu:/home/dell/Bureau/gcc-4.2.4#
There is no 'asm' directory,
So, do i have to install linux-libc-dev to have /usr/include/asm/errno.h ???
10-26-2011, 11:03 AM
#10
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Just for the record
http://packages.debian.org/sid/i386/...c-dev/filelist
>>> /usr/include/i386-linux-gnu/asm/errno.h
I don't know how you can install g++ and not getting linux-libc-dev installed.
EDIT : Sorry, looks like the package is installed.
Anyway : Why not use the two packages listed in post #2 ?
gcc42-compat-4.2.4_i386.deb, g++42-compat-4.2.4_i386.deb
( Built for Ubuntu 11.04 "i686" only.)
.... Then you don't have to build another "gcc-4.2.4"
..
Last edited by knudfl; 10-26-2011 at 11:12 AM .
10-26-2011, 11:20 AM
#11
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
The two Ubuntu 11.04 packages were built by another method.
Namely Eric Hameleers "gcc34.SlackBuild" script(s) modified to 'gcc42'
http://connie.slackware.com/~alien/s...c34.SlackBuild
May be it isn't possible to build gcc with the standard method (post #2)
on Ubuntu 11.04 ? And I have no intension to try, as 11.04 is a
terrible OS for development.
All times are GMT -5. The time now is 07:06 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News