element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Compile error when adding Docker to image
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 311 subscribers
  • Views 217 views
  • Users 0 members are here
Related

Compile error when adding Docker to image

iainhunter
iainhunter over 7 years ago

Hi,

I am seeing an error with go-native when I add docker to uz3eg_iocc_2017_2 project. The GO internal variable WORK does not seem to be being set. I am using petalinux 2017.2.

Error can be reproduced with following command

 

iain@iain-Precision-WorkStation-T3500:~/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2$ petalinux-build -c go-native -x compile
[INFO] building go-native
[INFO] sourcing bitbake
INFO: bitbake go-native -c compile
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3235 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:03
Parsing of 2448 .bb files complete (2414 cached, 34 parsed). 3238 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: go-native-1.4.3-r0 do_compile: Function failed: do_compile (log file is located at /home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/work/x86_64-linux/go-native/1.4.3-r0/temp/log.do_compile.17991)
ERROR: Logfile of failure stored in: /home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/work/x86_64-linux/go-native/1.4.3-r0/temp/log.do_compile.17991
Log data follows:
| DEBUG: Executing shell function do_compile
| # Building C bootstrap tool.
| cmd/dist
|
| # Building compilers and Go bootstrap tool for host, linux/amd64.
| ./cmd/dist/dist bootstrap -a  -v
| lib9
| gcc -isystem/home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -fno-common -ggdb -pipe -fmessage-length=0 -c -m64 -I /home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/work/x86_64-linux/go-native/1.4.3-r0/go/include -DPLAN9PORT -I /home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/work/x86_64-linux/go-native/1.4.3-r0/go/src/lib9 -o $WORK/_exits.o /home/iain/Desktop/work/XXXX/ultrazed-XXXX/petalinux/projects/uz3eg_iocc_2017_2/build/tmp/work/x86_64-linux/go-native/1.4.3-r0/go/src/lib9/_exits.c
| exec gcc: No such file or directory
 

 

The problem is that it is trying to set the output object file to be at $WORK/_exits.o

If I cut and paste the command line shown and replace $WORK by a valid path such as the build-tmp created by the go-native.inc yocto file then it works.

However, exporting WORK=$TMPDIR in go-native.inc does not help.

Does anyone have a solution?

Thanks, Iain

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 7 years ago

    Hi Iain,

    I am trying to do something similar by adding Docker support to by UG3 IOOCC build but I am also running into problems with building under PetaLinux.  I am very interested in your results so please let me know how it goes.

    Are you following a guide for adding Docker and gonative support to your PetaLinux project?

    Have you also posted this question to the Xilinx forums?

    Best Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube