Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Building on OS X - how?
On Wed, 10 Aug 2016, coypu%SDF.ORG@localhost wrote:
There shouldn't be anything special about building from OS X.
You just ran into a setup that happens to not work with it.
Well, that's my question: what _does_ work?
I have OS X 10.10.5 (Yosemite) and no wish to upgrade,
so pointers on where to get proper Xcode, Command line tools etc. would
help.
It'd be good to file a bug report for it, or at least mention where it
fails.
Here are the details and errors for two builds, 1) with GCC/LLVM
(/Developer/usr/bin/cc) and 2) with LLVM/CLANG (/usr/bin/cc).
Short:
1) /Developer/usr/bin/cc:
error: 'LONG_MIN' undeclared
in tools/binutils
2) /usr/bin/cc:
Undefined symbols for architecture x86_64: "_iconv"
in external/gpl3/gcc/usr.bin/backend
Long:
1) /Developer/usr/bin/cc: error: 'LONG_MIN' undeclared
===> build.sh command: ./build.sh -U -r -X ../xsrc-current -x -m amd64
-T tooldir.Darwin -O obj.amd64-Darwin-XXX -D destdir.amd64 -R
release.amd64 -V HOST_CC=/Developer/usr/bin/cc -V
HOST_CXX=/Developer/usr/bin/c++ release
...
dependall ===> tools/binutils
...
/Developer/usr/bin/cc -c -DHAVE_CONFIG_H -O -O2 -no-cpp-precomp -I.
-I/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiberty/../include
-W -Wall -W write-strings -Wc++-compat -Wstrict-prototypes -pedantic -D_GNU_SOURCE
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiberty/fibheap.c
-o ./fibheap.o
couldn't understand kern.osversion `14.5.0'
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c: In function 'fibheap_replace_key_data':
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c:220: error: 'LONG_MIN' undeclared (first use in this function)
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c:220: error: (Each undeclared identifier is reported only once
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c:220: error: for each function it appears in.)
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c: In function 'fibheap_delete_node':
/Users/feyrer/work/NetBSD/cvs/src-current/tools/binutils/../../external/gpl3/binutils/dist/libiber
ty/fibheap.c:261: error: 'LONG_MIN' undeclared (first use in this function)
*** Failed target: ./fibheap.o
2) /usr/bin/cc:
===> build.sh command: ./build.sh -U -r -X ../xsrc-current -x -m amd64
-T tooldir.Darwin -O obj.amd64-Darwin-XXX -D destdir.amd64 -R release.amd64 -V HOST_CC=/usr/bin/cc
-V HOST_CXX=/usr/bin/g++ release
...
dependall ===> external/gpl3/gcc/usr.bin/backend
...
# link backend/genmatch
/usr/bin/g++ -O
-I/Users/feyrer/work/NetBSD/cvs/src-current/obj.amd64-Darwin-XXX/external/gpl3/gcc
/usr.bin/host-libiberty/libiberty -I.
-I/Users/feyrer/work/NetBSD/cvs/src-current/external/gpl3/gc
c/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H
-I/Users/feyrer/work/NetBSD/cvs/src-
current/external/gpl3/gcc/dist/gcc
-I/Users/feyrer/work/NetBSD/cvs/src-current/external/gpl3/gcc/d
ist/gcc/.
-I/Users/feyrer/work/NetBSD/cvs/src-current/external/gpl3/gcc/dist/gcc/../include
-I/Use
rs/feyrer/work/NetBSD/cvs/src-current/external/gpl3/gcc/dist/gcc/../libcpp/include
-I/Users/feyrer
/work/NetBSD/cvs/src-current/external/gpl3/gcc/dist/gcc/../libdecnumber
-I/Users/feyrer/work/NetBS
D/cvs/src-current/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd
-I/Users/feyrer/work/NetBSD/cvs/s
rc-current/external/gpl3/gcc/dist/gcc/../libbacktrace -DGENERATOR_FILE
-I/Users/feyrer/work/NetBSD
/cvs/src-current/external/gpl3/gcc/usr.bin/backend/.. -o genmatch
genmatch.lo build-errors.lo bui
ld-vec.lo build-hash-table.lo
-L/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/lib -lnbc
ompat
/Users/feyrer/work/NetBSD/cvs/src-current/obj.amd64-Darwin-XXX/external/gpl3/gcc/usr.bin/hos
t-libcpp/libcpp/libcpp.a
/Users/feyrer/work/NetBSD/cvs/src-current/obj.amd64-Darwin-XXX/external/g
pl3/gcc/usr.bin/host-libiberty/libiberty/libiberty.a
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
convert_using_iconv(void*, unsigned char const*, unsigned long,
_cpp_strbuf*) in libcpp.a(ch
arset.o)
(maybe you meant: __Z14cpp_init_iconvP10cpp_reader,
__cpp_destroy_iconv )
"_iconv_close", referenced from:
__cpp_destroy_iconv in libcpp.a(charset.o)
__cpp_convert_input in libcpp.a(charset.o)
"_iconv_open", referenced from:
init_iconv_desc(cpp_reader*, char const*, char const*) in
libcpp.a(charset.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Home |
Main Index |
Thread Index |
Old Index