LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 08-12-2008, 09:19 PM   #1
panger123
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Angry wrong to compile the gcc-4.1.2,everyone could help me .


I need mips-cross-tools. so I download the binulite-17 and its patch, gcc-4.1.2 and its patch ,glibc-2.5 and glibc-linuxthreads-2.5 glibc-ports-2.5 glibc-libin-2.5 .
to compile the binulite-17, OK!
to compile the gcc-4.1.2 , it show err!
I tar the gcc-4.1.2 , entry it , patch the patches, mkdir cross and cd cross,configure with ../configure --target=mipsel-linux --prefix=/opt/linux/bin (where the binulite tools ld . ranlib ...were here) --enable-languages=c --disable-shared --without-headers --with-newlib
that is OK!
But when I run make, it show err those:
checking target system type... mipsel-unknown-linux-gnu
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 for mipsel-linux-strip... mipsel-linux-strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-linux-gcc... /home/panger123/patch/gcc-4.1.2/little-cross/./gcc/xgcc -B/home/panger123/patch/gcc-4.1.2/little-cross/./gcc/ -B/opt/linux/little/mipsel-linux/bin/ -B/opt/linux/little/mipsel-linux/lib/ -isystem /opt/linux/little/mipsel-linux/include -isystem /opt/linux/little/mipsel-linux/sys-include
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] 错误 1


So I see the config.log , it show like this:
68 configure:5775: checking where to find the target gcj
69 configure:5803: checking where to find the target gfortran
70 configure:5831: checking where to find the target ld
71 configure:5856: checking where to find the target lipo
72 configure:5871: checking where to find the target nm
73 configure:5896: checking where to find the target objdump
74 configure:5921: checking where to find the target ranlib
75 configure:5946: checking where to find the target strip
76 configure:5971: checking where to find the target windres
77 configure:6024: checking whether to enable maintainer-specific portions of Makefiles
78 configure:6071: checking if symbolic links between directories work

No errs were show !

Maybe it is my wrong configuration , could anyone help me? thanks. My MSN is anger123@126.com
 
Old 08-13-2008, 06:07 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Off the top of my head, I wonder if you have /tmp or $TMPDIR mounted -noexec.

Aside from that, I might need to wake up fully to have a better guess.
 
Old 08-14-2008, 08:44 PM   #3
panger123
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
thanks you very much!
 
Old 08-14-2008, 11:58 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Quote:
Originally Posted by panger123 View Post
thanks you very much!
So am I to assume you have fixed the problem?

I'm happy to have helped... I can't tell you how many times I've run into this issue myself because I have a couple machines intentionally mounting /tmp -noexec. I either have to reset $TMPDIR before building or remount /tmp before building.

This isn't arcane knowledge... it's only from accidentally running headfirst into this wall myself... repeatedly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 11:24 PM
Wrong GCC version replica9000 Linux - Software 6 09-04-2007 04:04 PM
Wrong GCC version during compile? raid517 Linux - Software 4 09-14-2005 09:46 AM
LFS: gcc from wrong location??? 7.e.Q Linux From Scratch 0 07-08-2004 03:55 AM
something wrong with gcc freemind Linux - Newbie 18 04-30-2003 09:12 PM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration