Hi all.
I'm on ArchLinux, I have the following errors when trying to compile gitlab
1.9.1 :
make "DESTDIR="
compiling converter.c
compiling encoding_detector.c
compiling ext.c
compiling transliterator.cpp
In file included from encoding_detector.c:3:0:
common.h:14:14: warning: ‘charlock_new_enc_str’ defined but not used
[-Wunused-function]
static VALUE charlock_new_enc_str(const char *str, size_t len, void
*encoding)
^
In file included from ext.c:1:0:
common.h:14:14: warning: ‘charlock_new_enc_str’ defined but not used
[-Wunused-function]
static VALUE charlock_new_enc_str(const char *str, size_t len, void
*encoding)
^
common.h:23:14: warning: ‘charlock_new_str’ defined but not used
[-Wunused-function]
static VALUE charlock_new_str(const char *str, size_t len)
^
common.h:32:14: warning: ‘charlock_new_str2’ defined but not used
[-Wunused-function]
static VALUE charlock_new_str2(const char *str)
^
In file included from converter.c:2:0:
common.h:23:14: warning: ‘charlock_new_str’ defined but not used
[-Wunused-function]
static VALUE charlock_new_str(const char *str, size_t len)
^
common.h:32:14: warning: ‘charlock_new_str2’ defined but not used
[-Wunused-function]
static VALUE charlock_new_str2(const char *str)
^
linking shared-object charlock_holmes/charlock_holmes.so
In function ‘__read_alias’,
inlined from ‘cdf_read’ at cdf.c:287:6:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘dophn_core.part.3’ at readelf.c:323:7:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘dophn_core.part.3’ at readelf.c:347:11:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘doshn.part.4’ at readelf.c:876:7:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘doshn.part.4’ at readelf.c:904:8:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘doshn.part.4’ at readelf.c:949:9:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘dophn_exec’ at readelf.c:1082:9:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘dophn_exec’ at readelf.c:1133:12:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
compress.c: In function ‘sread’:
compress.c:195:4: warning: call to ‘__fdelt_warn’ declared with attribute
warning: bit outside of fd_set selected
In function ‘__read_alias’,
inlined from ‘sread’ at compress.c:222:3:
/usr/include/bits/unistd.h:39:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
In function ‘__read_alias’,
inlined from ‘file_or_fd’ at magic.c:459:6:
/usr/include/bits/unistd.h:42:2: warning: call to ‘__read_chk_warn’
declared with attribute warning: read called with bigger length than size
of the destination buffer
return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf));
^
/usr/bin/ld: /tmp/ccT3t4Ac.ltrans0.ltrans.o: relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/ccT3t4Ac.ltrans0.ltrans.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:232: recipe for target 'charlock_holmes.so' failed
make: *** [charlock_holmes.so] Error 1
make failed, exit code 2
My system:
[root@miyamoto aur-gitlab]# uname -r
3.14.4-1-ARCH
[root@miyamoto aur-gitlab]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.9-20140507/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.0 20140507 (prerelease) (GCC)
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -flto -ffat-lto-objects"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
Thank you
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/gitlabhq/304a2ccb-5472-42f6-9c0f-f1416f66ec88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.