Thomas Pöchtrager
|
d502ab0138
|
use a nifty preprocessor trick to workaround the __block issue in unistd.h
get rid of the || exit 1 in build.sh by using set -e
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
fba6b74ff9
|
update README and TODO
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
7403edf066
|
revert unintentionally committed change in build_gcc script
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
dc8c4719c3
|
enforce building gcc with clang - otherwise building gcc will fail (probably a configuration bug in gcc)
building gcc with gcc (targeting OS X on linux) causes the following errors:
error 1:
g++ -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o xg++ \
gcc.o ggc-none.o g++spec.o driver-i386.o darwin-driver.o libcommon-target.a \
libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
/usr/bin/ld: unrecognised emulation mode: acosx_version_min
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om i386pep i386pe
error 2:
g++ -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace cc1-checksum.c -o cc1-checksum.o
cc1plus: error: unrecognized command line option '-mmacosx-version-min=10.4'
after fixing the -mmacosx-version-min issue in the gcc/specs file, I get the following weird error (gmp is indeed installed):
g++ -c -DIN_GCC_FRONTEND -g -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace cc1-checksum.c -o cc1-checksum.o
In file included from cc1-checksum.c:2:0:
../../gcc/system.h:641:17: fatal error: gmp.h: No such file or directory
#include <gmp.h>
all these errors do not appear when clang is used for building gcc.
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
9c5a089a7f
|
fix cctools path in osxcross-conf
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
55ae02b117
|
support building a gcc as well
rename the project to osxcross
bump version to 0.4
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
3e81644303
|
remove outdated note
|
2014-03-26 20:29:50 +01:00 |
|
Thomas Pöchtrager
|
2e957af35c
|
initial commit
|
2014-03-26 20:28:13 +01:00 |
|