mar file generation in MDC - firefox

I am trying to generate complete.mar file, in firefox build. when I try to generate complete.mar file, the following error occurs.
Sathi#HREF-22F4E8F33B /c/href/FF-5.1/tools/update-packaging
$ sh make_full_update.sh complete.mar new
/c/href/FF-5.1/tools/update-packaging/new /c/href/FF-5.1/tools/update-packaging
precomplete file is missing!

From http://old.nabble.com/Problem-creating-MAR-file.-td32154053.html:
That file is generated as part of the build process. If you need to
generate it manually you can cd into the root directory where the
files you are creating the complete mar are located and run the
createprecomplete.py python script.

Related

Error while generating grpc files (--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.)

I’m trying to run the following command to generate grpc files:
protoc --proto_path=$PROTO_PATH --plugin=protoc-gen-grpc=$PLUGIN_GRPC --grpc_out=$OUT/grpc $PROTO_FILES
This results in the following error:
/Users/MYUSERNAME/Downloads/protoc-gen-grpc-java-1.48.1-osx-aarch_64.exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.
I made sure the file from the error message is located at that path and has also the correct permissions.
-rwxrwxrwx# 1 MYUSERNAME staff 6334176 10 Aug 00:03 protoc-gen-grpc-java-1.48.1-osx-aarch_64.exe
I also tried running the command as sudo.
Generating java or kotlin files with --java_out=$OUT/java --kotlin_out=$OUT/kotlin
works perfectly fine, so the problem is --grpc_out=$OUT/grpc
I also downloaded multiple versions of the protoc-gen-grpc-java-1.48.1-osx-aarch_64.exe file but it always results in the same error. I also tried replacing all path variables (e.g. $PROTO_PATH) with their corresponding values, without any effect. I’m using MacBook with M1Pro chip.
The problem is that M1 Macs aren't supported. They have copied over the osx-x86_64 binary and renamed it for osx-aarch_64 as a workaround to make it easier to run with Rosetta. See here for where that change was made and here for the full conversation about supporting M1 Macs.

Error when I run this command "fx set core.qemu-x64"

ERROR at //third_party/openssh-portable/fuchsia/developer-keys/BUILD.gn:10:24: Could not read file.
manifest = read_file("//.fx-ssh-path", "list lines")
^---------------
I resolved this to "/home/shivkumar/fuchsia_os/fuchsia/.fx-ssh-path".
See //products/core.gni:102:3: which caused the file to be included.
"//third_party/openssh-portable/fuchsia/developer-keys:ssh_config",
^-----------------------------------------------------------------
ERROR: error running gn gen: exit status 1
This error means that the //.fx-ssh-path file does not exist, or is otherwise unreadable. This file is typically generated on source checkout when the integration manifest runs //tools/ssh-keys/gen-ssh-keys.sh as a jiri hook.
To correct the problem, use gen-ssh-keys.sh again to re-generate the file(s) before setting your build configuration:
$ tools/ssh-keys/gen-ssh-keys.sh
$ fx set core.qemu-x64
Note: Hooks are also run anytime you run jiri update so you could also resync the source tree to correct the issue.

petalinux-package fails to find file in /tmp

I'm following this rather good YT tutorial to build and run petalinux on an arty board. Everything is fine until I try to package the build with petalinux-package.
I get the following error:
daniel#daniel-OptiPlex-3050:~/work/arty_petalinux_test$ petalinux-package --boot --force --fpga ../arty_linux/arty_linux.runs/impl_1/design_1_wrapper.bit --u-boot --kernel --flash-size 16 --flash-intf SPIx1
INFO: Sourcing build tools
WARNING: Auto detecting MMI file with XSA
INFO: Creating download.bit...
INFO: Fpga bitstream: /home/daniel/work/arty_linux/arty_linux.runs/impl_1/design_1_wrapper.bit
INFO: Fpga bitstream MMI file: /tmp/tmp.j6IieOwBAR/design_1_wrapper.mmi
INFO: Fsbl file: /home/daniel/work/arty_petalinux_test/images/linux/fs-boot.elf
INFO: Output download.bit: /home/daniel/work/arty_petalinux_test/images/linux/download.bit
cp: cannot stat '/tmp/tmp.j6IieOwBAR/download.bit': No such file or directory
ERROR: Failed to create download bit file for MicroBlaze MCS file.
The temp directory which it is looking for hasn't been created. I've also tried specifying the path to the MMI file (same as the path to the bit file) explicitly, but same issue.
Does petalinux-package generate any logs? I've searched and find no clue for this odd error.
Any ideas?

Apktools on Mac

I went downloaded the Apktools from the website and got 2 files: Apktool.txt and Apktool_2.2.2. I renamed the Apktool_2.2.2 to Apktools.jar per the instructions. I then went to terminal and this was what I did:
Last login: Fri Mar 17 12:08:55 on ttys000
Roberts-MBP:~ Robert$ cd documents
Roberts-MBP:documents Robert$ cd metronomeapp/apktool
Roberts-MBP:apktool Robert$ **java -jar apktool.jar**
Apktool v2.2.2 - a tool for reengineering Android apk files
with smali v2.1.3 and baksmali v2.1.3
Copyright 2014 Ryszard Wiśniewski <brut.alll#gmail.com>
Updated by Connor Tumbleson <connor.tumbleson#gmail.com>
usage: apktool
-advance,--advanced prints advance information.
-version,--version prints the version then exits
usage: apktool if|install-framework [options] <framework.apk>
-p,--frame-path <dir> Stores framework files into <dir>.
-t,--tag <tag> Tag frameworks using <tag>.
usage: apktool d[ecode] [options] <file_apk>
-f,--force Force delete destination directory.
-o,--output <dir> The name of folder that gets written. Default is apk.out
-p,--frame-path <dir> Uses framework files located in <dir>.
-r,--no-res Do not decode resources.
-s,--no-src Do not decode sources.
-t,--frame-tag <tag> Uses framework files tagged by <tag>.
usage: apktool b[uild] [options] <app_path>
-f,--force-all Skip changes detection and build all files.
-o,--output <dir> The name of apk that gets written. Default is dist/name.apk
-p,--frame-path <dir> Uses framework files located in <dir>.
For additional info, see: http://ibotpeaches.github.io/Apktool/
For smali/baksmali info, see: https://github.com/JesusFreke/smali
Roberts-MBP:apktool Robert$ **./apktool d metronome.apk**
-bash: ./apktool: No such file or directory
Roberts-MBP:apktool Robert$ **apktool d metronome.apk**
-bash: apktool: command not found
Roberts-MBP:apktool Robert$
You can see in the bold what I entered. On the 2nd and 3rd bold statements, I did it both ways because I found info that one of them works on windows and one on mac and since the mac one didn't work I wanted to try the windows one to see what it would say. Both the files are in the same directory with the apk file (metronome.apk) Does anyone know why this isn't working and what I can do to resolve it?
Thanks.
Robert
Try java -jar apktool.jar d metronome.apk
To elaborate, apktool.jar is not a command itself. It's a java Jar file that can be executed by the Java runtime.

Why is xcode giving me these building warnings and errors?

I created an app that plays a sound when you press a button and it was working fine initially. I'm not sure what happened, I deleted one of the files and now xcode keeps giving me a warning in reference to a file Not being found. I've deleted and recreated the file, commented out the code using the file, and cleared but build but nothing seems to be working. I'm new to xcode and app development. Here's the errors I keep getting:
Check dependencies
[WARN]Warning: Multiple build commands for output file /Users/adrienneiverson/Library/Developer/Xcode/DerivedData/SpeakUp1-aoakahingahxuwfhopwfckqlxewc/Build/Products/Debug-iphonesimulator/SpeakUp1.app/Bye.mp3
Warning: Multiple build commands for output file /Users/adrienneiverson/Library/Developer/Xcode/DerivedData/SpeakUp1-aoakahingahxuwfhopwfckqlxewc/Build/Products/Debug-iphonesimulator/SpeakUp1.app/Bye.mp3
CpResource ../../Sounds/Mp3/Bye.mp3 /Users/adrienneiverson/Library/Developer/Xcode/DerivedData/SpeakUp1-aoakahingahxuwfhopwfckqlxewc/Build/Products/Debug-iphonesimulator/SpeakUp1.app/Bye.mp3
cd "/Users/adrienneiverson/Desktop/SURE PROGRAM 2011 - GA TECH/SpeakUp1"
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks "/Users/adrienneiverson/Desktop/SURE PROGRAM 2011 - GA TECH/SpeakUp1/../../Sounds/Mp3/Bye.mp3" /Users/adrienneiverson/Library/Developer/Xcode/DerivedData/SpeakUp1-aoakahingahxuwfhopwfckqlxewc/Build/Products/Debug-iphonesimulator/SpeakUp1.app
error: /Users/adrienneiverson/Desktop/SURE PROGRAM 2011 - GA TECH/SpeakUp1/../../Sounds/Mp3/Bye.mp3: No such file or directory
error: /Users/adrienneiverson/Desktop/SURE PROGRAM 2011 - GA TECH/SpeakUp1/../../Sounds/Mp3/Bye.mp3: No such file or directory
I have no idea what multiple build commands they're talking about and the file is located in the directory that they're saying its not in...I'm lost....
Have you cleared the build folder?
Or is that what you meant by I've deleted and recreated the file, commented out the code using the file, and cleared but build but nothing seems to be working.?
Tjeu

Resources