I am getting a build error for icedtea7-native
make[6]: *** [../../../common/Library.gmk:225: /home/amodster/Yocto/poky-rpi3/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build-boot/lib/amd64/libj2pcsc.so] Error 1
make[6]: Leaving directory '/home/amodster/Yocto/poky-rpi3/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/jdk/make/sun/security/smartcardio'
More info when running make from command line
~/Yocto/poky-rpi3/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/jdk/make/sun/security/smartcardio$ make
Java sources to be compiled: (listed in file ../../../../build/linux-amd64/tmp/sun/sun.security.smartcardio/j2pcsc/.classes.list)
../../../../src/share/classes/sun/security/smartcardio/CardImpl.java
../../../../src/share/classes/sun/security/smartcardio/ChannelImpl.java
../../../../src/share/classes/sun/security/smartcardio/PCSCException.java
../../../../src/share/classes/sun/security/smartcardio/PCSC.java
../../../../src/share/classes/sun/security/smartcardio/PCSCTerminals.java
../../../../src/share/classes/sun/security/smartcardio/SunPCSC.java
../../../../src/share/classes/sun/security/smartcardio/TerminalImpl.java
../../../../src/solaris/classes/sun/security/smartcardio/PlatformPCSC.java
Running javac:
-sourcepath ../../../../build/linux-amd64/gensrc:../../../../src/solaris/classes:../../../../src/share/classes -bootclasspath ../../../../build/linux-amd64/classes: -d ../../../../build/linux-amd64/classes #../../../../build/linux-amd64/tmp/sun/sun.security.smartcardio/j2pcsc/.classes.list
/bin/sh: 7: -sourcepath: not found
make: *** [../../../../make/common/Rules.gmk:236: .compile.classlist] Error 127
I am checking if these exist
-sourcepath ../../../../build/linux-amd64/gensrc:../../../../src/solaris/classes:../../../../src/share/classes
ls ../../../../build/linux-amd64/gensrc ---this is not there---
ls ../../../../src/solaris/classes
ls ../../../../src/share/classes
Host: Ubuntu 22.04
Target: RPi3B+
Build System: Yocto / bitbake
First tried: bitbake icedtea7-native
Second tried: ~/Yocto/poky-rpi3/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk-boot/jdk/make/sun/security/smartcardio$ make
Related
I need to build the following openJDK
git clone --depth 1 --branch jdk-11+28 https://github.com/openjdk/jdk.git
For that I run:
cd make/devkit
make TARGETS="aarch64-linux-gnu" BASE_OS=Fedora BASE_OS_VERSION=21 &>build.log
And got following error
Building on platform x86_64-unknown-linux-gnu
host_platforms x86_64-unknown-linux-gnu
target_platforms x86_64-unknown-linux-gnu
find: ‘/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit/result/x86_64-unknown-linux-gnu’: No such file or directory
Building compilers for x86_64-unknown-linux-gnu
Targets: x86_64-unknown-linux-gnu
for p in x86_64-unknown-linux-gnu ; do \
make -f Tools.gmk download-rpms HOST=x86_64-unknown-linux-gnu BUILD=x86_64-unknown-linux-gnu RESULT=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit/result PREFIX=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit/result/x86_64-unknown-linux-gnu OUTPUT_ROOT=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit TARGET=$p && \
make -f Tools.gmk all HOST=x86_64-unknown-linux-gnu BUILD=x86_64-unknown-linux-gnu RESULT=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit/result PREFIX=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit/result/x86_64-unknown-linux-gnu OUTPUT_ROOT=/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/build/devkit \
TARGET=$p || exit 1 ; \
done
make[1]: Entering directory '/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/make/devkit'
TARGET=x86_64-unknown-linux-gnu
HOST=x86_64-unknown-linux-gnu
BUILD=x86_64-unknown-linux-gnu
ARCH=x86_64
Tools.gmk:66: *** Unknown base OS Fedora. Stop.
make[1]: Leaving directory '/media/katya/e947f05e-bd8f-4647-bbdd-0df608faa788/openjdk11/jdk/make/devkit'
Makefile:86: recipe for target 'x86_64-unknown-linux-gnu' failed
make: *** [x86_64-unknown-linux-gnu] Error 1
Host OS is Ubuntu 16.04.7 LTS (Xenial Xerus). Please tell me what am I doing wrong?
Where can I submit a bug report about openjdk11, or discuss this issue?
I have been trying to install rJava using the following commands:
install.packages('rJava',,'http://www.rforge.net/')
or
install.packages('rJava', type = 'source', INSTALL_opts='--merge-multiarch')
but each time I fail due to this error:
WARNING: JRI could NOT be built Set IGNORE=1 if you want to build
rJava anyway. ERROR: configuration failed for package 'rJava'. I have uninstalled and re-installed both version of java on my machine but still no help!
Does anyone has a solution ?
the full description is as below:
install for i386
installing source package 'rJava' ...
** package 'rJava' successfully unpacked and MD5 sums checked Generate Windows-specific files (src/jvm-w32) ... make: Entering directory
'/Users/ahkay/AppData/Local/Temp/RtmpKalUob/R.INSTALL192609e43b16/rJava/src/jvm-w32'
C:/Rtools/mingw_32/bin/dlltool --as C:/Rtools/mingw_32/bin/as
--input-def jvm.def --kill-at --dllname jvm.dll --output-lib libjvm.dll.a C:/Rtools/mingw_32/bin/gcc -O2 -c -o findjava.o
findjava.c C:/Rtools/mingw_32/bin/gcc -s -o findjava.exe findjava.o
make: Leaving directory
'/Users/ahkay/AppData/Local/Temp/RtmpKalUob/R.INSTALL192609e43b16/rJava/src/jvm-w32'
Find Java... ./configure.win: line 15: [: too many arguments
JAVA_HOME=C:/Program Files/Java/jre1.8.0_202
=== Building JRI === configure.win: line 21: [: too many arguments JAVA_HOME=C:/Program Files/Java/jre1.8.0_202
R_HOME=C:/PROGRA~1/R/R-35~1.2 Creating Makefiles ... Configuration
done. make -C src JRI.jar make[1]: Entering directory
'/Users/ahkay/AppData/Local/Temp/RtmpKalUob/R.INSTALL192609e43b16/rJava/jri/src'
C:/Program Files/Java/jre1.8.0_202/bin/javac -d . ../RList.java
../RBool.java ../RVector.java ../RMainLoopCallbacks.java
../RConsoleOutputStream.java ../Mutex.java ../Rengine.java
../REXP.java ../RFactor.java ../package-info.java make[1]: C:/Program:
Command not found make[1]: * [Makefile.all:41:
org/rosuda/JRI/Rengine.class] Error 127 make[1]: Leaving directory
'/Users/ahkay/AppData/Local/Temp/RtmpKalUob/R.INSTALL192609e43b16/rJava/jri/src'
make: * [Makefile.all:19: src/JRI.jar] Error 2
**** WARNING: JRI could NOT be built Set IGNORE=1 if you want to build rJava anyway. ERROR: configuration failed for package 'rJava'
removing 'C:/Users/ahkay/Documents/R/win-library/3.5/rJava' In R CMD INSTALL In R CMD INSTALL Warning in install.packages : installation
of package ‘rJava’ had non-zero exit status
I have experienced same issue and following approach worked for me in my Mac OS 10.13.6, you can apply minor OS related changes if using in other OS.
OS:
Installing rJava Manually
# curl -#ROL https://www.rforge.net/rJava/snapshot/rJava_0.9-8.tar.gz
# R CMD INSTALL rJava_0.9-8.tar.gz
# su -
Location you have installed R software, you might have different location.
# cd /Library/Frameworks/R.framework/Versions/3.5/Resources/lib
I found that different Java used by R, and forcing by softlink:
#ln -s /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/lib/server/libjvm.dylib libjvm.dylib
Remember, you need to put your JAVA_HOME in the following location in R Studio:
>Sys.setenv(JAVA_HOME = "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home")
Verifying rJava working in R Studio:
>require(rJava)
I tried to install pyCOMPSs (v1.4) on a Cluster system using the
installation script for Supercomputers.
The script terminates with the following error:
libtool: link: ranlib .libs/libcbindings.a
libtool: link: ( cd ".libs" && rm -f "libcbindings.la" && ln -s
"../libcbindings.la" "libcbindings.la" )
make[1]: Entering directory
`/home/xxx/repos/pycompss/COMPSs/Bindings/c/src/bindinglib'
/usr/bin/mkdir -p
'/home/cramonco/svn/compss/framework/trunk/builders/specs/deb/compss-c-binding/tmp/opt/COMPSs/Bindings/c/lib'
/usr/bin/mkdir: cannot create directory ‘/home/cramonco’: Permission denied
make[1]: *** [install-libLTLIBRARIES] Error 1
make[1]: Leaving directory
`/home/xxx/xxx/repos/pycompss/COMPSs/Bindings/c/src/bindinglib'
make: *** [install-am] Error 2
BindingLib Installation failed, please check errors above!
Seems the error is due to the package includes a previous configuration
and in your case the autoreconf is not overwritting the Makefile and
other files produced by autotools. try with
running
cd /home/xxx/repos/pycompss/COMPSs/Bindings/c/src/bindinglib
make maintainer-clean
After this run again the install command
I'm working GnuPG Java API to encrypt/decrypt files.
Googled and found a Java Wrapper GnuPG for Java, Java wrapper for GPGME(GnuPG Made Easy,C language library).
Official website also referring this as the Java wrapper.
So followed the instructions, set up ant and tried to run ant clean release
it is throwing errors.
But maven build working and jar file also generated.
Following error occured while running ant.
C:\Users\user\Desktop\MFT\gnupg-for-java-master>ant clean release
Buildfile: C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml
clean-native:
[exec] rm -f GnuPGContext.o GnuPGData.o GnuPGGenkeyResult.o GnuPGKey.o GnuPGSignature.o gpgmeutils.o *~
[exec] rm -f C:\Users\user\Desktop\MFT\gnupg-for-java-master\build/gnupg-for-java.dll
[exec] rm -f com_freiheit_gnupg_GnuPGContext.h com_freiheit_gnupg_GnuPGData.h com_freiheit_gnupg_GnuPGGenkeyResult.h com_freiheit_gnupg_GnuPG
Key.h com_freiheit_gnupg_GnuPGSignature.h
clean:
[delete] Deleting directory C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\classes
prepare:
compile-java:
[mkdir] Created dir: C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\classes
[javac] C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:21: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=l
ast; set to false for repeatable builds
[javac] Compiling 8 source files to C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\classes
gen-jni-headers:
prepare:
compile-java:
[javac] C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:21: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=l
ast; set to false for repeatable builds
generate-jni-headers:
[exec] C:\Program Files (x86)/Java/jdk1.7.0_51/bin/javah -classpath C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\classes -jni com.freih
eit.gnupg.GnuPGContext com.freiheit.gnupg.GnuPGData com.freiheit.gnupg.GnuPGGenkeyResult com.freiheit.gnupg.GnuPGKey com.freiheit.gnupg.GnuPGSigna
ture
[exec] /bin/sh: -c: line 0: syntax error near unexpected token `('
[exec] /bin/sh: -c: line 0: `C:\Program Files (x86)/Java/jdk1.7.0_51/bin/javah -classpath C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\c
lasses -jni com.freiheit.gnupg.GnuPGContext com.freiheit.gnupg.GnuPGData com.freiheit.gnupg.GnuPGGenkeyResult com.freiheit.gnupg.GnuPGKey com.fre
iheit.gnupg.GnuPGSignature'
[exec] make: *** [com_freiheit_gnupg_GnuPGContext.h] Error 2
BUILD FAILED
C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:71: The following error occurred while executing this line:
C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:63: exec returned: 2
Total time: 4 seconds
Update
I changed the Java home in GNUmakefile, Now it is throwing different error. Seems c library not found and this API is written for Unix system seems by reading the error message. What C library missing ?
generate-jni-headers:
[exec] C:\Java\jdk1.7.0_75/bin/javah -classpath C:\Users\user\Desktop\MFT\gnupg-for-java-master\build\classes -jni com.freiheit.gnupg.GnuPGConte
xt com.freiheit.gnupg.GnuPGData com.freiheit.gnupg.GnuPGGenkeyResult com.freiheit.gnupg.GnuPGKey com.freiheit.gnupg.GnuPGSignature
gen-jni-library:
recompile-c-code:
[exec] mingw32-gcc -g -Werror -Wall -Wno-deprecated-declarations -fPIC -mms-bitfields -Wl,--add-stdcall-alias -D_REENTRANT -D_THREAD_SAFE -D_FIL
E_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -I"C:\Java\jdk1.7.0_75/include" -I"C:\Java\jdk1.7.0_75/include/win32" -I"C:\Program Files (x86)/GNU/GnuPG/includ
e" -c GnuPGContext.c
[exec] /bin/sh: mingw32-gcc: command not found
[exec] make: *** [GnuPGContext.o] Error 127
BUILD FAILED
C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:82: The following error occurred while executing this line:
C:\Users\user\Desktop\MFT\gnupg-for-java-master\build.xml:75: exec returned: 2
Total time: 7 seconds
Can anyone help me to solve this issue ?
Where I'm making mistake ?
I rewrote my answer because I wanted to create a complete guide.
Install GnuPG and MinGW-Get to a directory without spaces.
After you installed MinGW with !!!GUI!!!, open mingw-get, install these components:
mingw32-gcc (check all)
mingw32-libz (the dll is the most important)
Download and install MSYS, that is a command line toolkit for running commands like make.
Then put c:\msys\1.0\bin\ (or wherever you installed it) on the beginning of the PATH variable. Restart eclipse or open a new cmd, and it should work.
In the build.xml:
line 21:
classpath="lib/junit-4.4.jar" added.(and the junit is in the lib dir)
In the GNUmakefile:
line 9 :
ALL_CFLAGS := -Wall -Wno-deprecated-declarations -fPIC
line 10:
ALL_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 \
-I"c:/WORK/x/gnu/jdk/jdk1.8.0_25/include" -I"c:/WORK/x/gnu/jdk/jdk1.8.0_25/include/win32"
line 21-27:
JAVA_HOME := c:/WORK/x/gnu/jdk/jdk1.8.0_25
ALL_CFLAGS += -mms-bitfields -Wl,--add-stdcall-alias
ALL_CPPFLAGS += -I"c:/WORK/x/gnu/jdk/jdk1.8.0_25/include/win32" -I"c:/WORK/x/gnu/jdk/jdk1.8.0_25/include" -I"c:/GNU/GnuPG/include"
ALL_LDFLAGS := -s -shared -Wl,--enable-auto-import
ALL_LIBS := -L"c:/GNU/GnuPG" -lgpgme-11
GNUPG_LIB := $(BUILD_DIR)/gnupg-for-java.dll
line 63:
$(CC) $(DEBUG) $(ALL_CFLAGS) $(ALL_LDFLAGS) $^ -o "$(BUILD_DIR)/gnupg-for-java.dll" $(ALL_LIBS)
Summary: This is working for me and outputs the jar and dll file to the build directory. My work directory was c:/WORK/x so replace the paths where it is different. Don't use "Program Files" anywhere, as you can see I had to copy everything from there.
The error message is telling that it cannot find mingw32-gcc in /bin/sh.
You should install mingw at first and add it to your path. Check that mingw32-gcc can be launched from the command line.
Are you running the ant script from cygwin? It's a bit strange that it is referring /bin/sh. Maybe you should try to run it from cygwin. Or check the build.xml file to see how mingw32-gcc is called. It must be recompile-c-code target.
I get this error when i try to install thrift on Ubuntu 12.04.
I use ant 1.9.1 an install thrift 0.9.
when i try 'make' command i got this error.
Can anybody help me show this error. Thanks.
make all-recursive
make[1]: Entering directory /opt/thrift-0.9.0'
Making all in compiler/cpp
make[2]: Entering directory/opt/thrift-0.9.0/compiler/cpp'
make all-am
make[3]: Entering directory /opt/thrift-0.9.0/compiler/cpp'
make[3]: Nothing to be done forall-am'.
make[3]: Leaving directory /opt/thrift-0.9.0/compiler/cpp'
make[2]: Leaving directory/opt/thrift-0.9.0/compiler/cpp'
Making all in lib
make[2]: Entering directory /opt/thrift-0.9.0/lib'
Making all in cpp
make[3]: Entering directory/opt/thrift-0.9.0/lib/cpp'
Making all in .
make[4]: Entering directory /opt/thrift-0.9.0/lib/cpp'
make[4]: Nothing to be done forall-am'.
make[4]: Leaving directory /opt/thrift-0.9.0/lib/cpp'
Making all in test
make[4]: Entering directory/opt/thrift-0.9.0/lib/cpp/test'
make[4]: Nothing to be done for all'.
make[4]: Leaving directory/opt/thrift-0.9.0/lib/cpp/test'
make[3]: Leaving directory /opt/thrift-0.9.0/lib/cpp'
Making all in java
make[3]: Entering directory/opt/thrift-0.9.0/lib/java'
/opt/ant1.91/bin/ant
Buildfile: /opt/thrift-0.9.0/lib/java/build.xml
setup.init:
mvn.ant.tasks.check:
proxy:
mvn.ant.tasks.download:
[get] Getting: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
[get] To: /opt/thrift-0.9.0/lib/java/build/tools/maven-ant-tasks-2.1.3.jar
[get] Not modified - so not downloaded
mvn.init:
BUILD FAILED
/opt/thrift-0.9.0/lib/java/build.xml:282: artifact:pom doesn't support the "groupId" attribute
Total time: 1 second
make[3]: * [all-local] Error 1
make[3]: Leaving directory /opt/thrift-0.9.0/lib/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/opt/thrift-0.9.0/lib'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/opt/thrift-0.9.0'
make: ** [all] Error 2
This error is caused by Apache Ant 1.9.x. Refer to [1] for more info.
Remove apache ant, and reinstall with version 1.8.x [2]
# sudo apt-get remove ant
# tar -jxvf http://archive.apache.org/dist/ant/source/apache-ant-1.8.4-src.tar.bz2
# cd apache-ant-1.8.4/
# sed -i 's;jars,test-jar;jars;' build.xml
# sudo mkdir /opt/ant-1.8.4
# sudo ./build.sh -Ddist.dir=/opt/ant-1.8.4 dist
# sudo ln -v -sfn ant-1.8.4 /opt/ant
Configure thrift [3]
# export PATH=$PATH:/opt/ant/bin
# export ANT_HOME=/opt/ant
# PYTHON=/usr/bin/python2 ./configure --prefix=/usr --without-ruby
# make
# sudo make install
I am using thrift 0.9.1 on Ubuntu 12.04 and I found the same problem occurred regardless of ant 1.8.4 or 1.9.4:
...artifact:pom doesn't support the "groupId" attribute
What really helped was this suggestion: http://wiki.apache.org/cassandra/RunningCassandraInEclipse#artifact:pom_error
You have to ensure the maven-ant-tasks-2.1.3.jar file is in the lib directory for the active version of ant you are using.