[Bug 233545] bin/sh: "export VAR" always defines VAR unlike other shells

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 26 21:10:49 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233545

--- Comment #1 from Jan Beich <jbeich at FreeBSD.org> ---
For a real example see
https://github.com/unicorn-engine/unicorn/blob/73f457353543/make.sh#L120 found
via

$ pkg install git cmake gmake ninja sdl2
$ git clone https://github.com/yuzu-emu/yuzu/
$ mkdir yuzu_build; cd yuzu_build
$ cmake -GNinja -DENABLE_QT=OFF ../yuzu
[..]
FAILED: /path/to/yuzu/externals/unicorn/libunicorn.a
cd /path/to/yuzu/externals/unicorn && /usr/local/bin/cmake -E env
UNICORN_ARCHS="aarch64" PYTHON="/usr/local/bin/python2.7" /bin/sh make.sh
macos-universal-no
g -shared qemu/aarch64-softmmu/tcg/tcg.o ... uc.o list.o -o libunicorn.so.1
-Wl,-Bsymbolic-functions,-soname,libunicorn.so.1 -lm
gmake: g: Command not found
gmake: [Makefile:232: libunicorn.so.1] Error 127 (ignored)
ln -sf libunicorn.so.1 libunicorn.so
gmake -C samples
gmake[1]: Entering directory '/path/to/yuzu/externals/unicorn/samples'
g -Wall -Werror -I../include -c sample_arm64.c -o sample_arm64.o
gmake[1]: g: Command not found
gmake[1]: [Makefile:129: sample_arm64.o] Error 127 (ignored)
g -Wall -Werror -I../include -c sample_arm64eb.c -o sample_arm64eb.o
gmake[1]: g: Command not found
gmake[1]: [Makefile:129: sample_arm64eb.o] Error 127 (ignored)
sample_arm64.o  -L.. -lunicorn -lpthread -lm -o sample_arm64
gmake[1]: sample_arm64.o: Command not found
gmake[1]: *** [Makefile:105: sample_arm64] Error 127
gmake[1]: Leaving directory '/path/to/yuzu/externals/unicorn/samples'
gmake: *** [Makefile:214: all] Error 2

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list