Skip to content

make test fails with USE_PCRE=true #7

Description

@GaidaiIgor

I cloned the repo and ran make test with no options. The output of this command is attached. As you can see, tests is compiled and linked successfully, but then fails at runtime. The exact same sequence of actions on another machine works with no issues. Running make test USE_PCRE=false works with no issues.

One suspicious thing I've noticed is that running ldd build.gnu.debug/tests produces the following output

$ ldd build.gnu.debug/tests 
	linux-vdso.so.1 (0x00007ffec9fa8000)
	libgfortran.so.5 => /usr/lib/x86_64-linux-gnu/libgfortran.so.5 (0x00007f638471e000)
	libm.so.6 => /usr/lib/x86_64-linux-gnu/libm.so.6 (0x00007f63845cf000)
	libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f63843dd000)
	libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f6384393000)
	libgcc_s.so.1 => /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6384378000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6384ae9000)

i.e. libpcre and libpcreposix are not marked as needed even though they are linked. Check out my question here if you want to know more about this. -Wl,--no-as-needed can be used to force linker to link libpcreposix and libpcre, but that does not fix the issue. The fact that without this option the libraries do not show up in the output of ldd may mean that the program still calls the default implementation from <regex.h> at runtime, which causes the issue because the constants in configure_ftlRegex.inc are generated for PCRE.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions