build from source failure with arch linux (glibc 2.16.0) #78

Closed
exterm opened this Issue Aug 1, 2012 · 9 comments

Comments

Projects
None yet
4 participants
@exterm

exterm commented Aug 1, 2012

Build fails after ~15 Minutes with:

cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro tools/maxmem.c -o tools/maxmem
tools/maxmem.c: In function ‘main’:
tools/maxmem.c:18:17: error: storage size of ‘rus’ isn’t known
make: *** [tools/maxmem] Error 1

using glibc 2.16.0 and linux-headers 3.4.6
thanks for looking into it

@exterm

This comment has been minimized.

Show comment Hide comment
@exterm

exterm Aug 1, 2012

It seems this is because the struct type rusage is not defined. On my system, I found a definition in /usr/include/linux/resource.h

exterm commented Aug 1, 2012

It seems this is because the struct type rusage is not defined. On my system, I found a definition in /usr/include/linux/resource.h

@exterm

This comment has been minimized.

Show comment Hide comment
@exterm

exterm Aug 1, 2012

Sadly, the Arch Linux AUR package is now orphaned and not working.

exterm commented Aug 1, 2012

Sadly, the Arch Linux AUR package is now orphaned and not working.

@exterm

This comment has been minimized.

Show comment Hide comment
@exterm

exterm Aug 2, 2012

I have created a binary package based on the install script from the download page. I'm not sure that everything works, my example app doesn't use a db so I couldn't test that.

https://aur.archlinux.org/packages.php?ID=61389

exterm commented Aug 2, 2012

I have created a binary package based on the install script from the download page. I'm not sure that everything works, my example app doesn't use a db so I couldn't test that.

https://aur.archlinux.org/packages.php?ID=61389

@Aqua-Ye

This comment has been minimized.

Show comment Hide comment
@Aqua-Ye

Aqua-Ye Aug 2, 2012

Contributor

Hello,

Thank you very much for the package !

So about the native backend stdlib, it is not compiled by default anymore. If you want it, you can make all.

Contributor

Aqua-Ye commented Aug 2, 2012

Hello,

Thank you very much for the package !

So about the native backend stdlib, it is not compiled by default anymore. If you want it, you can make all.

@cedricss

This comment has been minimized.

Show comment Hide comment
@cedricss

cedricss Aug 13, 2012

Contributor

Thanks! I added a link to the PKGBUILD page on https://opalang.org

Contributor

cedricss commented Aug 13, 2012

Thanks! I added a link to the PKGBUILD page on https://opalang.org

@dseg

This comment has been minimized.

Show comment Hide comment
@dseg

dseg Nov 11, 2012

tools/maxmem.c:18:17: error: storage size of ‘rus’ isn’t known
make: *** [tools/maxmem] Error 1

Same here (ArchLinux / glibc 2.16.0-5),
To fix this, please add a following line to the tools/maxmem.c:

#include <sys/resource.h>

dseg commented Nov 11, 2012

tools/maxmem.c:18:17: error: storage size of ‘rus’ isn’t known
make: *** [tools/maxmem] Error 1

Same here (ArchLinux / glibc 2.16.0-5),
To fix this, please add a following line to the tools/maxmem.c:

#include <sys/resource.h>

@Aqua-Ye

This comment has been minimized.

Show comment Hide comment
@Aqua-Ye

Aqua-Ye Nov 12, 2012

Contributor

Fix pushed on master.

Contributor

Aqua-Ye commented Nov 12, 2012

Fix pushed on master.

@Aqua-Ye Aqua-Ye closed this Nov 12, 2012

@dseg

This comment has been minimized.

Show comment Hide comment
@dseg

dseg Dec 1, 2012

Thank you for the fix, I've updated the AUR opa-git package, It's succesfully built from the source under ArchLinux (i686) / glibc 2.16.0-5 / OCaml 4.00.01-1.
https://aur.archlinux.org/packages/opa-git/

I've created few additional packages:
https://aur.archlinux.org/packages/emacs-opa-mode-git/
https://aur.archlinux.org/packages/vim-opa-git/

dseg commented Dec 1, 2012

Thank you for the fix, I've updated the AUR opa-git package, It's succesfully built from the source under ArchLinux (i686) / glibc 2.16.0-5 / OCaml 4.00.01-1.
https://aur.archlinux.org/packages/opa-git/

I've created few additional packages:
https://aur.archlinux.org/packages/emacs-opa-mode-git/
https://aur.archlinux.org/packages/vim-opa-git/

@Aqua-Ye

This comment has been minimized.

Show comment Hide comment
@Aqua-Ye

Aqua-Ye Dec 1, 2012

Contributor

Thanks !!

Contributor

Aqua-Ye commented Dec 1, 2012

Thanks !!

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