Le 03/04/2013 22:41, Bruce Dubbs a écrit :
> Pierre Labastie wrote:
>> When switching to gcc 4.8.0, the test of g++ was added to
>> version-check.sh, but not to the list of requirements. Only GCC appears,
>> which could be anything from the gcc executable to the whole compiler
>> collection. Maybe this should be made clearer that g++ is needed.
>> I'll commit a change to jhalfs for testing that.
>>
>> Actually, I have a minimal debian system for tests, and never installed
>> g++, until I discovered that the first pass of gcc would fail whithout
>> it. That is the reason why I looked at the hostreqs...
> I suppose we could have:
>
>
> echo 'main(){}'>  dummy.c&&  gcc -o dummy dummy.c
> if [ -x dummy ]
>     then echo "gcc compilation OK";
>     else echo "gcc compilation failed"
> fi
> rm -f dummy
>
> g++ -o dummy dummy.c
> if [ -x dummy ]
>     then echo "g++ compilation OK";
>     else echo "g++ compilation failed"
> fi
> rm -f dummy.c dummy
>
> It can be the same dummy.c file as for gcc.
>
>     -- Bruce
Is it really needed to test that the compiler can generate such an 
executable, if the version is OK?
I cannot think of a reason why it would not, unless the host is badly 
flawed...

Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to