Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Function object with c code linker compile error

Function object with c code linker compile error 3 years 10 months ago #10610

  • silvaphoenix
  • silvaphoenix's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 5
  • Karma: 4
Hi,
When building the root volume I get the following errors

(wb:9305): Gtk-WARNING **: 17:39:00.319: Unable to locate theme engine in module_path: "adwaita",

(wb:9305): Gtk-WARNING **: 17:39:00.323: Unable to locate theme engine in module_path: "adwaita",
-- Processing line: 83
-- Building volume directory
-- Opening volume 'VolHc'

(wb:9320): Gtk-WARNING **: 17:39:13.799: Unable to locate theme engine in module_path: "adwaita",

(wb:9320): Gtk-WARNING **: 17:39:13.803: Unable to locate theme engine in module_path: "adwaita",
-- Plc window generated Z1-PLC-W
** Plc window compiled with errors for x86_64_linux Z1-PLC-W
In file included from /usr/local/pwrp/hc/bld/common/tmp/plc_m000_001_001_002_000000ad.gc:22:0:
/usr/local/pwrp/hc/bld/common/tmp/plc_cod000_001_001_002_000000ad.gc: In function ‘M000_001_001_002_000000ad_exec’:
/usr/local/pwrp/hc/bld/common/tmp/plc_cod000_001_001_002_000000ad.gc:18:1: error: expected ‘;’ before ‘}’ token
}
^
%GSX-F-CCERROR, Error from c compiler or linker
in window Z1-PLC-W

The c code is good, the problem seems to be in $pwrp_libplcf000_001_001_002.a

Any thoughts please
Stephen
The administrator has disabled public write access.

Function object with c code linker compile error 3 years 10 months ago #10611

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Stephen,

Compile the plcpgm with debug (select the PlcPgm and enter the command 'build object/force/debug'). Now the gc-file will remain and you can open it in an editor and examine the erroneous line 18.

/Claes
The administrator has disabled public write access.

Function object with c code linker compile error 3 years 10 months ago #10612

  • silvaphoenix
  • silvaphoenix's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 5
  • Karma: 4
Thanks Claes, my mistake in a CArithm block.

Is the missing theme engine of significance?

Stephen
The administrator has disabled public write access.

Function object with c code linker compile error 3 years 10 months ago #10613

  • silvaphoenix
  • silvaphoenix's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 5
  • Karma: 4
Hi Claes,
Not out of the woods yet.
I'm now getting an error building the node bootfile.

-- Using local option-file plc_linitx_0999_plc.opt
** Plc program link errors for x86_64_linux node plc_linitx_0999_plc
/usr/bin/ld: cannot find -lpwrp
collect2: error: ld returned 1 exit status
%GSX-F-CCERROR, Error from c compiler or linker

This is the .opt file that I took from page 210 of the design guide.

$pwr_obj/rt_io_user.o $pwrp_obj/TTCFo.o -lpwrp -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy -lpwr_cifx_dummy -lpwr_nodave_dummy -lpwr_epl_dummy

If I remove -lpwrp there are other error messages so it is required. I've searched the forum without finding any clues to the missing archive.
Stephen
The administrator has disabled public write access.

Function object with c code linker compile error 3 years 10 months ago #10614

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Stephen,

The new way to do this is to create an BuildOptions object under the NodeConfig object in the directory volume. Fill in $pwrp_obj/TTCFo.o in object modules. This will generate a correct opt-file.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: silvaphoenix

Function object with c code linker compile error 3 years 10 months ago #10615

  • silvaphoenix
  • silvaphoenix's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 5
  • Karma: 4
Thank you Claes. all sorted now

Stephen
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.126 seconds