LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   5.4. GCC-3.4.3 - Pass 1 invalid host type problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/5-4-gcc-3-4-3-pass-1-invalid-host-type-problem-437395/)

thomas55 04-21-2006 05:34 AM

5.4. GCC-3.4.3 - Pass 1 invalid host type problem
 
i have took a screenshot of this can someone help the screenshot is at http://img162.imageshack.us/img162/3...eenshot0gk.jpg

win32sux 04-28-2006 05:28 PM

Quote:

--libexecdir=/lib/tools: invalid host type
make sure you have unset any relevant variables, such as CFLAGS and CXXFLAGS (this is actually mentioned in the book)... the book also recommends that you DO NOT build GCC build in it's source directory, BTW...

thomas55 04-29-2006 02:24 AM

how do i build it out of the source directory? ive already made a directory called gcc-build how do i tell gcc to compile in gcc build?

win32sux 04-29-2006 03:00 AM

Quote:

Originally Posted by thomas55
how do i build it out of the source directory? ive already made a directory called gcc-build how do i tell gcc to compile in gcc build?

by following the instructions maybe??? hehe... :)

basically you just cd into the empty gcc-build directory and then from there you execute the configure script (by specifying the path to it) and then the make, etc...

the instructions/examples in the book a pretty straight-forward:
Code:

# This assumes you are currently in the GCC source dir.
mkdir -v ../gcc-build
cd ../gcc-build

Code:

../gcc-3.4.3/configure --prefix=/tools \
    --libexecdir=/tools/lib --with-local-prefix=/tools \
    --disable-nls --enable-shared --enable-languages=c

Code:

make bootstrap

thomas55 04-29-2006 03:29 AM

i dident think it was that easy thanks anyway

thomas55 04-29-2006 04:46 AM

still getting the same error even when i build out of the source directory i dont think cflags or cxxflags are on as i havent turned them on theres another screenshot here can anyone help me? also im using the live cd as my host distrobution http://img134.imageshack.us/img134/598/shot9uj.jpg

thomas55 04-30-2006 06:05 AM

are cflags and cxxflags enabled by default? if so how do i disable them?

win32sux 04-30-2006 04:59 PM

just echo them to see if they are set:
Code:

echo $CFLAGS
echo $CXXFLAGS

if they are set, then just unset them:
Code:

unset CFLAGS
unset CXXFLAGS

either way, i don't think this is what's causing your problem...

thomas55 05-01-2006 12:24 PM

i was putting \ in the wrong places i might get some more experience with linux befroe i continue

win32sux 05-01-2006 03:21 PM

Quote:

Originally Posted by thomas55
i was putting \ in the wrong places i might get some more experience with linux befroe i continue

now that you mention it, i just noticed that in your screenshot indeed... good catch...

BTW, the backslash lets you keep typing a command on the following line... so you'd hit ENTER after using a backslash, and then you could continue typing on a new line without the command getting executed yet (until you hit ENTER *without* a backslash)... if you're okay typing the whole command continuously then there isn't any need for the backslash at all... in this case, it's mainly for cosmetic purpouses...


All times are GMT -5. The time now is 02:38 PM.