GithubHelp home page GithubHelp logo

Comments (12)

andychu avatar andychu commented on July 24, 2024 1

@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.

andychu avatar andychu commented on July 24, 2024

OS X:

https://www.reddit.com/r/oilshell/comments/6p2tp0/please_try_the_first_osh_release/dkslcjm/

from oil.

andychu avatar andychu commented on July 24, 2024

Fixed RedHat / CentOS issue here: a8cd603

Not able to repro Arch Linux error.

from oil.

obestwalter avatar obestwalter commented on July 24, 2024

Hi @andychu - thanks for following this up. Good to here that the arch problem dissolved.

from oil.

andychu avatar andychu commented on July 24, 2024

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.

acg avatar acg commented on July 24, 2024

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.

andychu avatar andychu commented on July 24, 2024

Ah that should work though, so it's still a bug! I'll test it out.

from oil.

andychu avatar andychu commented on July 24, 2024

@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.

andychu avatar andychu commented on July 24, 2024

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.

jshort avatar jshort commented on July 24, 2024

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.

andychu avatar andychu commented on July 24, 2024

@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.

andychu avatar andychu commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.