This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross to i686-pc-mingw fails with 1.16.0


On 06. aug. 2012 14:27, Per Arnold Blaasmo wrote:
> Hi,
> I have been testing the new 1.16.0 and get an error due to that pass-1
> core C compiler is always run.
> 
>> [ALL  ]    The directory that should contain system headers does not
>> exist:
>> [ALL  ]     
>> /home/pablaasmo/x-tools/i686-pc-mingw32/i686-pc-mingw32/sysroot/mingw/include
>> [ERROR]    make[2]: *** [stmp-fixinc] Error 1
>> [ALL  ]    rm gcc.pod
>> [ALL  ]    make[2]: Leaving directory
>> `/home/pablaasmo/tmp/ct-ng-build-1.16.0/.build/i686-pc-mingw32/build/build-cc-core-pass-1/gcc'
>> [ERROR]    make[1]: *** [all-gcc] Error 2
>> [ALL  ]    make[1]: Leaving directory
>> `/home/pablaasmo/tmp/ct-ng-build-1.16.0/.build/i686-pc-mingw32/build/build-cc-core-pass-1'
>> [ERROR]  
>> [ERROR]  >>
>> [ERROR]  >>  Build failed in step 'Installing pass-1 core C compiler'
>> [ERROR]  >>        called in step '(top-level)'
>> [ERROR]  >>
>> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
>> [ERROR]  >>        called from:
>> do_cc_core_backend[scripts/build/cc/gcc.sh@426]
>> [ERROR]  >>        called from:
>> do_cc_core_pass_1[scripts/build/cc/gcc.sh@88]
>> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
>> [ERROR]  >>
> 
> Earlier pass-1 core C Compiler was not run and C-library headers was
> installed before running pass-2 core.
> 
> .config file attached.
> 
> Regards
> Per A.

This patch fixes it as a "workaround" for this configuration. It just
puts the libc_startup_files before cc_core_pass_1:


diff -Naurd a/lib/ct-ng.1.16.0/steps.mk b/lib/ct-ng.1.16.0/steps.mk
--- a/lib/ct-ng.1.16.0/steps.mk	2012-08-06 14:55:00.848409671 +0200
+++ b/lib/ct-ng.1.16.0/steps.mk	2012-08-06 14:39:24.736900247 +0200
@@ -36,9 +36,9 @@
             binutils_for_host   \
             elf2flt_for_host    \
             sstrip_for_host     \
+            libc_start_files    \
             cc_core_pass_1      \
             kernel_headers      \
-            libc_start_files    \
             cc_core_pass_2      \
             libc                \
             cc_for_build        \


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]