Skip to content

curl 8.1.1 configure hangs for multilib build #11179

Closed

Description

@eworm-de

I did this

I was packaging curl 8.1.1 for Arch Linux. Building the regular curl package ( x86-64) succeeds, building lib32-curl package (multilib) fails, it hangs in configure:

[...]
checking if compiler is clang... no
checking if compiler is GNU C... yes
checking if compiler is LCC... no
checking if compiler is SGI MIPSpro C... no
checking if compiler is SGI MIPS C... no
checking if compiler is SunPro C... no
checking if compiler is Tiny C... no
checking if compiler accepts some basic options... ^C

The command that is running:

sh ./run-compiler -o conftest -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/lib32-curl/src=/usr/src/debug/lib32-curl -flto=auto -Werror-implicit-function-declaration -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto conftest.c

Looks like the offending commit is b78ca50... Reverting that makes the build succeed.

I expected the following

The package should succeed to build.

curl/libcurl version

Fails to build... So no output. 😝

operating system

Linux leda.eworm.net 6.3.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 21 May 2023 16:15:22 +0000 x86_64 GNU/Linux

Activity

  1. bagder commented on May 23, 2023

    @bagder
    Member

    Can you figure out why it hangs? The script it runs is very simple...

  2. self-assigned this
    on May 23, 2023
  3. eworm-de commented on May 23, 2023

    @eworm-de
    ContributorAuthor

    The script run-compiler contains:

    CC=gcc -m32
    LD_LIBRARY_PATH=
    exec $CC $@
    
  4. eworm-de commented on May 23, 2023

    @eworm-de
    ContributorAuthor

    Is it missing a quote? Let me test...

  5. bagder commented on May 23, 2023

    @bagder
    Member

    This patch would add quotes:

    diff --git a/configure.ac b/configure.ac
    index 75a882b12..1f822d16f 100644
    --- a/configure.ac
    +++ b/configure.ac
    @@ -191,11 +191,11 @@ dnl Generates a shell script to run the compiler with LD_LIBRARY_PATH set to
     dnl the value used right now. This lets CURL_RUN_IFELSE set LD_LIBRARY_PATH to
     dnl something different but only have that affect the execution of the results
     dnl of the compile, not change the libraries for the compiler itself.
     dnl
     compilersh="run-compiler"
    -echo "CC=$CC" > $compilersh
    +echo "CC=\"$CC\"" > $compilersh
     echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $compilersh
     echo 'exec $CC $@' >> $compilersh
     
     dnl **********************************************************************
     dnl See which TLS backend(s) that are requested. Just do all the
  6. added a commit that references this issue on May 23, 2023
    21604a3
  7. eworm-de commented on May 23, 2023

    @eworm-de
    ContributorAuthor

    Yes, my patch looks the same. 😉

  8. changed the title [-]configure hangs for multilib build[/-] [+]curl 8.1.1 configure hangs for multilib build[/+] on May 23, 2023
  9. pinned this issue on May 23, 2023
  10. unpinned this issue on May 25, 2023
  11. added a commit that references this issue on Jul 19, 2023
    25a6363
  12. added a commit that references this issue on Aug 14, 2024
    471dab2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions