Coder Social home page Coder Social logo

Comments (9)

gbtucker avatar gbtucker commented on August 21, 2024

Can you post more of the configure output? Were there warnings before this? I think you may be missing some basic setup.

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Hi Thanks for looking into this. I have followed the below procedure to compile the code:

yum install autoconf ;
yum install libtool ;
yum install yasm-1.2.0-4.el7.x86_64.rpm;
unzip isa-l-master.zip;
cd ./isa-l-master/
./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64
make;
make install

I have followed the same procedure in another setup and it worked fine. In the working setup I have different gcc version : gcc-4.8.5-28.el7.x86_64.

Please find the attached config.log , command output and installed RPM list.
config.log
Installed_rpm_list.txt
ISA-L-Command_Output.txt

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Sorry Close accidentally.

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Hi Thanks for looking into this. I have followed the below procedure to compile the code:

yum install autoconf ;
yum install libtool ;
yum install yasm-1.2.0-4.el7.x86_64.rpm;
unzip isa-l-master.zip;
cd ./isa-l-master/
./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64
make;
make install

I have followed the same procedure in another setup and it worked fine. In the working setup I have different gcc version : gcc-4.8.5-28.el7.x86_64.

Please find the attached config.log , command output and installed RPM list from the failing server.
config.log
Installed_rpm_list.txt
ISA-L-Command_Output.txt

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Here is the Linux version:

uname -a

Linux node1 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.5 (Maipo)

from isa-l.

gbtucker avatar gbtucker commented on August 21, 2024

Looking at your config log I don't think the issue is lack of -V. Configure checks lots of things that can fail just looking for availability. The real problem is when it fails a simple compiler works test as below, just trying to compile a hello world app. You may not have the full linker or libc installed. You might try your own hello world app to see if the default paths work.

configure:3405: checking whether the C compiler works
configure:3427: gcc    conftest.c  >&5
collect2: fatal error: cannot find 'ld'
compilation terminated.
configure:3431: $? = 1
configure:3469: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libisal"
| #define PACKAGE_TARNAME "isa-l"
| #define PACKAGE_VERSION "2.26.0"
| #define PACKAGE_STRING "libisal 2.26.0"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL "http://01.org/storage-acceleration-library"
| #define PACKAGE "isa-l"
| #define VERSION "2.26.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Hi Greg
You are right!! I tried the below "hello world" code snippet and compilation failed with errors. Can you please advise me how to fix this ? What could be possibly going wrong here ?

Hello world snippet

#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}

Compile Error

gcc hello_world.c

In file included from /usr/include/features.h:399:0,
from /usr/include/stdio.h:27,
from hello_world.c:1:
/usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory

include <gnu/stubs-64.h>

                       ^

compilation terminated.

from isa-l.

kuntalacharyya avatar kuntalacharyya commented on August 21, 2024

Hi Greg,

The issue has now been resolved now.

Fix:

  1. Install glibc-devel.x86_64
    # yum install glibc-devel.x86_64
  2. create a soft link to the linker program in /usr/bin/ pointing to /etc/alternatives/ld
    # cd /usr/bin/

    ln -s /etc/alternatives/ld

     # which ld
        /usr/bin/ld 
     # ls -l /usr/bin/ld
         lrwxrwxrwx 1 root root 20 Apr 19 16:50 /usr/bin/ld -> /etc/alternatives/ld
    

It is weird that the link is missing in the first place. But after performing the above steps compilation completed successfully. Thank you for looking into the issue and your guidance. Appreciate you quick reply too.

from isa-l.

gbtucker avatar gbtucker commented on August 21, 2024

Good to hear. Perhaps binutils was installed incorrectly.

from isa-l.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.