LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.3 6.17 GCC Error cannot find neither zip nor jar (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-3-6-17-gcc-error-cannot-find-neither-zip-nor-jar-4175458842/)

DeeGee 04-20-2013 12:00 AM

LFS 7.3 6.17 GCC Error cannot find neither zip nor jar
 
My laptop crashed suddenly in the middle of 6.17 GCC. I had already finished configuring and was in the middle of the make.

Anyway, I restarted and remounted the partitions and issued the make command again as root. Now I get the error

Code:

cannot find neither zip nor jar, cannot continue
I doubt this is an expected error as it is not mentioned in the book. What can I do to remedy the process. Shall I have to completely uninstall gcc?

spiky0011 04-20-2013 01:11 AM

Hi

I think that would be the best idea, remove the old gcc-dir and buld-dir

DeeGee 04-20-2013 01:49 AM

Spiky,

Would simply removing the gcc and build directories suffice? Do I have to unmake? I'm scared to do that because then what I compiled in Chapter 5 will also be affected.

druuna 04-20-2013 01:57 AM

Quote:

Originally Posted by DeeGee (Post 4935131)
Spiky,

Would simply removing the gcc and build directories suffice? Do I have to unmake? I'm scared to do that because then what I compiled in Chapter 5 will also be affected.

As long as you did not yet do the make install step you can safely remove the gcc and build dir, untar and start from the top of the chapter.

Once you execute the make install step executables, libs etc are copied to their final destination. Before this step all is done inside the ggc and/or build directory.

But that is assuming that your crash did not corrupt anything else on your laptop (be it host related, the temp LFS environment or the already installed parts of chapter 6)!

PS: I do hope you made a backup of chapter 5 when it was mentioned (Caution at the bottom). This way you don't have to start all over again if something goes wrong in chapter 6.

DeeGee 04-20-2013 02:49 AM

Quote:

Originally Posted by druuna (Post 4935132)
As long as you did not yet do the make install step you can safely remove the gcc and build dir, untar and start from the top of the chapter.

Once you execute the make install step executables, libs etc are copied to their final destination. Before this step all is done inside the ggc and/or build directory.

Just a small clarification here : top of the chapter meaning chapter 6 or only GCC?

Yes, thankfully I've done a backup!

druuna 04-20-2013 02:51 AM

Quote:

Originally Posted by DeeGee (Post 4935145)
Just a small clarification here : top of the chapter meaning chapter 6 or only GCC?

Top of chapter 6.17. GCC-4.7.2 :)

DeeGee 04-20-2013 03:57 AM

Yes its fixed now and druuna, thanks for your patience with my noobish questions :)!

Also, for anyone else having the same problem, I figured out where the mistake was.

The gcc configure has an option with

enable-language=c,c++

I had missed this option and that so it searched for java. So that was the root of the problem so just check if you had done the configuration properly if the same error occurs.


All times are GMT -5. The time now is 02:51 AM.