Nikita Karetnikov <nik...@karetnikov.org> skribis:

>> Unfortunately, this change triggers a full rebuild, so it’s for
>> ‘core-updates’.  But if it’s good for you, then go for it, and we can
>> open ‘core-updates’ again.
>
> I guess that it worked.

Cool!  Would you like to create the ‘core-updates’ branch and commit it
there?

> 1 of 103 tests failed.  (2 tests were not run).  

Arrgh, just one!

> FAIL: tests/demo-nopic-make.test (exit: 2)
> ==========================================

[...]

> libtool: compile:  gcc -DPACKAGE_NAME=\"demo\" -DPACKAGE_TARNAME=\"demo\" 
> -DPACKAGE_VERSION=\"1.0\" "-DPACKAGE_STRING=\"demo 1.0\"" 
> -DPACKAGE_BUGREPORT=\"bug-libt...@gnu.org\" -DPACKAGE_URL=\"\" 
> -DPACKAGE=\"demo\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -g -O2 -c foo.c -o 
> .libs/foo.o
> libtool: compile:  gcc -DPACKAGE_NAME=\"demo\" -DPACKAGE_TARNAME=\"demo\" 
> -DPACKAGE_VERSION=\"1.0\" "-DPACKAGE_STRING=\"demo 1.0\"" 
> -DPACKAGE_BUGREPORT=\"bug-libt...@gnu.org\" -DPACKAGE_URL=\"\" 
> -DPACKAGE=\"demo\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -g -O2 -c foo.c -o 
> foo.o >/dev/null 2>&1
> /nix/store/xnd5ihy6cvjqj79dx4gzicj21yxqxhrq-bash-4.2/bin/bash ./libtool 
> --tag=CC   --mode=link gcc  -g -O2 -no-undefined -version-info 3:12:1  -o 
> libhello.la -rpath /usr/local/lib hello.lo foo.lo -lm -ldl 
> libtool: link: gcc -shared  -fPIC -DPIC  .libs/hello.o .libs/foo.o   -lm -ldl 
>  -O2   -Wl,-soname -Wl,libhello.so.2 -o .libs/libhello.so.2.1.12
> ld: .libs/hello.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be 
> used when making a shared object; recompile with -fPIC
> .libs/hello.o: could not read symbols: Bad value
> collect2: error: ld returned 1 exit status
> make: *** [libhello.la] Error 1

Indeed, .libs/foo.o is not built with -fPIC (above).

Could you report it to bug-libtool?  Make sure to attach test-suite.log.
You can keep me Cc’d.

In the meantime, I suggest adding #:tests? #f to Libtool so that you can
keep building the rest.

Ludo’.

Reply via email to