You are not logged in.

#1 2011-10-06 20:42:17

RetroX
Member
Registered: 2009-10-17
Posts: 106

[solved] MinGW can't find libssp?

Is there something wrong with my configuration, or is this a problem with the package?

When building mingw32-gmp:

configure:5479: i486-mingw32-gcc 2>&1 | grep xlc >/dev/null
configure:5482: $? = 1
configure:5536: checking compiler i486-mingw32-gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 
Test compile: 
configure:5550: i486-mingw32-gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  conftest.c >&5
/usr/lib/gcc/i486-mingw32/4.6.1/../../../../i486-mingw32/bin/ld: cannot find -lssp_nonshared
/usr/lib/gcc/i486-mingw32/4.6.1/../../../../i486-mingw32/bin/ld: cannot find -lssp
collect2: ld returned 1 exit status
configure:5553: $? = 1
failed program was:

int main () { return 0; }
configure:6576: result: no

When building mingw32-flac:

configure:3997: checking whether the C compiler works
configure:4019: i486-mingw32-gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2   conftest.c  >&5
/usr/lib/gcc/i486-mingw32/4.6.1/../../../../i486-mingw32/bin/ld: cannot find -lssp_nonshared
/usr/lib/gcc/i486-mingw32/4.6.1/../../../../i486-mingw32/bin/ld: cannot find -lssp
collect2: ld returned 1 exit status
configure:4023: $? = 1
configure:4061: result: no
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 PACKAGE "flac"
| #define VERSION "1.2.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4066: error: in `/tmp/yaourt-tmp-alex/aur-mingw32-flac/src/flac-build':
configure:4068: error: C compiler cannot create executables

With the regular GCC, there doesn't seem to be this kind of problem.


EDIT: Figured it out.  You need to add !buildflags to PKGBUILD.

Last edited by RetroX (2011-10-06 20:54:40)

Offline

Board footer

Powered by FluxBB