Harbour 3.4 Build Error on Ubuntu 17.10 i386 Server CLANG 5.0

104 views
Skip to first unread message

Roberto Borges

unread,
Oct 20, 2017, 6:53:47 AM10/20/17
to Harbour Users
Dear All

! Harbour root: '../'  Project store: './'  Core build: yes  Addon: no
! Started build...
! Calculating build order for 72 projects...
! Warning: 'hbmk2 ./gtqtc/gtqtc.hbp --hbinfo' failed with exit code 20
/home/usrosinst/src/hbv34s/bin/linux/clang/hbmk2 -lang=en -quiet -width=0 -autohbm- @../config/hbpre -inc ./hbbz2/3rd/bz2/bz2.hbp @../config/hbpost
hbmk2 [bz2]: Error: Running lib command. 255
hbmk2 [bz2]: Exit status: 7: failed in final assembly (linker or library manager)
! Finished build...
Makefile:8: recipe for target 'first' failed
make[1]: *** [first] Error 7
config/dir.mk:71: recipe for target 'contrib' failed
make: *** [contrib] Error 2


vszakats

unread,
Oct 20, 2017, 8:08:58 AM10/20/17
to Harbour Users
Thanks, but this isn't sufficient information to tell anything.

Have you seen this post from two days ago?:
   https://groups.google.com/d/msg/harbour-users/oB3z45c9AkM/2AXnwaZIAgAJ

I suggest doing it and check up on these information as well:

Roberto Borges

unread,
Oct 21, 2017, 4:31:33 PM10/21/17
to Harbour Users
Dear Vicktor, Domenicio and all ..

I remove -quiet option from make.hb and see this ...

make[3]: '../../../../../bin/linux/clang/hbspeed' is up to date.
make[3]: '../../../../../bin/linux/clang/hbtest' is up to date.
make[3]: '../../../../../bin/linux/clang/hbi18n' is up to date.
make[3]: '../../../../../bin/linux/clang/hbmk2' is up to date.
../bin/linux/clang/hbmk2 ../bin/make.hb . first
! Harbour root: '../'  Project store: './'  Core build: yes  Addon: no
! Started build...
! Calculating build order for 72 projects...
/usr/local/src/hbv34s/bin/linux/clang/hbmk2 -lang=en -width=0 -autohbm- @../config/hbpre -inc -jobs=8 ./hbbz2/3rd/bz2/bz2.hbp @../config/hbpost
hbmk2: Processing environment options: -plat=linux -comp=clang -cpu=x86_64
hbmk2: Creating static library... ../lib/linux/clang/libbz2.a
hbmk2 [bz2]: Error: Running lib command. 255
'llvm-ar' rcs   ../lib/linux/clang/libbz2.a ../lib/linux/clang/.hbmk/bz2/blocksort.o ../lib/linux/clang/.hbmk/bz2/bzlib.o ../lib/linux/clang/.hbmk/bz2/compress.o ../lib/linux/clang/.h
bmk/bz2/crctable.o ../lib/linux/clang/.hbmk/bz2/decompress.o ../lib/linux/clang/.hbmk/bz2/huffman.o ../lib/linux/clang/.hbmk/bz2/randtable.o
hbmk2 [bz2]: Exit status: 7: failed in final assembly (linker or library manager)
! Finished build...
Makefile:8: recipe for target 'first' failed
make[1]: *** [first] Error 7
config/dir.mk:71: recipe for target 'contrib' failed
make: *** [contrib] Error 2

llvm-ar not exist, i make a simbolic link using ln -s llvm-ar-4.0 llvm-ar

and ok 100%

Roberto Borges

unread,
Oct 21, 2017, 4:40:31 PM10/21/17
to Harbour Users
Oops ... another problem, in (sudo make install)  the HB_COMPILER variable is auto reseted to gcc.

i am sudo su
# export HB_COMPILER=clang
# make install ...

its ok.


 

Em sexta-feira, 20 de outubro de 2017 07:53:47 UTC-3, Roberto Borges escreveu:

Roberto Borges

unread,
Oct 21, 2017, 5:17:07 PM10/21/17
to Harbour Users
Solved w ...
sudo -E bash -c 'make install'  


Em sexta-feira, 20 de outubro de 2017 07:53:47 UTC-3, Roberto Borges escreveu:
Reply all
Reply to author
Forward
0 new messages