From fnaumann@mail.cs.uni-magdeburg.de Mon Mar 29 14:19:00 2004 Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <20040326211413.16c298c4.mandin.patrice@wanadoo.fr> References: <405868D5.4060101@imperia.net> <1079627332.24920.37.camel@joy.sophics> <5A6C8A86-7D11-11D8-BD2C-00039357F826@epfl.ch> <20040326211413.16c298c4.mandin.patrice@wanadoo.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Philipp_Donz=E9?= Subject: Re: [MiNT] Cross-compiler Date: Mon, 29 Mar 2004 14:08:45 +0200 To: mint@lists.fishpool.fi X-Mailer: Apple Mail (2.613) Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: philipp.donze@epfl.ch Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: > Well, if you use gcc-3.3.3 and the associated patch, the autoconf step > is > not necessary, I have done it, and included it in the final patch. OK, I skipped this part but now I'm stuck while compiling gcc for MiNT. I tried once with a self compiled gcc 3.3 for the host (like it's descriped in the step-by-step guide) and once with apples version of gcc. 1) Error while "make bootstrap" for mint using self compiled GCC: ----------------------------------------------------------------- gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \ gengenrtl.o ../libiberty/libiberty.a /usr/bin/ld: gengenrtl.o bad magic number (not a Mach-O file) collect2: ld returned 1 exit status make[1]: *** [gengenrtl] Error 1 make: *** [all-gcc] Error 2 => The linker (it seems as if the compilation process takes apples linker in /usr/bin/ld) can't use the object file, as it's not a Mach object file. 2) Error while "make bootstrap" for mint using apples GCC: ---------------------------------------------------------- stage1/xgcc -Bstage1/ -B/Users/philipp/cross-tools/m68k-atari-mint/bin/ -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \ gengenrtl.o ../libiberty/libiberty.a ../libiberty/libiberty.a: could not read symbols: Archive has no index; run ranlib to add one make[2]: *** [gengenrtl] Error 1 make[1]: *** [stage2_build] Error 2 make: *** [bootstrap] Error 2 Any Idea? Do I have to use a self compiled binutils package for my host (apple/darwin)? Philipp