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

32-bit linux compilation error #1760

Closed
n3f4s opened this issue Mar 27, 2017 · 12 comments
Closed

32-bit linux compilation error #1760

n3f4s opened this issue Mar 27, 2017 · 12 comments
Assignees
Labels
triggers release Major issue that when fixed, results in an "emergency" release

Comments

@n3f4s
Copy link
Contributor

n3f4s commented Mar 27, 2017

Hi,
I tried to compile ponyc from source.
I have an error:

$ git clone https://github.com/ponylang/ponyc.git
$ make
src/libponyc/codegen/genident.c: In function 'gen_numeric_size_table':
src/libponyc/codegen/genident.c:453:26: error: conversion to 'size_t {aka unsigned int}' from 'long long unsigned int' may alter its value [-Werror=conversion]
       size_t type_size = LLVMABISizeOfType(c->target_data, t->use_type);

I'm on manjaro linux 32bits (a distribution based on arch linux).

$ uname -a
Linux manjaro 4.9.13-1-MANJARO #1 SMP PREEMPT Sun Feb 26 17:52:50 UTC 2017 i686 GNU/Linux
@SeanTAllen
Copy link
Member

What version of LLVM are you using?

@SeanTAllen SeanTAllen changed the title Compilation error 32-bit linux compilation error Mar 27, 2017
@n3f4s
Copy link
Contributor Author

n3f4s commented Mar 27, 2017

I'm using llvm 3.9.1-2

$pacman -Qs llvm
local/clang 3.9.1-2
    C language family frontend for LLVM
local/llvm 3.9.1-2
    Low Level Virtual Machine
local/llvm-libs 3.9.1-2
    Low Level Virtual Machine (runtime libraries)

@SeanTAllen
Copy link
Member

@Praetonus looks like #1726 broke this.

@SeanTAllen
Copy link
Member

@n3f4s sorry for that problem, we should have a fix soon. We don't have 32-bit CI so we do best effort to keep it working.

@SeanTAllen
Copy link
Member

SeanTAllen commented Mar 27, 2017

@jemc @killerswan per travis-ci/travis-ci#5770, could we use a docker image to 32 bit testing even if it's just with a single LLVM version?

If this seems reasonable, I'll open an issue for it.

@killerswan
Copy link
Member

@SeanTAllen @jemc That's an interesting possibility! But now I need to go down the rabbit hole of understanding what testing we already do of our existing Dockerfile anyways, too...

@jemc
Copy link
Member

jemc commented Mar 28, 2017

@SeanTAllen @killerswan - not 100% sure, but I don't think Dockerfiles can be used cross-arch.

@killerswan
Copy link
Member

What that Travis CI thread is talking about (if I follow correctly) is using 32-bit docker images on 64-bit Travis VMs, though. It'd take making another Dockerfile, I assume, so I was then wondering what else we should be thinking of testing...

@killerswan
Copy link
Member

@n3f4s sorry we're hijacking your ticket here! 😅

@Praetonus
Copy link
Member

It should be fixed in #1762. Sorry for the trouble.

@Praetonus Praetonus added bug: 4 - in progress triggers release Major issue that when fixed, results in an "emergency" release and removed bug: 1 - needs investigation labels Mar 28, 2017
@Praetonus Praetonus self-assigned this Mar 28, 2017
@SeanTAllen
Copy link
Member

@n3f4s the fixed has been merged

@SeanTAllen
Copy link
Member

i'm not going to kick off a new release for this as the bug was introduced since the last release so merely updating master should be good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triggers release Major issue that when fixed, results in an "emergency" release
Projects
None yet
Development

No branches or pull requests

5 participants