LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!! (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-pass-2-libstdc-v3-gcc_no_executable-293218/)

tagigogo 02-21-2005 09:22 PM

gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!!
 
hi, I followed LFS6.1 to gcc-pass 2...here is some output of 'make'

// When I have the --enable-clocale=gnu on:

Checking for C locale to use ... gnu
Checking for msgfmt yes
Checking for libintl.h usability yes
Checking for libintl.h presence yes
Checking for library containing gettext ... Configure:error:Link tests are not allowed after GCC_NO_EXECUTABLE
make:***[configure-target-libstdc++-v3] Error 1

//When i get rid of --enable-clocale=gnu, the error msg jumps to another location:

Checking for sin in -lm... Configure:error:Link tests are not allowed after GCC_NO_EXECUTABLE
make:***[configure-target-libstdc++-v3] Error 1

----------------------------------------------------------------------------------------------------------
Here is some info about my machine and some changes I made thru out the building(so far..:( )

amd64
host system: Mandrake 10.1 devel;
I added '--host=${TARGET}' and '--libdir=/tools/lib64' to almost every packages I've built;
spec file was examined carefully, shouldn't be any problems;
from the suggestion of ryan's scripts, I also made CC="gcc -m64"
.....
---------------------------------------------------------------------------

well, i don't think those changes are really matter, since I had the same problems the first time I built gcc-pass2 which I didn't pay much attention to x86_64 and didn't change a lot except the spec file...then, i decided to rebuild and made the chances above...

Any one can help??? :confused:

320mb 02-22-2005 09:06 AM

Quote:

well, i don't think those changes are really matter,
Not sure what went wrong..............D'oh
making your own changes and NOT following the book exactly can lead to errors like this............

tagigogo 02-22-2005 10:40 AM

Quote:

Not sure what went wrong..............D'oh making your own changes and NOT following the book exactly can lead to errors like this............
i said the got the same error even if I followed the book!
Anyone even has a guess of what's going wrong??

druuna 02-22-2005 01:12 PM

Hi,

Without knowing what you did/did not change in this and the previous steps and the fact that this is lfs 6.1 (development) makes it kinda hard to give a good folluw-up.

Ok, can come up with one more thing: Did you delete the gcc-build dir from gcc pass 1? If you did not: You should have.

Not much to go on, but hope it helps anyway.

tagigogo 02-23-2005 09:11 AM

linux header
 
Quote:

Did you delete the gcc-build dir from gcc pass 1?
yes, i deleted it...

well, I built the tool chain again, but this time, I followed LWF6.0 - still have the SAME problem...got a little confused with the "Linux-2.6.8.1 Headers"...since you can't even find 'include/linux/version.h' in the kernel source file...in LFS6.1, there is no this section anymore; it just tells you link the header files directly to '/tools/include' - where you copy the linux glibc headers -- what's the differences between those two????....well, i just did the same in LWF6.0 (am I wrong? probably, since I didn't find anyone ask questiona about this!!) so do you think this would be an issue???

anyway, thanks for all the replies...i guess i have to learn more about compiling and programing and the linux kernel...know too little to find answers.

samu3l 05-13-2005 12:08 PM

I have the same error with you

and I followed all steps on the book


does anyone slove the problem yet?!
(or tagigogo had succeeded ?!?!!)

cloud you share the experience of fixing the error ?!

(sorry , my english is pooooooooooooor >"<)

tagigogo 05-13-2005 01:50 PM

pay attention, samu3l, try this out!
 
Wow, it's been a long time....don't know if I really solved the problem or it's just my luck...the problem no longer exist after I adding '--disable-multilib' along with other switches which I don't quite remember...actually, I guess I rebuilt the whole toolchain with that switch and no error occured until I reached the BLFW....so try to add that option and then recompile your gcc...
hope it will help!!

samu3l 05-15-2005 11:19 AM

thank you for you replying

when I add the " --disable-multilib " into my command , there is no difference :(

anyway , I'll try to search way to solve the problem :'(

Thank you so much (Y)


All times are GMT -5. The time now is 03:19 PM.