Comments (12)
@obestwalter I'm not sure what happened since I didn't change anything. I tested with this image:
https://app.vagrantup.com/archlinux/boxes/archlinux
It's possible you might still have the error on your box, but I guess we can see when I make a new release (should be soon.)
from oil.
OS X:
https://www.reddit.com/r/oilshell/comments/6p2tp0/please_try_the_first_osh_release/dkslcjm/
from oil.
Fixed RedHat / CentOS issue here: a8cd603
Not able to repro Arch Linux error.
from oil.
Hi @andychu - thanks for following this up. Good to here that the arch problem dissolved.
from oil.
Works on ubuntu32 VM, but fails on Raspberry Pi Zero with:
$ time make
build/compile.sh build-opt _build/oil/ovm _build/oil/module_init.c _build/oil/main_name.c _build/oil/c-module-srcs.txt
~/src/oil-0.1.alpha1/Python-2.7.13 ~/src/oil-0.1.alpha1
/tmp/ccXch6z6.s: Assembler messages:
/tmp/ccXch6z6.s:26: Error: bad instruction `fnstcw [sp,#6]'
/tmp/ccXch6z6.s:44: Error: bad instruction `fldcw [sp,#6]'
real 16m1.890s
user 15m33.230s
sys 0m14.390s
~/src/oil-0.1.alpha1
cat _build/oil/ovm _build/oil/bytecode.zip > _bin/oil.ovm
cat: _build/oil/ovm: No such file or directory
Makefile:281: recipe for target '_bin/oil.ovm' failed
make: *** [_bin/oil.ovm] Error 1
make: *** Deleting file '_bin/oil.ovm'
real 16m2.092s
user 15m33.320s
sys 0m14.450s
from oil.
I also reported this issue but have since fixed it. Turns out changing your mind about prefix was the problem:
./configure
make
./configure --prefix ~
make
./install
osh # aborts
# in a clean directory
./configure --prefix ~
make
./install
osh # works
from oil.
Ah that should work though, so it's still a bug! I'll test it out.
from oil.
@acg I'm having trouble reproducing this in the archlinux/archlinux Vagrant VM (although I don't think it should have anything to do with Arch if the bug is about changing --prefix
.
The second you typed 'make', did it build anything? For me it said
make: Nothing to be done for 'default'.
I can imagine there is a bug if the Makefile dependencies aren't right though.
... output of make ...
real 0m35.489s
user 0m33.984s
sys 0m1.465s
~/src/oil-0.1.0
cat _build/oil/ovm _build/oil/bytecode.zip > _bin/oil.ovm
chmod +x _bin/oil.ovm
[vagrant@archlinux oil-0.1.0]$ ./configure --prefix ~
m./configure: Wrote _build/detected-config.sh and _build/detected-config.h
[vagrant@archlinux oil-0.1.0]$ make
make: Nothing to be done for 'default'.
[vagrant@archlinux oil-0.1.0]$ ./install
Installing to /home/vagrant/bin/oil.ovm
[vagrant@archlinux oil-0.1.0]$ osh
osh$ ^CCtrl-C
from oil.
Nevermind I reproduced it.
The issue is that both make and install steps read $PREFIX
from _build/detected-config.sh
. And if they disagree then it crashes. Doh!
I will have to think about this. I think it might be the result of some "optimization" I did over the autoconf model. In autoconf the Makefile contains both the build and install steps, and is generated all at once.
Thanks for the report.
$ PATH=~/bin:$PATH
[vagrant@archlinux oil-0.1.0]$ osh
osh: Modules/main.c:347: Ovm_Main: Assertion `sts != -1' failed.
Aborted (core dumped)
from oil.
Building python failed on MacOS Sierra:
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libpython2.7.a(pymath.o) has no symbols
gcc -u _PyMac_Error -o python.exe \
Modules/python.o \
libpython2.7.a -ldl -framework CoreFoundation
./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
running build
running build_ext
building dbm using ndbm
Traceback (most recent call last):
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/setup.py", line 2262, in <module>
main()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/setup.py", line 2257, in main
'Lib/smtpd.py']
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/command/build.py", line 127, in run
self.run_command(cmd_name)
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/Lib/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/setup.py", line 182, in build_extensions
missing = self.detect_modules()
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/setup.py", line 1699, in detect_modules
addMacExtension('_CF', core_kwds, ['cf/pycfbridge.c'])
File "/Users/jwshort/gitworkspaces/oil/Python-2.7.13/setup.py", line 1690, in addMacExtension
raise RuntimeError("%s not found" % name)
RuntimeError: _CF not found
make: *** [sharedmods] Error 1
from oil.
@jshort What command did you run? Let's follow up on issue #70, which I created since OS X is different than other platforms (no free testing environment AFAICT).
from oil.
There are now separate bugs for build issues on each platform, so I'm closing this one. Please continue testing OSH on different platforms :)
from oil.
Related Issues (20)
- Abort with += on missing dict key
- intermittent crash running amd-test script -- reproducible in dbg, opt HOT 4
- OpenBSD doesn't have RLIMIT_AS
- Add pp [x + 42] to print an expression and its value - like Rust dbg!() HOT 2
- github URL pastebin HOT 8
- bash allows pasting multi-line code snippets, but OSH/YSH don't HOT 3
- allow backspace from multiline expressions HOT 1
- allow any custom prompts HOT 2
- typeof / reflection / assign results of '=' HOT 3
- emoji/unicode identifiers
- Setting up GNU readline history HOT 1
- 'view latest' released version in documentation - because old links are often surfaced HOT 1
- crash in parsing return HOT 1
- BashArray could have a sparse representation (ble.sh)
- bash SHELLOPTS and BASHOPTS support
- pitfall - IFS= read x doesn't set x (read --raw-line or for <> loop instead) HOT 6
- Fatal error when closing stderr on a non-fatal error
- nixos defaultUserShell HOT 4
- `json read` unexpectedly parses `123\x00` HOT 8
- Sudo in dev builds isn't very necessary HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oil.