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

Lots of warnings when running shen-ecl in OSX #8

Open
tizoc opened this issue Jan 13, 2018 · 2 comments
Open

Lots of warnings when running shen-ecl in OSX #8

tizoc opened this issue Jan 13, 2018 · 2 comments

Comments

@tizoc
Copy link
Member

tizoc commented Jan 13, 2018

It seems to work fine in that it compiles and executes the code, but it keeps printing warnings constantly:

/private/var/folders/sy/4w247kq176z5n2k37nn3lblw0000gn/T/ecl062dRXZ8B.eclh:25:108: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
{0,0,3,0,ecl_make_fixnum(5),ecl_make_fixnum(4),(cl_objectfn)L1_shen_type_signature_of_shen_prhush_,ECL_NIL,ecl_make_fixnum(-1)},
                                                                                                           ^~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/ecl/16.1.3_2/include/ecl/object.h:131:62: note: expanded from macro 'ecl_make_fixnum'
#define ecl_make_fixnum(n)      ((cl_object)(((cl_fixnum)(n) << 2) | t_fixnum))
                                              ~~~~~~~~~~~~~~ ^
1 warning generated.

It is always the same warning (because of ecl_make_fixnum), which seems to be coming from Clang. I'm not familiar with ECL, is it normal that it is generating and compiling C code while evaluating Shen code?

@tizoc tizoc added the bug label Jan 13, 2018
@rkoeninger
Copy link
Member

I am not able to reproduce with with ECL 16.1.3 built from source on Ubuntu 16.10. And I don't remember this happening on Windows.

I also didn't think bin/ecl/shen would generate C code on the fly while running.

On Ubuntu it does still show ;;; Loading #P"/usr/local/lib/ecl-16.1.3/cmp.fas" for 30 seconds when you start up bin/ecl/shen. I'm still trying to figure out how to fix that in another pull request: #6.

What version of Clang do you have? Is it bundled with ECL?

@tizoc
Copy link
Member Author

tizoc commented Jan 13, 2018

ECL:

> ecl --version
ECL 16.1.3

Clang:

> clang --version
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

It is not bundled with ECL, it comes from Apple.

I'm trying to find if there is any way to specify the flags being passed to the C compiler, but I haven't found anything yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants