IBM / aspera-cli

IBM Aspera CLI
Apache License 2.0
77 stars 17 forks source link

Could not get the provided rubyc example to work #153

Closed snps-djigande closed 2 months ago

snps-djigande commented 3 months ago

Hi I tried using the provided rubyc to create an executable but could not get it to work. Would you please fix the reported error below.

My gcc version is 13.2 My make version is 4.2 My OS is : CentOS Linux release 7.3.1611 (Core)

I did the following:

git clone https://github.com/IBM/aspera-cli.git
cd aspera-cli/examples/
./rubyc

I got the following errors:

../lib/libAdaCurses.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc
gnatmake: *** link failed.
make[2]: *** [Makefile:165: tour] Error 4
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-getopt.adb
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-menu_test.adb
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-overlap_test.adb
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-slk_test.adb
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-test_sgr_attributes.adb
gcc -c -I. -I../src -I./../src -gnatpn -g -Os -I. ncurses2-trace_set.adb
gnatbind -aO. -aO../src -aO./../src -x ncurses.ali
gnatlink ncurses.ali -L../lib -lAdaCurses -L../../lib -lform -lmenu -lpanel -lncurses
/usr/bin/ld: ../lib/libAdaCurses.a(static_c_varargs_to_ada.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: ../lib/libAdaCurses.a(static_c_varargs_to_ada.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: ../lib/libAdaCurses.a(static_c_threaded_variables.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: ../lib/libAdaCurses.a(static_c_threaded_variables.o): unable to initialize decompress status for section .debug_info
../lib/libAdaCurses.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc
gnatmake: *** link failed.
make[2]: *** [Makefile:162: ncurses] Error 4
make[2]: Leaving directory '/tmp/rubyc/ncurses/Ada95/samples'
make[1]: *** [Makefile:85: all] Error 2
make[1]: Leaving directory '/tmp/rubyc/ncurses/Ada95'
make: *** [Makefile:143: all] Error 2
Failed running [{"CI"=>"true", "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"true", "CFLAGS"=>" -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe ", "LDFLAGS"=>""}, "make -j128"]

Thanks

Kola

laurent-martin commented 2 months ago

Now I recommend using tebako to create single exec.

see: https://github.com/IBM/aspera-cli/issues/151