Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] gcc-config: error: could not run/locate 'gjar'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Drachonis
n00b
n00b


Joined: 20 Jun 2013
Posts: 2

PostPosted: Thu Jun 20, 2013 5:06 pm    Post subject: [Solved] gcc-config: error: could not run/locate 'gjar' Reply with quote

Hi, I am try to emerge -auv netbeans-php and I got this error:
gcc-config: error: could not run/locate 'gjar'

emerge -auv netbeans-php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] dev-java/gnu-classpath-0.98-r3 USE="alsa qt4 -debug -doc -dssi -examples -gconf -gjdoc -gmp -gstreamer -gtk -xml" 0 kB
[ebuild N ] dev-java/jdbc-mysql-5.1.18 USE="-c3p0 -log4j -source" 0 kB
[ebuild N ] dev-java/netbeans-ide-7.3 0 kB
[ebuild N ] dev-java/netbeans-webcommon-7.3 0 kB
[ebuild N ] dev-java/netbeans-websvccommon-7.3 0 kB
[ebuild N ] dev-java/netbeans-php-7.3 0 kB

Total: 6 packages (6 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] Yes

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 6) dev-java/gnu-classpath-0.98-r3
* classpath-0.98.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking classpath-0.98.tar.gz to /var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work
>>> Source unpacked in /var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work
>>> Preparing source in /var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98 ...
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether to regenerate the headers... no
checking whether to regenerate the GJDoc parser... yes
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking for a sed that does not truncate output... /bin/sed
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/x86_64-pc-linux-gnu-nm -B
checking how to recognize dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for x86_64-pc-linux-gnu-g77... no
checking for x86_64-pc-linux-gnu-xlf... no
checking for x86_64-pc-linux-gnu-f77... no
checking for x86_64-pc-linux-gnu-frt... no
checking for x86_64-pc-linux-gnu-pgf77... no
checking for x86_64-pc-linux-gnu-cf77... no
checking for x86_64-pc-linux-gnu-fort77... no
checking for x86_64-pc-linux-gnu-fl32... no
checking for x86_64-pc-linux-gnu-af77... no
checking for x86_64-pc-linux-gnu-xlf90... no
checking for x86_64-pc-linux-gnu-f90... no
checking for x86_64-pc-linux-gnu-pgf90... no
checking for x86_64-pc-linux-gnu-pghpf... no
checking for x86_64-pc-linux-gnu-epcf90... no
checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... (cached) x86_64-pc-linux-gnu-strip
checking for correct ltmain.sh version... yes
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-gfortran option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gfortran PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gfortran static flag -static works... yes
checking if x86_64-pc-linux-gnu-gfortran supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gfortran linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
checking for gawk... (cached) gawk
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking __attribute__((,,))... yes
checking __attribute__((unused))... yes
checking for ANSI C header files... (cached) yes
checking size of void *... 8
checking whether byte ordering is bigendian... no
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/config.h usability... no
checking sys/config.h presence... no
checking for sys/config.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking asm/ioctls.h usability... yes
checking asm/ioctls.h presence... yes
checking for asm/ioctls.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/ip.h usability... yes
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for library containing inet_pton... none required
checking for gethostname in -lsocket... no
checking for ftruncate... yes
checking for fsync... yes
checking for select... yes
checking for gethostname... yes
checking for socket... yes
checking for strerror... yes
checking for fork... yes
checking for pipe... yes
checking for execve... yes
checking for open... yes
checking for close... yes
checking for lseek... yes
checking for fstat... yes
checking for read... yes
checking for readv... yes
checking for write... yes
checking for writev... yes
checking for htonl... yes
checking for memset... yes
checking for htons... yes
checking for connect... yes
checking for getsockname... yes
checking for getpeername... yes
checking for bind... yes
checking for listen... yes
checking for accept... yes
checking for recvfrom... yes
checking for send... yes
checking for sendto... yes
checking for setsockopt... yes
checking for getsockopt... yes
checking for time... yes
checking for mktime... yes
checking for gethostbyname_r... yes
checking for localtime_r... yes
checking for strerror_r... yes
checking for fcntl... yes
checking for statvfs... yes
checking for mmap... yes
checking for munmap... yes
checking for mincore... yes
checking for msync... yes
checking for madvise... yes
checking for getpagesize... yes
checking for sysconf... yes
checking for lstat... yes
checking for readlink... yes
checking for inet_aton... yes
checking for inet_addr... yes
checking for inet_pton... yes
checking for getifaddrs... yes
checking for kqueue... no
checking for kevent... no
checking for epoll_create... yes
checking for getloadavg... yes
checking for magic_open in -lmagic... yes
checking whether struct sockaddr_in6 is in netinet/in.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for tm_gmtoff in struct tm... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for __attribute__... yes
checking how many arguments gethostbyname_r() takes... six
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory
done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for pkg-config... /usr/bin/pkg-config
checking for QtCore QtGui >= 4.1.0... yes
checking QT_CFLAGS... -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
checking QT_LIBS... -L/usr/lib64/qt4 -lQtGui -lQtCore
checking for /usr/include/qt4/QtGui/QWidget... yes
configure: No extra QT_INCLUDE_DIR needed
checking for moc... moc
checking for moc-qt4... (cached) moc
configure: Set QT_CFLAGS... -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
checking for MSG_NOSIGNAL... yes
checking for SO_NOSIGPIPE ... no
checking for MSG_WAITALL... yes
checking jni_md.h support... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mkdir... /bin/mkdir
checking for cp... /bin/cp
checking for date... /bin/date
checking for find... /usr/bin/find
checking for zip... /usr/bin/zip
checking for a jar-like tool... trying fastjar, gjar and jar
checking for fastjar... no
checking for gjar... /usr/bin/gjar
checking whether to regenerate parsers with jay... no
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/config-int.h (assuming C99 compatible system)
checking for uudecode... no
configure: WARNING: I have to compile Test.class from scratch
checking if /usr/bin/ecj is a version of gcj... Unrecognized option : --version

checking if /usr/bin/ecj works... yes
checking if /usr/bin/java works... yes
checking if /usr/bin/ecj is a version of gcj... Unrecognized option : --version

checking if /usr/bin/ecj works... (cached) yes
checking whether javac supports -J... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/api/Makefile
config.status: creating external/Makefile
config.status: creating external/sax/Makefile
config.status: creating external/w3c_dom/Makefile
config.status: creating external/relaxngDatatype/Makefile
config.status: creating external/jsr166/Makefile
config.status: creating gnu/classpath/Configuration.java
config.status: creating gnu/java/security/Configuration.java
config.status: creating include/Makefile
config.status: creating native/Makefile
config.status: creating native/fdlibm/Makefile
config.status: creating native/jawt/Makefile
config.status: creating native/jni/Makefile
config.status: creating native/jni/classpath/Makefile
config.status: creating native/jni/java-io/Makefile
config.status: creating native/jni/java-lang/Makefile
config.status: creating native/jni/java-math/Makefile
config.status: creating native/jni/java-net/Makefile
config.status: creating native/jni/java-nio/Makefile
config.status: creating native/jni/java-util/Makefile
config.status: creating native/jni/gtk-peer/Makefile
config.status: creating native/jni/gconf-peer/Makefile
config.status: creating native/jni/gstreamer-peer/Makefile
config.status: creating native/jni/qt-peer/Makefile
config.status: creating native/jni/xmlj/Makefile
config.status: creating native/jni/midi-alsa/Makefile
config.status: creating native/jni/midi-dssi/Makefile
config.status: creating native/jni/native-lib/Makefile
config.status: creating native/plugin/Makefile
config.status: creating resource/Makefile
config.status: creating resource/META-INF/services/java.util.prefs.PreferencesFactory
config.status: creating resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader
config.status: creating resource/META-INF/services/javax.sound.sampled.spi.MixerProvider
config.status: creating scripts/Makefile
config.status: creating scripts/classpath.spec
config.status: creating lib/Makefile
config.status: creating lib/gen-classlist.sh
config.status: creating lib/copy-vmresources.sh
config.status: creating scripts/check_jni_methods.sh
config.status: creating tools/Makefile
config.status: creating examples/Makefile
config.status: creating examples/Makefile.jawt
config.status: creating examples/Makefile.java2d
config.status: creating tools/gappletviewer
config.status: creating tools/gjarsigner
config.status: creating tools/gkeytool
config.status: creating tools/gjar
config.status: creating tools/gnative2ascii
config.status: creating tools/gserialver
config.status: creating tools/grmiregistry
config.status: creating tools/gtnameserv
config.status: creating tools/gorbd
config.status: creating tools/grmid
config.status: creating tools/grmic
config.status: creating tools/gjavah
config.status: creating include/config.h
config.status: linking include/jni_md-x86-linux-gnu.h to include/jni_md.h
config.status: executing depfiles commands
config.status: executing include/config-int.h commands
config.status: creating include/config-int.h : _CLASSPATH_INCLUDE_CONFIG_INT_H
config.status: executing gappletviewer commands
config.status: executing gjarsigner commands
config.status: executing gkeytool commands
config.status: executing gjar commands
config.status: executing gnative2ascii commands
config.status: executing gserialver commands
config.status: executing grmiregistry commands
config.status: executing gtnameserv commands
config.status: executing gorbd commands
config.status: executing grmid commands
config.status: executing grmic commands
config.status: executing gjavah commands
config.status: executing gen-classlist commands
config.status: executing copy-vmresources commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98 ...
make
Making all in lib
make[1]: Entering directory `/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98/lib'
/bin/mkdir -p ../gnu/java/locale
../scripts/generate-locale-list.sh > ../gnu/java/locale/LocaleData.java
true
top_builddir=.. top_srcdir=.. /bin/sh ./gen-classlist.sh standard
Adding java source files from srcdir '..'.
Adding java source files from VM directory ../vm/reference
/usr/bin/ecj -nowarn -J-Xmx768M -source 1.5 -target 1.5 -bootclasspath '' -classpath ../vm/reference:..:../external/w3c_dom:../external/sax:../external/relaxngDatatype:../external/jsr166:.:: -d . @classes
touch compile-classes
touch resources
/usr/bin/gjar cf glibj.zip gnu java javax org sun META-INF
gcc-config: error: could not run/locate 'gjar'
make[1]: *** [glibj.zip] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98/lib'
make: *** [all-recursive] Error 1
* ERROR: dev-java/gnu-classpath-0.98-r3 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-java/gnu-classpath-0.98-r3'`,
* the complete build log and the output of `emerge -pqv '=dev-java/gnu-classpath-0.98-r3'`.
* The complete build log is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98'
* S: '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98'
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.35"
JAVACFLAGS="-nowarn" COMPILER=""
and of course, the output of emerge --info =gnu-classpath-0.98

>>> Failed to emerge dev-java/gnu-classpath-0.98-r3, Log file:

>>> '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/temp/build.log'

* Messages for package dev-java/gnu-classpath-0.98-r3:

* ERROR: dev-java/gnu-classpath-0.98-r3 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-java/gnu-classpath-0.98-r3'`,
* the complete build log and the output of `emerge -pqv '=dev-java/gnu-classpath-0.98-r3'`.
* The complete build log is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98'
* S: '/var/tmp/portage/dev-java/gnu-classpath-0.98-r3/work/classpath-0.98


Last edited by Drachonis on Fri Jun 21, 2013 7:47 am; edited 1 time in total
Back to top
View user's profile Send private message
Drachonis
n00b
n00b


Joined: 20 Jun 2013
Posts: 2

PostPosted: Thu Jun 20, 2013 9:22 pm    Post subject: Reply with quote

Problem resolved, the gcc without flag gjc.

#USE=gjc emerge -auv gcc
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 352
Location: California USA

PostPosted: Mon Jul 06, 2015 3:02 am    Post subject: Reply with quote

I hit a similar issue building gnu-classpath. The following worked for me:
Code:
rm /usr/bin/gjar

It's just a wrapper generated by gcc-config, so it's safe to remove. After it has been removed, programs should automatically fall back to calling 'jar' instead.
_________________
Zac
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum