LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-02-2019, 12:27 AM   #1
shubhampushpkar
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Rep: Reputation: Disabled
Getting error while compiling gcc(c-compiler) cross compiler


Hello Team,

I am new in this Linux Technology & but i am very curious to swing inside this beautiful technology of Linux and i need your support in order to understand the stuff inside it.
I will appreciate you support !!

Now comes to my question, actually i tried to build a c-cross-compiler(gcc-6.2.0) in order to learn CLFS.
While building i encounter an error which i listed below,


Host system configurations ::


bash, version 4.3.48(1)-release
Binutils: (GNU Binutils for Ubuntu) 2.26.1
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.25
diff (GNU diffutils) 3.3
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
GNU C Library (Ubuntu GLIBC 2.23-0ubuntu10) stable release version 2.23,
grep (GNU grep) 2.25
gzip 1.6
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.5
sed (GNU sed) 4.2.2
Sudo version 1.8.16
tar (GNU tar) 1.28
texi2any (GNU texinfo) 6.1


CLFS env ::

CLFS_HOST=x86_64-cross-linux-gnu
TERM=xterm-256color
CLFS_TARGET=arm-linux-musleabihf
CLFS_FPU=neon
LC_ALL=POSIX
CLFS_ARM_ARCH=armv7
CLFS=/mnt/clfs
PATH=/mnt/clfs/cross-tools/bin:/bin:/usr/bin
PWD=/home/clfs
CLFS_ARCH=arm
PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$
SHLVL=1
HOME=/home/clfs
CLFS_FLOAT=hard
_=/usr/bin/env
OLDPWD=/mnt/clfs/sources/gcc-build/arm-linux-musleabihf/libgcc


ERROR::

checking for arm-linux-musleabihf-strip... /mnt/clfs/cross-tools/arm-linux-musleabihf/bin/strip
checking whether ln -s works... yes
checking for arm-linux-musleabihf-gcc... /mnt/clfs/sources/gcc-build/./gcc/xgcc -B/mnt/clfs/sources/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-linux-musleabihf/bin/ -B/mnt/clfs/cross-tools/arm-linux-musleabihf/lib/ -isystem /mnt/clfs/cross-tools/arm-linux-musleabihf/include -isystem /mnt/clfs/cross-tools/arm-linux-musleabihf/sys-include
checking for suffix of object files... configure: error: in `/mnt/clfs/sources/gcc-build/arm-linux-musleabihf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:11903: recipe for target 'configure-target-libgcc' failed
make: *** [configure-target-libgcc] Error 1


config.log ::

configure:6037: gcc -o conftest -g -O2 -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I/mnt/clfs/sources/gcc-build/../gcc-6.2.0/mpfr/src -I$$s/mpc/src -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L/mnt/clfs/sources/gcc-build/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c -lisl -lgmp >&5
conftest.c:10:21: fatal error: isl/ctx.h: No such file or directory
compilation terminated.
configure:6037: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <isl/ctx.h>
| int
| main ()
| {
| isl_ctx_get_max_operations (isl_ctx_alloc ());
| ;
| return 0;
| }
configure:6044: result: no
configure:6048: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated
configure:6052: checking for isl 0.16 or 0.15
configure:6065: gcc -o conftest -g -O2 -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I/mnt/clfs/sources/gcc-build/../gcc-6.2.0/mpfr/src -I$$s/mpc/src -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L/mnt/clfs/sources/gcc-build/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c -lisl -lgmp >&5
conftest.c:10:26: fatal error: isl/schedule.h: No such file or directory
compilation terminated.


Please help me to understand the issue as well as give me some pointer to move forward.

Looking for your valuable response.
Appreciate your help here

Thanks,
Shubham Pushpkar
 
Old 08-02-2019, 08:03 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
fatal error: isl/ctx.h: No such file or directory
/usr/include/isl/ctx.h is provided by `libisl-devī.
 
Old 08-02-2019, 08:10 AM   #3
shubhampushpkar
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks knudfl for your quick reply

Do i need to install "libisl-dev" on my host machine or i need to download the source and compile the same as binutils.

Thanks,
suvhm
 
Old 08-02-2019, 09:08 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by shubhampushpkar View Post
Do i need to install "libisl-dev" on my host machine or i need to download the source and compile the same as binutils.
It may be in the repo... What is the OS/release? "cat /etc/*release"
Also, it is much easy to read if you post shell output in CODE tags...
 
Old 08-05-2019, 12:12 AM   #5
shubhampushpkar
LQ Newbie
 
Registered: Aug 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Pls. find the /etc/os-release.

Quote:
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while compiling GCC 6.3.0 (LFS 8.0) on Arch Linux with GCC 7.1.0 nonick721 Linux From Scratch 6 07-27-2017 04:26 PM
i have ubuntu 16.04 and gcc 5.1.3 default compiler but i need want gcc 4.4 compiler srinivas_k Linux - Newbie 4 07-06-2016 10:29 AM
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
GCC compiler error while compiling *.c file ssvirdi Programming 12 11-26-2011 12:24 PM
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration