Post Reply 
Compiling newRPL
06-08-2018, 09:58 PM (This post was last modified: 06-08-2018 10:11 PM by acoto.)
Post: #1
Compiling newRPL
Hello everyone.

I am trying to compile newRPL in fedora28 64 bit. Reached up to this point:

[adrianco@turchin-vbox10 newrpl-sources]$ qmake-qt4 newrpl-comp.pro
[adrianco@turchin-vbox10 newrpl-sources]$ make
g++ -Wl,-O1 -o newrpl-comp ggl_bitblt.o ggl_bitbltoper.o ggl_filter.o ggl_fltdarken.o ggl_fltlighten.o ggl_getnib.o ggl_hblt.o ggl_hbltfilter.o ggl_hbltoper.o ggl_hline.o ggl_initscr.o ggl_mkcolor.o ggl_mkcolor32.o ggl_opmask.o ggl_optransp.o ggl_ovlblt.o ggl_pltnib.o ggl_rect.o ggl_rectp.o ggl_revblt.o ggl_scrolldn.o ggl_scrolllf.o ggl_scrollrt.o ggl_scrollup.o ggl_vline.o hal_battery.o hal_keyboard.o hal_screen.o graphics.o icons.o non-gui-stubs.o battery.o cpu.o exception.o irq.o keyboard.o lcd.o stdlib.o timer.o sddriver.o fatconvert.o fsallocator.o fsattr.o fscalcfreespace.o fschattr.o fschdir.o fschmode.o fsclose.o fscloseanddelete.o fsconvert2shortentry.o fscreate.o fsdelete.o fsdeletedirentry.o fseof.o fsexpandchain.o fsfileisopen.o fsfileisreferenced.o fsfilelength.o fsfindchar.o fsfindentry.o fsfindfile.o fsfindforcreation.o fsflushbuffers.o fsflushfatcache.o fsfreechain.o fsfreefile.o fsgetaccessdate.o fsgetchain.o fsgetchainsize.o fsgetcreattime.o fsgetcurrentvolume.o fsgetcwd.o fsgetdatetime.o fsgeterrormsg.o fsgetfilename.o fsgethandle.o fsgetnametype.o fsgetnextentry.o fsgetvolumefree.o fsgetvolumesize.o fsgetwritetime.o fsinit.o fsmkdir.o fsmountvolume.o fsmovedopenfiles.o fsnamecompare.o fsopen.o fsopendir.o fspackdir.o fspackname.o fspatchfatblock.o fsread.o fsreadll.o fsreleaseentry.o fsrename.o fsrestart.o fsrmdir.o fsseek.o fssetcasemode.o fssetcurrentvolume.o fsshutdown.o fssleep.o fsstripsemi.o fstell.o fstruncatechain.o fsupdatedirentry.o fsvolumeinserted.o fsvolumemounted.o fsvolumepresent.o fswrite.o fswritefatentry.o fswritell.o fsystem.o misalign.o hal_globals.o compiler.o datastack.o directory.o errors.o gc.o lam.o lib-24-string.o lib-28-dirs.o lib-30-complex.o lib-64-arithmetic.o lib-66-transcendentals.o lib-68-flags.o lib-70-binary.o lib-72-stack.o lib-4080-localenv.o lib-4090-overloaded.o lib-common.o lib-eight-docol.o lib-nine-docol2.o lib-ten-reals.o lib-twelve-bint.o lib-two-ident.o lists.o returnstack.o romlibs.o runstream.o symbolic.o sysvars.o tempob.o mem.o boot.o ui_cmdline.o utf8lib.o utf8data.o Font5C.o Font6A.o keybcommon.o Font7A.o matrix.o Font8C.o Font8D.o decimal.o backup.o sanity.o lib-32-lam.o lib-65-system.o units.o lib-62-lists.o lib-56-symbolic.o lib-52-matrix.o lib-54-units.o autocomplete.o arithmetic.o lib-20-comments.o flash.o ui_softmenu.o ggl_fltinvert.o newrpl-comp.o lib-4079-rpl2c.o lib-48-angles.o lib-74-sdcard.o Font8B.o Font8A.o Font6m.o Font5B.o Font5A.o rtc.o hal_clock.o hal_alarm.o ggl_fltreplace.o lib-76-ui.o lib-77-libdata.o lib-zero-messages.o lib-78-fonts.o lib-80-bitmaps.o ui_forms.o ui_render.o lib-88-plot.o fastmath.o render.o lib-96-composites.o lib-98-statistics.o atan_ltables.o lighttranscend.o ln_ltables.o solvers.o rng.o lib-100-usb.o lib-102-libptr.o usbdriver.o hal_cpu.o hid.o -L/usr/local/lib -ludev
/usr/bin/ld: ggl_bitblt.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: ggl_bitblt.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: ggl_bitblt.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: ggl_bitblt.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: ggl_bitblt.o: Relocations in generic ELF (EM: 40)
ggl_bitblt.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:511: newrpl-comp] Error 1
[adrianco@turchin-vbox10 newrpl-sources]$


Any idea on how to fix the ggl_bitblt.o error?

Adrian Coto
Find all posts by this user
Quote this message in a reply
06-10-2018, 09:47 PM
Post: #2
RE: Compiling newRPL
An update -

I rebooted today, then deleted *.o and compiled newrpl-comp. This time it went just fine. A few warnings here and there, but it compiled.

Then started to compile newrpl-fw. Several erors again. Deleted *.o, and it almost finished.

/home/adrianco/newrpl-sources/tools-bin/elf2rom newrplfw.elf
make: /home/adrianco/newrpl-sources/tools-bin/elf2rom: Command not found
make: *** [Makefile:565: newrplfw.elf] Error 127


Found elf2rom source code in tools.

gcc -c -pipe -O2 -Wall -W -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -o elf2rom.o elf2rom.c
elf2rom.c:3:10: fatal error: libelf.h: No such file or directory
#include <libelf.h>


Almost ready... just a few more step and I should have newRPL properly compiled.

Adrian Coto
Find all posts by this user
Quote this message in a reply
06-10-2018, 09:54 PM
Post: #3
RE: Compiling newRPL
(06-10-2018 09:47 PM)acoto Wrote:  Found elf2rom source code in tools.

gcc -c -pipe -O2 -Wall -W -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -o elf2rom.o elf2rom.c
elf2rom.c:3:10: fatal error: libelf.h: No such file or directory
#include <libelf.h>


Almost ready... just a few more step and I should have newRPL properly compiled.

You probably want elfutils-libelf-devel, but I guess you've probably already found that out by now.

(Post 243)

Regards, BrickViking
HP-50g |Casio fx-9750G+ |Casio fx-9750GII (SH4a)
Visit this user's website Find all posts by this user
Quote this message in a reply
06-10-2018, 10:10 PM
Post: #4
RE: Compiling newRPL
Thank you BrickViking!

I was making coffee before starting that round. You saved me some time. After installing elfutils-libelf-devel, elf2rom compiled fine.

newrpl-fw compiled fine.

"Binary image written to "newrplfw.bin""

Adrian Coto
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)