Giter VIP home page Giter VIP logo

homeishome's People

Contributors

ericpruitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

homeishome's Issues

./tests not buildable in i386 & armhf architectures

$ make install
c99 -D_GNU_SOURCE -Werror -Wall -Wpedantic tests.c -o tests
tests.c: In function ‘main’:
tests.c:201:12: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Werror=format=]
     printf("Failures: %s%ld" RESET_ATTRIBUTES "\n",
            ^
cc1: all warnings being treated as errors
Makefile:35: recipe for target 'tests' failed
make: *** [tests] Error 1

Reproduced in an Ubuntu 16.04 i386 virtual machine.

homeishome.so build failed on ppc64el and s390x architectures(error: ‘LD_PATH’ undeclared here (not in a function))

c99 noop.c -o noop
rm -f config.h.tmp
ldd noop | awk >> config.h.tmp ' \
	/ld-linux/ { \
		print "#define LD_PATH \"" $(NF - 1) "\""; \
		exit; \
	} \
'
mv config.h.tmp config.h
c99 -D_GNU_SOURCE -Wall -fPIC -O3 -shared homeishome.c -o homeishome.so -ldl -Wl,-e,lib_main
homeishome.c:21:5: error: ‘LD_PATH’ undeclared here (not in a function)
     LD_PATH
     ^
make: *** [homeishome.so] Error 1
Makefile:30: recipe for target 'homeishome.so' failed

I printed the ldd noop command's output and it seems to be using a different filename pattern for ld-linux*:

        linux-vdso64.so.1 =>  (0x000076a0f7510000)
        libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x000076a0f7330000)
        /lib64/ld64.so.2 (0x000076a0f7530000)
        libc.so.6 => /lib/s390x-linux-gnu/libc.so.6 (0x000003ffa9580000)
        /lib/ld64.so.1 (0x000003ffa9880000)

Comparison(armhf):

	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xf7c88000)
	/lib/ld-linux-armhf.so.3 (0xf7d74000)

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.