Compilation problems under Linux
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Nicolas Buduroi <nbudu... @gmail.com>
Date: Thu, 7 Jul 2011 12:17:29 -0700 (PDT)
Local: Thurs, Jul 7 2011 3:17 pm
Subject: Compilation problems under Linux
Hi, I'm having trouble compiling the latest stable version of REE (2011.03) under ArchLinux x86_64, with GCC 4.6.1 and glibc 2.14. Here the error:
make libtcmalloc_minimal.la
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c -o libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo './'`src/tcmalloc.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c src/tcmalloc.cc -fPIC -DPIC -o .libs/libtcmalloc_minimal_la-tcmalloc.o
src/tcmalloc.cc:1672:54: error: conflicting declaration ‘void* (* __memalign_hook)(size_t, size_t, const void*)’
/usr/include/malloc.h:183:39: error: ‘__memalign_hook’ has a previous declaration as ‘void* (* volatile __memalign_hook)(size_t, size_t, const void*)’
make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1
I've then tried out the github HEAD, which doesn't contain this error, but there another one. The compiler complained about a callback.func and cbtable.func files containing serious syntax errors. I had a look at them and they appear to be a big problem with the generators. After reviewing those they didn't seemed to be anything wrong so I called the generators manually and the result .func files are now valid and REE could be compiled correctly. I've attached the diff of the .func file to this message.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Ben <googlegro... @benhamill.com>
Date: Mon, 25 Jul 2011 14:59:44 -0700 (PDT)
Local: Mon, Jul 25 2011 5:59 pm
Subject: Re: Compilation problems under Linux
I have this problem, too, but these patches (at least when installing
via rvm) seems broken in some way that I can't determine. I downloaded
them and ran:
$ rvm install ree-1.8.7-head --patch ./callback.diff,./cbtable.diff
But it errored out and the logs for both say "**** Only garbage was
found in the patch input."
I'm also on x86_64 Arch with gcc 4.6.1 and glibc 2.14. Any further
suggestions? Thanks.
Ben
On Jul 7, 2:17 pm, Nicolas Buduroi <nbudu... @gmail.com> wrote:
> Hi, I'm having trouble compiling the latest stable version of REE (2011.03)
> under ArchLinux x86_64, with GCC 4.6.1 and glibc 2.14. Here the error:
> make libtcmalloc_minimal.la
> /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall
> -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc
> -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc
> -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign
> -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c -o
> libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo
> './'`src/tcmalloc.cc
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src
> -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings
> -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free
> -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree
> -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc
> -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c src/tcmalloc.cc -fPIC
> -DPIC -o .libs/libtcmalloc_minimal_la-tcmalloc.o
> src/tcmalloc.cc:1672:54: error: conflicting declaration ‘void* (*
> __memalign_hook)(size_t, size_t, const void*)’
> /usr/include/malloc.h:183:39: error: ‘__memalign_hook’ has a previous
> declaration as ‘void* (* volatile __memalign_hook)(size_t, size_t, const
> void*)’
> make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1
> I've then tried out the github HEAD, which doesn't contain this error, but
> there another one. The compiler complained about a callback.func and
> cbtable.func files containing serious syntax errors. I had a look at them
> and they appear to be a big problem with the generators. After reviewing
> those they didn't seemed to be anything wrong so I called the generators
> manually and the result .func files are now valid and REE could be compiled
> correctly. I've attached the diff of the .func file to this message.
> callback.diff
> 3KViewDownload
> cbtable.diff
> 1KViewDownload
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Дмитрий Дудин <dima.du... @gmail.com>
Date: Sat, 7 Apr 2012 00:01:35 -0700 (PDT)
Local: Sat, Apr 7 2012 3:01 am
Subject: Re: Compilation problems under Linux
I have this problem too.
пятница, 8 июля 2011 г., 2:17:29 UTC+7 пользователь Nicolas Buduroi написал:
> Hi, I'm having trouble compiling the latest stable version of REE > (2011.03) under ArchLinux x86_64, with GCC 4.6.1 and glibc 2.14. Here the > error:
> make libtcmalloc_minimal.la
> /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. > -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall > -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc > -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc > -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign > -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c -o > libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo > './'`src/tcmalloc.cc
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src > -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings > -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc > -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc > -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign > -fno-builtin-valloc -fno-builtin-pvalloc -DNO_FRAME_POINTER -g -O2 -c > src/tcmalloc.cc -fPIC -DPIC -o .libs/libtcmalloc_minimal_la-tcmalloc.o
> src/tcmalloc.cc:1672:54: error: conflicting declaration ‘void* (* > __memalign_hook)(size_t, size_t, const void*)’
> /usr/include/malloc.h:183:39: error: ‘__memalign_hook’ has a previous > declaration as ‘void* (* volatile __memalign_hook)(size_t, size_t, const > void*)’
> make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1
> I've then tried out the github HEAD, which doesn't contain this error, but > there another one. The compiler complained about a callback.func and > cbtable.func files containing serious syntax errors. I had a look at them > and they appear to be a big problem with the generators. After reviewing > those they didn't seemed to be anything wrong so I called the generators > manually and the result .func files are now valid and REE could be compiled > correctly. I've attached the diff of the .func file to this message.
You must
Sign in before you can post messages.
You do not have the permission required to post.