{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/42","labels_url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/42/comments","events_url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/42/events","html_url":"https://github.com/JuliaLang/utf8proc/issues/42","id":84409016,"number":42,"title":"1.3-dev1 fails to build on 64-bit","user":{"login":"nalimilan","id":1120448,"avatar_url":"https://avatars.githubusercontent.com/u/1120448?v=3","gravatar_id":"","url":"https://api.github.com/users/nalimilan","html_url":"https://github.com/nalimilan","followers_url":"https://api.github.com/users/nalimilan/followers","following_url":"https://api.github.com/users/nalimilan/following{/other_user}","gists_url":"https://api.github.com/users/nalimilan/gists{/gist_id}","starred_url":"https://api.github.com/users/nalimilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalimilan/subscriptions","organizations_url":"https://api.github.com/users/nalimilan/orgs","repos_url":"https://api.github.com/users/nalimilan/repos","events_url":"https://api.github.com/users/nalimilan/events{/privacy}","received_events_url":"https://api.github.com/users/nalimilan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-03T07:21:42Z","updated_at":"2015-06-03T13:56:12Z","closed_at":null,"body":"I see this only on 64-bit Fedora/RHEL builds. 32-bit builds went fine.\r\n```\r\nmake -j2 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'\r\ncc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o utf8proc.o utf8proc.c\r\nrm -f libutf8proc.a\r\ncc  -shared -o libutf8proc.so.1.3.0 -Wl,-soname -Wl,libutf8proc.so.1 utf8proc.o\r\nar rs libutf8proc.a utf8proc.o\r\nar: creating libutf8proc.a\r\n/usr/bin/ld: utf8proc.o: relocation R_X86_64_PC32 against symbol `utf8proc_stage1table' can not be used when making a shared object; recompile with -fPIC\r\n/usr/bin/ld: final link failed: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:65: recipe for target 'libutf8proc.so.1.3.0' failed\r\nmake: *** [libutf8proc.so.1.3.0] Error 1\r\n```\r\nhttps://copr-be.cloud.fedoraproject.org/results/nalimilan/julia-nightlies/fedora-rawhide-x86_64/utf8proc-1.3-0.dev1.fc23/build.log.gz\r\n\r\n\r\nI actually don't need the static library, but this makes the whole build fail (`make install` depends on it)."},"comment":{"url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/comments/108432594","html_url":"https://github.com/JuliaLang/utf8proc/issues/42#issuecomment-108432594","issue_url":"https://api.github.com/repos/JuliaLang/utf8proc/issues/42","id":108432594,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T13:56:12Z","updated_at":"2015-06-03T13:56:12Z","body":"Possibly we should do something like:\r\n```\r\nCFLAGS ?= -O2 ....\r\nPICFLAG = -fPIC\r\nC99FLAG = -std=c99\r\nUCFLAGS = $(CFLAGS) $(PICFLAG) $(C99FLAG) -DUTFPROC_EXPORTS\r\n```\r\nand then use `$(UCFLAGS)` when compiling.  This way, you can do `make CFLAGS=...` and similar without screwing up the PIC or C99 flags."}}