Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh fails on NetBSD 6.1.3 clang #7

Closed
donbright opened this issue Mar 23, 2014 · 1 comment
Closed

build.sh fails on NetBSD 6.1.3 clang #7

donbright opened this issue Mar 23, 2014 · 1 comment

Comments

@donbright
Copy link
Contributor

net bsd build.sh fails

log follows


build.sh

. . .
. . .
. . .



Making all in libstuff
--- libstuff_la-allocate.lo ---
--- libstuff_la-apple_version.lo ---
--- libstuff_la-allocate.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I.    -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-allocate.lo -MD -MP--- libstuff_la-apple_version.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I.    -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-apple_version.lo -M--- libstuff_la-allocate.lo ---
 -MF .deps/libstuff_la-allocate.Tpo -c -o libstuff_la-allocate.lo `test -f 'allocate.c' || echo './'`allocate.c
--- libstuff_la-apple_version.lo ---
D -MP -MF .deps/libstuff_la-apple_version.Tpo -c -o libstuff_la-apple_version.lo `test -f 'apple_version.c' || echo './'`apple_version.c
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-apple_version.lo -MD -MP -MF .deps/libstuff_la-apple_version.Tpo -c apple_version.c  -fPIC -DPIC -o .libs/libstuff_la-apple_version.o
--- libstuff_la-allocate.lo ---
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-allocate.lo -MD -MP -MF .deps/libstuff_la-allocate.Tpo -c allocate.c  -fPIC -DPIC -o .libs/libstuff_la-allocate.o
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:84:19: error: typedef redefinition with different types ('__int64_t' (aka 'long') vs 'long long')
typedef __int64_t       int64_t;
                        ^
../include/foreign/i386/types.h:93:20: note: previous definition is here
typedef long long               int64_t;
                                ^
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:96:18: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long') vs 'unsigned long long')
typedef uint64_t        u_int64_t;
                        ^
../include/foreign/i386/types.h:95:28: note: previous definition is here
typedef unsigned long long      u_int64_t;
                                ^
In file included from allocate.c:23:
In file included from /usr/include/stdlib.h:41:
In file included from /usr/include/sys/types.h:98:
In file included from ../include/foreign/machine/endian.h:40:
../include/foreign/i386/endian.h:100:10: fatal error: 'sys/_endian.h' file not found
#include <sys/_endian.h>
         ^
--- libstuff_la-apple_version.lo ---
mv -f .deps/libstuff_la-apple_version.Tpo .deps/libstuff_la-apple_version.Plo
--- libstuff_la-arch.lo ---
/bin/ksh ../libtool  --tag=CC   --mode=compile clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" -DPACKAGE_STRING=\"cctools\ 845\" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I.    -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion  -DPROGRAM_PREFIX="\"x86_64-apple-darwin12-\"" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1  -O3 -MT libstuff_la-arch.lo -MD -MP -MF .deps/libstuff_la-arch.Tpo -c -o libstuff_la-arch.lo `test -f 'arch.c' || echo './'`arch.c
libtool: compile:  clang -DPACKAGE_NAME=\"cctools\" -DPACKAGE_TARNAME=\"cctools\" -DPACKAGE_VERSION=\"845\" "-DPACKAGE_STRING=\"cctools 845\"" -DPACKAGE_BUGREPORT=\"cjacker@gmail.com\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENSSL_MD5_H=1 -DHAVE_UUID_UUID_H=1 -DEMULATED_HOST_CPU_TYPE=16777223 -DEMULATED_HOST_CPU_SUBTYPE=3 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -I. -I../include -I../include/foreign -D__DARWIN_UNIX03 -Wall -Wno-long-long -Wno-import -Wno-format -Wno-deprecated -Wno-unused-variable -Wno-unused-private-field -Wno-unused-function -Wno-objc-root-class -Wno-deprecated-objc-isa-usage -Wno-invalid-offsetof -Wno-int-conversion -DPROGRAM_PREFIX=\"x86_64-apple-darwin12-\" -D__LITTLE_ENDIAN__=1 -DLTO_SUPPORT=1 -O3 -MT libstuff_la-arch.lo -MD -MP -MF .deps/libstuff_la-arch.Tpo -c arch.c  -fPIC -DPIC -o .libs/libstuff_la-arch.o
--- libstuff_la-allocate.lo ---
3 errors generated.
*** [libstuff_la-allocate.lo] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
--- libstuff_la-arch.lo ---
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:84:19: error: typedef redefinition with different types ('__int64_t' (aka 'long') vs 'long long')
typedef __int64_t       int64_t;
                        ^
../include/foreign/i386/types.h:93:20: note: previous definition is here
typedef long long               int64_t;
                                ^
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
/usr/include/sys/types.h:96:18: error: typedef redefinition with different types ('__uint64_t' (aka 'unsigned long') vs 'unsigned long long')
typedef uint64_t        u_int64_t;
                        ^
../include/foreign/i386/types.h:95:28: note: previous definition is here
typedef unsigned long long      u_int64_t;
                                ^
In file included from arch.c:26:
In file included from /usr/include/stdlib.h:41:
In file included from /usr/include/sys/types.h:98:
In file included from ../include/foreign/machine/endian.h:40:
../include/foreign/i386/endian.h:100:10: fatal error: 'sys/_endian.h' file not found
#include <sys/_endian.h>
         ^
3 errors generated.
*** [libstuff_la-arch.lo] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
2 errors

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools/libstuff
*** [all-recursive] Error code 1

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools
1 error

make: stopped in /home/don/osxcross/build/cctools-845-ld64-134.9_aeaf795/cctools

exiting with abnormal exit code (2)
run 'OCDEBUG=1 ./build.sh' to enable debug messages
removing stale locks...
if it is happening the first time, then just re-run the script

tpoechtrager added a commit that referenced this issue Mar 24, 2014
bump version (0.5 -> 0.6)
update CHANGELOG
misc adjustments
@tpoechtrager
Copy link
Owner

Ok, supporting NetBSD now.

Successfully bootstrapped GCC with it, so I guess everything works properly.

tpoechtrager added a commit that referenced this issue Mar 26, 2014
bump version (0.5 -> 0.6)
update CHANGELOG
misc adjustments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants