[haiku-development] Re: compilation error

On Wed, Nov 19, 2008 at 3:14 PM, Ithamar R. Adema <ithamar@xxxxxxx> wrote:
> Hey,
>
> Dustin Howett wrote:
>>
>> To quote my previous e-mail (October)
>> -----
>> I attempted to rebuild GCC2 because jam was complaining that
>> HAIKU_RAW_GCC_VERSION was not set (which it actually was.)
>> This is the error I encountered:
>>
>> --------
>> In file included from tconfig.h:5,
>>                 from
>> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:33:
>>
>> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/config/i386/xm-haiku.h:32:
>> sys/wait.h: No such file or directory
>> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:41:
>> stdlib.h: No such file or directory
>> /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:42:
>> unistd.h: No such file or directory
>> make[1]: *** [libgcc2.a] Error 1
>> make[1]: Leaving directory
>>
>> `/home/dustin/programming/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc'
>> make: *** [cross] Error 2
>> ERROR: Building gcc failed.
>> --------
>>
>>
>
> Any change of giving the commandline of the file being compiled too?
> Interested in the -isystem options there...
>
> Ithamar.
>

--
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi
_fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf
_bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
        do \
          echo ${name}; \
          
/home/dustin/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc/xgcc
-B/home/dustin/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc/
-B/home/dustin/c/haikubuild/haiku/generated/cross-tools/i586-pc-haiku/bin/
-I/home/dustin/c/haikubuild/haiku/generated/cross-tools/i586-pc-haiku/include
-O2  -DCROSS_COMPILE -DIN_GCC     -O2 -U_FORTIFY_SOURCE -I./include
-fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/config
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/../include -c
-DL${name} \
               /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c
-o ${name}.o; \
          if [ $? -eq 0 ] ; then true; else exit 1; fi; \
          i586-pc-haiku-ar rc tmplibgcc2.a ${name}.o; \
          rm -f ${name}.o; \
        done
_muldi3
In file included from tconfig.h:5,
                 from
/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:33:
/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/config/i386/xm-haiku.h:32:
sys/wait.h: No such file or directory
/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:41:
stdlib.h: No such file or directory
/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c:42:
unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory
`/home/dustin/programming/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc'
make: *** [cross] Error 2
ERROR: Building gcc failed.
--

So,
/home/dustin/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc/xgcc
-B/home/dustin/c/haikubuild/haiku/generated/cross-tools-build/gcc/gcc/
-B/home/dustin/c/haikubuild/haiku/generated/cross-tools/i586-pc-haiku/bin/
-I/home/dustin/c/haikubuild/haiku/generated/cross-tools/i586-pc-haiku/include
-O2  -DCROSS_COMPILE -DIN_GCC     -O2 -U_FORTIFY_SOURCE -I./include
-fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I.
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/config
-I/home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/../include -c
-DL_muldi3 /home/dustin/c/haikubuild/buildtools/legacy/gcc/gcc/libgcc2.c
-o _muldi3.o

- Dustin L. Howett

Other related posts: